/** * Cancels all the pending children expression. */ public void cancel (final SynchableExpression se) throws ApplyException { final java.util.Iterator it = getChildren().iterator(); while (it.hasNext()) { final FlowExpressionId fei = (FlowExpressionId)it.next(); se.getExpressionPool().childCancel(fei); } }
/** * Cancels this expression. */ public InFlowWorkItem cancel () throws ApplyException { if (this.launchedId != null) getExpressionPool().childCancel(this.launchedId); return super.cancel(); }
/** * Overrides AbstractCompositeFlowExpression.cancel() and makes sure * currently running templated children are cancelled as well. */ public InFlowWorkItem cancel () throws ApplyException { final InFlowWorkItem wi = getExpressionPool().childCancel(this.currentFei); super.cancel(); return wi; }
/** * Cancels itself and the child expression. */ public InFlowWorkItem cancel () throws ApplyException { final InFlowWorkItem wi = getExpressionPool().childCancel(this.childExpressionId); super.cancel(); return wi; }
/** * Cancels this expression, this result in the cancelling of * each of the child expression this composite references. */ public InFlowWorkItem cancel () throws ApplyException { if (log.isDebugEnabled()) log.debug("cancel() called on "+this.getId()); InFlowWorkItem wi = null; java.util.Iterator it = this.children.iterator(); // // returns the first non-null workitem returned while (it.hasNext()) { final Object o = it.next(); if ( ! (o instanceof FlowExpressionId)) continue; final FlowExpressionId fei = (FlowExpressionId)o; final InFlowWorkItem i = getExpressionPool().childCancel(fei); if (wi == null) wi = i; } //log.debug("cancel() done."); super.cancel(); return wi; }
/** * Cancels the current 'iterated' expression as well. */ public InFlowWorkItem cancel () throws ApplyException { final InFlowWorkItem wi = getExpressionPool().childCancel(this.iterator.getCurrentId()); super.cancel(); return wi; }
se.getExpressionPool().childCancel(fei); else se.getExpressionPool().forget(fei);