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);
}
Some extra info :
The code throws no errors.
I experimented a bit and I found that I must point to the node just before the node "SectionCleanup" to get the node "SectionCleanup" executed.
Seems to be wrong ?