[jboss-user] [jBPM] - How to handle an abortion of a work item?

Francesco Pietrobelli do-not-reply at jboss.com
Fri Jul 29 12:42:58 EDT 2011

Francesco Pietrobelli [http://community.jboss.org/people/francesco.pietrobelli] created the discussion

"How to handle an abortion of a work item?"

To view the discussion, visit: http://community.jboss.org/message/618385#618385

playing with jBPM 5.1Final i realized that i was not able to handle tha abortion of a work item inside the process definition.
I have tried unsuccessfully to usa an BoundaryEvent thet refer an Error Event Definition.

basically I want the process can take two different paths after the execution of a work item on the basis that it was aborted or carried out, there is a way to obtain this behavior?

The only solution that i found is to register a listener that check, for every ProcessNodeLeftEvent, the status of the work item and in case of an abortion it signal the process instance. But in this case in the process must be included a path that has an IntermediateCatchEvent for handle the abortion of a task (see the picture below). I think this solution isn't smart and i don't like it.
 http://community.jboss.org/servlet/JiveServlet/showImage/2-618385-16806/out.bmp  http://community.jboss.org/servlet/JiveServlet/downloadImage/2-618385-16806/450-263/out.bmp 

I also checked the chapter of BPMN2.0 spec about the execution semantics, but i have not found any useful information.
does any one know how to handle this situation?

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110729/d2922523/attachment.html 

More information about the jboss-user mailing list