cancel
Showing results for 
Search instead for 
Did you mean: 

Restart Process instance at the point when an exception occurs.

mahajanankur
Champ in-the-making
Champ in-the-making
Hi,

I've a process with multiple service tasks. The process instance terminates once an exception occurs in any service task. The task information has been stored in "act_hi_actinst" till that point(task where exception occurs). Is there any way to restart this instance at the point where exception occurs?

Scenario -
My process is like -
start event > user task > service task 1 > service task 2 > service task 3 > end event

Exception occurs at "service task 2". How can I start this INSTANCE (not process definition) again with corrected input at "service task 2" (point where exception occurs in last execution)?

NOTE : Skip first three tasks as they already executed when I restart this instance.

Any help would highly appreciated.

Regards,
Ankur
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Ankur,

http://activiti.org/userguide/index.html#bpmnConcurrencyAndTransactions
-> use e.g. async execution.

Regards
Martin

warper
Star Contributor
Star Contributor
Hi Ankur!
If your service tasks are asynchronous, failure for one of them will create job for failed service retries.
You can find process instance & job, fix variables in database, and then start this job.
Manual job (re)start can be done in process explorer web interface.

mahajanankur
Champ in-the-making
Champ in-the-making
@Warper, Thank you very much for this great answer. You saved my day. \m/