[jboss-dev-forums] [jBPM Development] - Fault Node -> Exception Handler not being invoked

Amin MC do-not-reply at jboss.com
Sun Jul 3 02:10:24 EDT 2011


Amin MC [http://community.jboss.org/people/aminmc] created the discussion

"Fault Node -> Exception Handler not being invoked"

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

--------------------------------------------------------------
Hi,

I have the following graph:

 http://community.jboss.org/servlet/JiveServlet/showImage/2-613151-16646/Error.jpg  http://community.jboss.org/servlet/JiveServlet/downloadImage/2-613151-16646/450-219/Error.jpg 
After the Raise Fault node I use a fault node with the name "MyError".  I then register an Exception Handler (process level):
MyError = kcontext.getProcessInstance().signalEvent("fault", *null*);

According to the docs "if no exception handler can be found, the process instance will be aborted, resulting in the cancellation of all nodes inside the process".  What I am noticing is that the fault node is triggered but my exception handler is not being invoked as a result the process is terminated.  Is there something I am missing?  I have looked at the existing examples "BPMN2-ErrorBoundaryEventInterrupting.bpmn2" which i've tried to modify but still no success in that my custom exception handler is never invoked.  I presume that if a custom exception handler is found the process will not terminate?

Any help would be appreciated.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/613151#613151]

Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110703/79cf5c64/attachment.html 


More information about the jboss-dev-forums mailing list