[jboss-user] [JBoss jBPM] - Re: is it possible to force the token jump from one node to

pieter@TA do-not-reply at jboss.com
Mon Apr 21 10:33:21 EDT 2008


Hi,

Would it be possible to elaborate on the Token.setNode method.
I try to jump to a specific node but without succes.
This is the code : 
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);

    }

Thank you.

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

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



More information about the jboss-user mailing list