Page 1 of 1

Workflow restart node

PostPosted:Fri Mar 15, 2013 11:08 am
by aliism
Is it possible to restart node if something went wrong?

For example, handler code would be:
Code: Select all
if (fileExists) {
    context.restartNode();
}
And give chance to the user to fill the form again.

Re: Workflow restart node

PostPosted:Sat Mar 16, 2013 9:05 am
by jllort
The idea should be on transaction between tasks, detect if something is wrong and forward to the same task node.

Re: Workflow restart node

PostPosted:Thu Mar 21, 2013 10:04 am
by pavila
I think you need to handle Exceptions in your Workflow definition. See jBPM documentation for more info.