1 Reply Latest reply on Apr 21, 2008 11:16 AM by Pieter Geldof

    token.setNode(node);

    Pieter Geldof Newbie

      Hi,

      I try to jump to a specific node without the desired effect .
      What is missing ?

      public class ExceptionHandler implements ActionHandler {

      private static final long serialVersionUID = 1L;
      private static final Logger LOGGER = Logger.getLogger(ExceptionHandler.class);

      @Override
      public void execute(final ExecutionContext executionContext) throws Exception {

      final Throwable throwable = executionContext.getException();
      final StackTraceElement[] stackTrace = throwable.getStackTrace();
      LOGGER.error(stackTrace[0]);

      final Token token = executionContext.getToken();
      final Node node = executionContext.getProcessDefinition().getNode("SectionCleanup");
      token.setNode(node);

      }