Tow Truck

V2.5.0
Environment
Application server Tomcat
Bonita Server 7.8.3
Database Postgresql
Logs
I have a bike
I have a car
I have a boat
Setup Configuration
The groovy code is executed on the server. This operation has to be done under the control of Bonitasoft Support
Source Code Source with parameters
Bonitasoft Code :
Set the source code below, then click on Interpretation. Source will be interpreted and parameters will be calculated

{{ctrl.groovy.title}}


{{ctrl.groovy.description}}
Parameters
{{groovyparam.label}}

JSON format. Example:
{"firstname" :"Walter", "lastname":"Bates"}

LIST format. Example:
12, 32, 54
or
"Blue"Red", "Yellow"

{{groovyparam.value}}
({{groovyparam.databasename}}) {{groovyparam.value}}
{{groovyparam.tips}}
Direct REST API CALL : {{ctrl.groovy.directRestApi}}
Groovy Source Code
In your Groovy code, you can use 'apiAccessor', 'apiClient', 'restAPIContext' and 'towTruckToolbox' variables. Example
import org.bonitasoft.engine.api.ProcessAPI;
ProcessAPI processAPI = apiAccessor.getProcessAPI();
.

Result:
Show Groovy resolved

Timers

.
{{ctrl.timerstatus}}
Name Statename CaseId Process Definition ID Process Name Process Version
{{timer.name}} {{timer.statename}} {{timer.processinstanceid}} {{timer.processdefinitionid}} {{timer.processdefinitionname}} {{timer.processdefinitionversion}}
Statename = waiting
Effect: the quartz timer for a timer in waiting state will be recreated Implementation: On each timer, the method timerEventHandlerStrategy.handleCatchEvent() is called
Limitation: this operation works only on "waiting" timer.
Statename = waiting
Effect: will skip the current waiting timer and go to the next step.
Implementation: execute the task by the method processAPI.executeFlowNode()
Limitation: this operation works only on "waiting" timer.
Statename = failed
Effect: the timer will be retried. Implementation: apply on the task the method processAPI.retryTask().
Limitation: this operation works only on "failed" timer.

{{ctrl.missingtimerstatus}}