/** * ends this token and all of its children (if any). this is the last active (i.e. not-ended) * child of a parent token, the parent token will be ended as well and that verification will * continue to propagate. */ public void end() { end(true); }
/** * ends this token and all of its children (if any). this is the last active (i.e. not-ended) * child of a parent token, the parent token will be ended as well and that verification will * continue to propagate. */ public void end() { end(true); }
public void execute(ExecutionContext executionContext) { if ("true".equalsIgnoreCase(endCompleteProcess)) { executionContext.getProcessInstance().end(); } else { executionContext.getToken().end(); } }
public void execute(ExecutionContext executionContext) { if ("true".equalsIgnoreCase(endCompleteProcess)) { executionContext.getProcessInstance().end(); } else { executionContext.getToken().end(); } }
protected void cancelToken(Token token) { // recursively cancel children cancelTokens(token.getChildren().values()); // cancel tasks cancelTasks(getTasksForToken(token)); if (!token.hasEnded()) { // end token but do not propagate to parent // to prevent inadvertent termination token.end(false); } if (log.isDebugEnabled()) log.debug("cancelled " + token); }
protected void cancelToken(Token token) { // recursively cancel children cancelTokens(token.getChildren().values()); // cancel tasks cancelTasks(getTasksForToken(token)); if (!token.hasEnded()) { // end token but do not propagate to parent // to prevent inadvertent termination token.end(false); } if (log.isDebugEnabled()) log.debug("cancelled " + token); }
public void enter(ExecutionContext executionContext) { Token token = executionContext.getToken(); token.end(false); token.setAbleToReactivateParent(true); super.enter(executionContext); }
public void enter(ExecutionContext executionContext) { Token token = executionContext.getToken(); token.end(false); token.setAbleToReactivateParent(true); super.enter(executionContext); }
/** * notifies a parent that one of its nodeMap has ended. */ private void notifyParentOfTokenEnd() { if (isRoot()) { processInstance.end(); } else if (parent != null && !parent.hasActiveChildren()) { parent.end(); } }
public void checkImplicitTermination() { if (isTerminationImplicit && node.hasNoLeavingTransitions()) { end(); if (processInstance.isTerminatedImplicitly()) processInstance.end(); } }
/** * notifies a parent that one of its nodeMap has ended. */ private void notifyParentOfTokenEnd() { if (isRoot()) { processInstance.end(); } else if (parent != null && !parent.hasActiveChildren()) { parent.end(); } }
public void checkImplicitTermination() { if (isTerminationImplicit && node.hasNoLeavingTransitions()) { end(); if (processInstance.isTerminatedImplicitly()) processInstance.end(); } }
Token child = (Token) iter.next(); if (!child.hasEnded()) { child.end();
Token child = (Token) iter.next(); if (!child.hasEnded()) { child.end();
} else if (value instanceof Token) { final Token token = ((Token) value); token.end(); for (TaskInstance task : (Collection<TaskInstance>) token.getProcessInstance().getTaskMgmtInstance().getUnfinishedTasks(token)) { task.cancel();
rootToken.end();
rootToken.end();