2 Replies Latest reply on Apr 2, 2008 6:17 AM by David Roberts

    Re-Execute a Node's Action handler after an Exception

    David Roberts Apprentice


      If you have a Node, which assigns a Java handler called 'MyAction':

      <node name="Store Document">
       <action name="Store Document Action" class="MyAction"></action>
       <transition to="Complete"></transition>

      If the handler 'MyAction' throws an exception (perhaps a database it needed to query was down), execution of the flow will stop at that node. How do we re-execute that node using the API's once we have fixed the problem (brought the database up).

      I tried just signalling the token (ie. token.signal()), but that doesn't re-execute 'MyAction', it just moves the token along to the next node.