AnsweredAssumed Answered

Error/Signal in Multi-Instance CallActivity buggy?

Question asked by thilka on Oct 4, 2012
Latest reply on Nov 20, 2012 by frederikheremans1
Hello,

I try to implement a process where a certain process is started for all elements contained in a collection.
The "outer" process just contains a call activity (multiinstance configuration (parallel) for the collection) and an error boundary event.
The "inner" process executes some functionality and in some cases, the inner process ends in an error event, which is caught in the outer process by the boundary error event.

No problem if everything goes right in all subprocesses. The process instance is ended properly.
However if I one of the inner processes ends in the error event, the path attached to the boundary error event is executed but the process instance does not come to an end. (Several executions still active for the process instance). I tried to change cancelActivity=true/false, but no changes in process execution.
Is this the proper way to do error handling? Alternatives?

Another thing: How can I cancel the execution of the parallel callActivity instances? I tried to use a signal as boundary event (cancelActivity=true) to the callActivity, but if I try to signal the process, an exception occurrs. (See http://jira.codehaus.org/browse/ACT-1389). But in general: Is this the proper way to cancel the execution of the "subprocesses"? Having a Completion Condition for the multiinstance callActiviti works, but then I cannot react on the cancel operation (e.g. write the information about the cancel operation in a log table).

I think this situation is quite common and hopefully Activiti supports it.

Thanks,
Tobias

Outcomes