Hi,
I have some doubts about the exception handling mechanism and I would appreciate some help. I have defined some processes and they all follow the same philosofy, in all the nodes I have an ActionHandler that executes some logic. They all look like this:
<node name="node5"> <action class="Node5ActionHandler"/> <exception-handler> <action class="ExceptionHandler"/> </exception-handler> <transition name="OK" to="end" /> <transition name="ERROR" to="CREATE_ERROR_NOTIFICATION"/> </node> <node name="CREATE_ERROR_NOTIFICATION"> <action class="CreateErrorNotificationActionHandler"/> <transition name="OK" to="end" /> </node>
public class ExceptionHandler implements ActionHandler { public void execute(ExecutionContext executionContext) throws Exception { executionContext.getToken().signal(ERROR); } }
Note that in an action that handles an exception, it is possible to put the token in an arbitrary node in the graph with Token.setNode(Node node).
Folks,
Where you able to solve this problem. I'm trying to create one exception handler for my entire process.
Robert