flowable-engine icon indicating copy to clipboard operation
flowable-engine copied to clipboard

Process instance suspend itself, the process instance can never be activated.

Open West-Z-Y-Wu opened this issue 7 years ago • 1 comments

Describe the bug When I use a execution listener to suspend the current process instance, all the executions, tasks, jobs will be suspended. However, after the execution listener completed, the process seems to create a new execution or task, and the new execution or task has not been suspended. By this time, the process instance can never be activated, beacuse when I try to activate the process, the new task has not been suspended, so it also can not be activated, and throw the FlowableException "Cannot set suspension state active for xxx : already in state active." What's more, I can't even delete the current process instance, because it is suspended.

Expected behavior However, I use Signal Intermediate Catching Event to implement my requirement. But I think it is better to do a validation when execute the suspend commend, and if a process instance try to suspend itself, throw an exception to warn the user this error usage.

West-Z-Y-Wu avatar Nov 18 '19 02:11 West-Z-Y-Wu

I also encountered a situation today where the process was suspended, but subsequent execution listeners and task listeners continued to execute and this process could not be activated。have task is active 。 How was it resolved?

hexiangying avatar May 08 '24 11:05 hexiangying