[jboss-user] [JBoss jBPM] - Exception Handling in Nodes

jgreiner do-not-reply at jboss.com
Thu Jun 7 09:37:06 EDT 2007


I have a question on Exception Handling in Nodes.   When you have some nodes that are doing database updates/inserts and the update or insert fails the JBPM Process Instance stays stuck on that node.   Basically any exception that may occur in a nodes action handler.  Please note that these are not Task Nodes.

Somehow I need to move the process to a Task Node or Wait State so a user could look at the exception (database down, database full, or bad code) and take the appropriate action.

Hopefully that describes the situation clearly.   My question is what is the best practice here.  Couple of my ideas are....

1)  Cancel that process instance and start a new process instance for exceptions of this type (ones that happen inside of action handlers).

2)  Create a Task Node to act as a bucket for these exceptions.  (If I do this I would like to avoid having transitions from every node to this one)

3)  Create Exception Handlers.  (Really not sure how this works only doc I found on this was a small blurb in the user doc)

Just wanted to see what direction people are taking with these types of exceptions.   

Thanks


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052140#4052140

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052140



More information about the jboss-user mailing list