AnsweredAssumed Answered

Redirect a process to any activity?

Question asked by patg on Dec 1, 2011
Latest reply on Dec 2, 2011 by trademak
Hi,
Under exceptional circumstances I'd like to be able to redirect a process instance to any activity, without having a transition between the currently running activity and the targeted one.
For instance an (automatic, no user task) order management process involving a lot of third parties is stuck with one business partner and I need to force the process to move to potentially ANY activity of my process diagram (even if the current use case only involves moving the process to only one decicated activity).

I don't want to add transitions between each activity and every other ones, this would make the process diaragram un-readable.

Is there a way to force a running process instance to switch to a given activity?

I tried to update the record in the table ACT_RU_EXECUTION for the current execution and it does not seem to work.
I was trying to signal process instance and have it resume operation at a specified location of the process diagram.
I always end-up with an 'execution not found' error when I call signal(), even though I'm running the SQL update query and signal() in the same transaction.
(I double-checked the specified execution ID)

I don't really like the idea of tinkering with the activiti tables either.

Any clue is very welcome.

Patrice

Outcomes