AnsweredAssumed Answered

Programmatically rewinding the process to a previous node

Question asked by jjfutt on Apr 5, 2012

I am using processes that have a number of Custom Java Tasks being executed. These Java tasks are executed by java classes that implement ActivityBehavior  interfaces.
Our java class invokes whatever asynchronous work we want to do and wait for an external signal to be sent before leaving the execution by calling execution.leave().

In certain situations, a particular external task may fail, and we want the process to start execution from a certain previous step…We save the payload for each node separately in the process space so having the original data is not a problem for us. What I am trying to figure out is if there's some feature in the engine where we can tell it to reset its state to a previous step and continue from that point onwards. I am open to using internal APIs or manually update the engine's database if that seems to be the only way to accomplish this..