public void run () { // // release the now unncessary (and unevaluated) child try { if (fei != null) getExpressionPool().removeExpression(fei); } catch (final Throwable t) { log.info ("removeBranch() minor failure", t); } } }).start();
/** * Returns self, the method buildFilter(wi) then allows to build on the fly * the required Filter instance. */ public Object eval (final InFlowWorkItem wi) throws ApplyException { //return buildFilter(this.xmlBranch, wi); getExpressionPool().removeExpression(this.getId()); return this; }
getExpressionPool().removeExpression((FlowExpressionId)v);
/** * Overrides AbstractFlowExpression.applyToParent(), to make sure the * children are removed as well from the expression pool (they are just * templates anyway). */ public void applyToParent (final InFlowWorkItem wi) throws ApplyException { wi.getAttributes().puts(this.cursorCommandField, ""); // reset the cursor command // // clean templates final java.util.Iterator it = getChildren().iterator(); while (it.hasNext()) { final FlowExpressionId childId = (FlowExpressionId)it.next(); getExpressionPool().removeExpression(childId); } // // reply to parent super.applyToParent(wi); }
/** * This override takes care of removing the conditional subexpression * before the flow leaves this when expression. */ public void replyToParent (final InFlowWorkItem wi) throws ReplyException { unscheduleSelf(); // // taking care of removing scheduling jobs used // by that expression if (getChildren() != null && getChildren().size() > 0) { if (log.isDebugEnabled()) { log.debug ("replyToParent() removing template "+ this.getChildren().get(0)); } getExpressionPool() .removeExpression((FlowExpressionId)this.getChildren().get(0)); } super.replyToParent(wi); }
/** * When the workflow is instantied, all expressions from root expression to * all leaf expressions see their 'apply' method get called. * When then leaf expressions (ParticipantExpressions) get answers from * their participant, they communicate the modified workitem to their * father expression with its 'reply' method. */ public void reply (final InFlowWorkItem wi) throws ReplyException { // // [history] log the end of the [sub]flow historyLog(wi, History.EVT_FLOW_END, null, "replying"); // // if there is a parent, reply to it // environment removal is done in expool if (getParent() != null) replyToParent(wi); else getExpressionPool().removeExpression(this); }
requester.getExpressionPool().removeExpression(re.getId());
/** * Reattaches this environment to another [owning] expression. * This method takes care of removing the environment from the expool * and to readd it (under the new id). */ public void reattach (final FlowExpressionId newOwnerId) { //log.debug("reattach() from "+this.getId()+" to owner "+newOwnerId); getExpressionPool().removeExpression(this.getId()); this.setId(newOwnerId.copy()); this.getId().setExpressionName(EXPRESSION_NAME); if ( ! this.getId().getExpressionId().endsWith("e")) this.getId().setExpressionId(this.getId().getExpressionId()+"e"); if (log.isDebugEnabled()) log.debug("reattach() new id "+this.getId()); this.storeItself(); }
.removeExpression(this.templateId);
getExpressionPool().removeExpression(this.getChildExpressionId());