Tow Truck |
![]() |
V1.2 | |
1.0 First version
1.1 New request to detect the missing timer 1.2 Execute Groovy script |
Bonitasoft Code : | ||
{{groovyparam.label}} | {{groovyparam.tips}} |
Groovy Source Code |
In your Groovy code, you can use 'apiAccessor', 'apiClient' and 'restAPIContext' variables. Example : 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. |
|
|
|