AnsweredAssumed Answered

Trigger a process instance in waiting state or resume from a failed service task.

Question asked by varmagtm on Oct 19, 2017

I'm very new to Activiti. I'm using version 6.0.0. I have the bpmn process which has multiple wait states. All the service tasks has been made asynchronous so that the order can continue from the failed task, it doesn't have to rolloback entire transaction to the previous wait state. I have to write an API which takes the process instance ID as an argument and it has to resume the process instance in case the process instance failed or it has to trigger the process instance in case this process instance is in waiting state. As per my understanding, we can trigger the process instance by using runtimeService.trigger method, but only when we know that the process instance is in waiting state. But not sure, how to know the process instance state or how to resume if it is failed. Kindly help me out.