cancel
Showing results for 
Search instead for 
Did you mean: 

How to start again a servicetask ?

kse
Champ in-the-making
Champ in-the-making
Hi,

I have a problem with a servicetask that is completed but not ended.
I don't know why this basic servicetask which does just set a variable not ended properly.
I tried to use the signal method of RuntimeService but it has given me an exception.
How could I force this servicetask to end and then execute the next flow ?
2 REPLIES 2

pkromolowski
Champ in-the-making
Champ in-the-making
I would suggest you to restart the application (if possible) and then see if it works - it sounds like a deadlock in a database access during act_ru_variable table update (or another database related problem).

I think (but I may be wrong) that it is impossible to just "force this servicetask to end" and continue to next task. Imagine, what would happen if you cancelled a task and then continued the process without setting some variables within this cancelled task. You only can "wipeout" the whole process instance, but not a single task. To force a process to end you must use the RuntimeService.deleteProcessInstance method.

kse
Champ in-the-making
Champ in-the-making
Ok, thanks so i will force the process to end.