AnsweredAssumed Answered

About continuing a failed process

Question asked by alexbt on Apr 23, 2011
Latest reply on Apr 28, 2011 by frederikheremans1
Hello to all Activiti team,

I have a question regarding restarting a failed process.
I have a process that contains several subprocesses. The overall process run can take about 2 hours.
Sometimes there is an unexpected problem that is not connected to the process itself, but influences its execution.
So, say, the process runs for 45 minutes and then one of its tasks fails.
In this case we don't want to fail the whole process but to fix the problem and let the process continue its execution as if there was no problem at all.
We don't want to restart the whole process from scratch - it's too much time to waste for us.
I thought about some kind of true/false result flag for any task and upon receiving a false result use another task and notifying an operator (a person who initiated the process)  and waiting for his reaction. If he,say, fixes the problem and press on some "Continue" button the process continues its execution.
But this workaround looks pretty ugly - to add true/false check + wait after every task.
So the question is if it is possible to start a failed process from the point where it has failed?
Or you may suggest another workaround.