Tow Truck |
![]() |
V2.4.2 |
Application server | Tomcat |
---|---|
Bonita Server | 7.8.3 |
Database | Postgresql |
Bonitasoft Code : | ||
Set the source code below, then click on Interpretation. Source will be interpreted and parameters will be calculated | ||
{{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(); |
.
|
.
|
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. |
|
|
|