/** * leave this node over the given transition. This method is only available on * node actions. Not on actions that are executed on events. Actions on events * cannot change the flow of execution. */ public void leaveNode(String transitionName) { getNode().leave(this, transitionName); }
/** * leave this node over the given transition. This method is only available on * node actions. Not on actions that are executed on events. Actions on events * cannot change the flow of execution. */ public void leaveNode(String transitionName) { getNode().leave(this, transitionName); }
/** * leave this node over the given transition. This method is only available on * node actions. Not on actions that are executed on events. Actions on events * cannot change the flow of execution. */ public void leaveNode(Transition transition) { getNode().leave(this, transition); }
/** * called by the implementation of this node to continue execution over the default * transition. */ public void leave(ExecutionContext executionContext) { leave(executionContext, getDefaultLeavingTransition()); }
/** * leave this node over the default transition. This method is only available * on node actions. Not on actions that are executed on events. Actions on * events cannot change the flow of execution. */ public void leaveNode() { getNode().leave(this); }
/** * leave this node over the given transition. This method is only available on * node actions. Not on actions that are executed on events. Actions on events * cannot change the flow of execution. */ public void leaveNode(Transition transition) { getNode().leave(this, transition); }
/** * called by the implementation of this node to continue execution over the default * transition. */ public void leave(ExecutionContext executionContext) { leave(executionContext, getDefaultLeavingTransition()); }
/** * leave this node over the default transition. This method is only available * on node actions. Not on actions that are executed on events. Actions on * events cannot change the flow of execution. */ public void leaveNode() { getNode().leave(this); }
/** * override this method to customize the node behaviour. */ public void execute(ExecutionContext executionContext) { // if there is a custom action associated with this node if (action != null) { // execute the action executeAction(action, executionContext); } else { // leave the node over the default transition leave(executionContext); } }
/** * override this method to customize the node behaviour. */ public void execute(ExecutionContext executionContext) { // if there is a custom action associated with this node if (action != null) { // execute the action executeAction(action, executionContext); } else { // leave the node over the default transition leave(executionContext); } }
public void notifyListeners() { if (listeners != null) { // for every token that was waiting for this milestone for (Iterator iter = listeners.iterator(); iter.hasNext();) { Token token = (Token) iter.next(); // leave the milestone node Node node = token.getNode(); ExecutionContext executionContext = new ExecutionContext(token); node.leave(executionContext); } } }
public void notifyListeners() { if (listeners != null) { // for every token that was waiting for this milestone for (Iterator iter = listeners.iterator(); iter.hasNext();) { Token token = (Token) iter.next(); // leave the milestone node Node node = token.getNode(); ExecutionContext executionContext = new ExecutionContext(token); node.leave(executionContext); } } }
/** * called by the implementation of this node to continue execution over the specified * transition. */ public void leave(ExecutionContext executionContext, String transitionName) { Transition transition = getLeavingTransition(transitionName); if (transition == null) throw new JbpmException("no such transition: " + transitionName); leave(executionContext, transition); }
/** * called by the implementation of this node to continue execution over the specified * transition. */ public void leave(ExecutionContext executionContext, String transitionName) { Transition transition = getLeavingTransition(transitionName); if (transition == null) throw new JbpmException("no such transition: " + transitionName); leave(executionContext, transition); }
public void leave(ExecutionContext executionContext, Transition transition) { TaskMgmtInstance tmi = executionContext.getTaskMgmtInstance(); Token token = executionContext.getToken(); if (tmi.hasBlockingTaskInstances(token)) { throw new IllegalStateException(this + " still has blocking tasks"); } removeTaskInstanceSynchronization(token); super.leave(executionContext, transition); }
public void leave(ExecutionContext executionContext, Transition transition) { TaskMgmtInstance tmi = executionContext.getTaskMgmtInstance(); Token token = executionContext.getToken(); if (tmi.hasBlockingTaskInstances(token)) { throw new IllegalStateException(this + " still has blocking tasks"); } removeTaskInstanceSynchronization(token); super.leave(executionContext, transition); }
public void execute(ExecutionContext executionContext) { Token token = executionContext.getToken(); Collection transitionNames = retrieveTransitionNames(token); // if this is the first time we enter if ( transitionNames == null ) { // collect all leaving transition names transitionNames = new ArrayList(getTransitionNames(token)); } // select one of the remaining transition names String nextTransition = interleaver.selectNextTransition(transitionNames); // remove it from the remaining transitions transitionNames.remove(nextTransition); // store the transition names storeTransitionNames(transitionNames,token); // pass the token over the selected transition token.getNode().leave(executionContext, nextTransition); }
public void execute(ExecutionContext executionContext) { Token token = executionContext.getToken(); Collection transitionNames = retrieveTransitionNames(token); // if this is the first time we enter if ( transitionNames == null ) { // collect all leaving transition names transitionNames = new ArrayList(getTransitionNames(token)); } // select one of the remaining transition names String nextTransition = interleaver.selectNextTransition(transitionNames); // remove it from the remaining transitions transitionNames.remove(nextTransition); // store the transition names storeTransitionNames(transitionNames,token); // pass the token over the selected transition token.getNode().leave(executionContext, nextTransition); }
public void execute(ExecutionContext executionContext) { Token token = executionContext.getToken(); // get the token on which the milestone should be verified Token milestoneToken = token.findToken( tokenPath ); if ( isMilestoneReached( name, milestoneToken ) ) { // continue to pass the token over the default transition token.getNode().leave(executionContext); } else { addMilestoneListener(name,milestoneToken); } }
public void execute(ExecutionContext executionContext) { Token token = executionContext.getToken(); // get the token on which the milestone should be verified Token milestoneToken = token.findToken( tokenPath ); if ( isMilestoneReached( name, milestoneToken ) ) { // continue to pass the token over the default transition token.getNode().leave(executionContext); } else { addMilestoneListener(name,milestoneToken); } }