Skip to content

Instantly share code, notes, and snippets.

View amottier's full-sized avatar

Antoine Mottier amottier

View GitHub Profile
State text class name ActivityStates
aborted AbortedFlowNodeStateImpl ABORTED_STATE
aborting activity with boundary AbortingActivityWithBoundaryStateImpl -
aborting AbortingBoundaryAndIntermediateCatchEventStateImpl, AbortingCallActivityStateImpl, AbortingFlowNodeContainerStateImpl, AbortingFlowNodeStateImpl -
cancelled CancelledFlowNodeStateImpl CANCELLED_STATE
completing activity with boundary ⚠CancellingActivityWithBoundaryStateImpl, CompletingActivityWithBoundaryStateImpl - ⚠ Note ⚠: text "completing", class name "cancelling"
cancelling CancellingBoundaryAndIntermediateCatchEventStateImpl, CancellingCallActivityStateImpl, CancellingFlowNodeContainerChildrenStateImpl, CancellingFlowNodeStateImpl -
completed CompletedActivityStateImpl COMPLETED_STATE
completing CompletingActivityStateImpl COMPLETING_STATE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test API</title>
<script type="text/javascript">
// HTTP call to the login service
var loginRequest = new XMLHttpRequest();
@amottier
amottier / last-version-process-url.js
Created January 23, 2018 06:25
last-version-process-url
// Return the API URL to instantiate the cancel vacation request
// process
if ($data.processCancel && $data.processCancel.length > 0) {
return "../API/bpm/process/" +
$data.processCancel[0].id +
"/instantiation";
} else {
return null;
}
@amottier
amottier / script.groovy
Created January 22, 2018 12:01
Create vacation available
import org.bonitasoft.engine.api.IdentityAPI
import org.bonitasoft.engine.identity.User
import org.bonitasoft.engine.identity.UserCriterion
import com.company.model.VacationAvailable
// Default vacations days number
final int daysAvailableInitialValue = 10
// Offset and increment to use when using paginated API