[jboss-user] [JBoss jBPM] - ExceptionHandler / changes since 3.2GA

mpet do-not-reply at jboss.com
Mon Nov 24 10:52:22 EST 2008


Hello,

I used a global exception handler in my process definition, like the following:

<?xml version="1.0" encoding="UTF-8"?>
  | <process-definition 
  |   xmlns="urn:jbpm.org:jpdl-3.2"
  |   name="simple">
  |    <start-state name="start">
  |       <transition name="to_state" to="first">
  |          <action name="action" class="com.sample.action.NoHandlerAvailable">
  |             <message>Going to the first state!</message>
  |          </action>
  |       </transition>
  |    </start-state>   
  |    <state name="first">
  |      <transition to="end"></transition>
  |    </state>  
  |    <end-state name="end"></end-state>   
  |    <exception-handler>
  |     <action class="com.sample.action.TestExceptionHandler">      
  |     </action>
  |    </exception-handler>
  | </process-definition>

In the above example, the action handler com.sample.action.NoHandlerAvailable is not available (or maybe causes an exception). In case the exception handler class is not available (or causes an exception itself), 3.1.2 and 3.2GA stopped executing the process flow. After upgrading to 3.2.2 or above (have not tried 3.2.1), if the exception handler class is not available or causes an exception, that exception seems to be handled by the same exception handler - causing an (infinite ?) loop.

Might this be a bug or is the new behaviour intended? Or am I missing something?

Thanks for any help.
Marko

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

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



More information about the jboss-user mailing list