/** * 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 boolean execute(JbpmContext jbpmContext) throws Exception { Token token = getToken(); ExecutionContext executionContext = new ExecutionContext(token); executionContext.setAction(action); executionContext.setEvent(action.getEvent()); Node node; if (token != null && (node = token.getNode()) != null) { node.executeAction(action, executionContext); } else { action.execute(executionContext); } return true; }
public boolean execute(JbpmContext jbpmContext) throws Exception { Token token = getToken(); ExecutionContext executionContext = new ExecutionContext(token); executionContext.setAction(action); executionContext.setEvent(action.getEvent()); Node node; if (token != null && (node = token.getNode()) != null) { node.executeAction(action, executionContext); } else { action.execute(executionContext); } return true; }