/** * Stores the flow expression (as it may have changed). */ public void update (final FlowExpression fe) throws PoolException { getStore().storeExpression(fe); }
public void apply (final InFlowWorkItem wi) throws ApplyException { if (this.childExpressionId == null) return; getExpressionPool().apply(this.childExpressionId, wi); }
/** * Returns the count of expressions stores in this expool. */ public int size () { return getStore().size(); }
/** * Returns the last child. */ protected FlowExpression getLastChild () { return getExpressionPool().fetch(getLastChildId()); }
public void cancelFlow (final String workflowInstanceId) throws ControlException, RemoteException { getExpressionPool().cancelFlow(workflowInstanceId); }
/** * This implementation simply delegates the work to the underlying * store's contentIterator() method. */ public java.util.Iterator contentIterator (final Class assignClass) { return getStore().contentIterator(assignClass); }
public java.util.List listExpressions () throws ControlException, RemoteException { return getExpressionPool().listExpressions(); }
public void doRemove (final InFlowObject o) throws Exception { getStore().unstoreExpression((FlowExpression)o); } };
/** * Outputs expression pool size. */ public static String d_expoolsize (final FlowExpression fe, final InFlowWorkItem wi, final String[] args) { return ""+getExpressionPool(fe).size(); }
public void cancelExpression (final FlowExpressionId fei) throws ControlException, RemoteException { getExpressionPool().cancel(fei); }
/** * replies to this FlowExpression parent */ public void replyToParent (final InFlowWorkItem wi) throws ReplyException { //log.debug("replyToParent()"); this.tag(wi); getExpressionPool().replyToParent(this, wi); }
/** * [re]schedules this expression. */ public Long reschedule (final Scheduler s) { // // schedule for checks this.atId = getExpressionPool().schedule(this.getId()); // // return recheck job id return this.atId; }
/** * 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; }
/** * Takes care of looking up a variable (locally or from the expression * pool). */ public Object lookupVariable (final String variableName) { if (getExpressionPool() == null) return null; return getExpressionPool().lookupVariable(this, variableName); }
public Long reschedule (final Scheduler s) { return getExpressionPool() .scheduleAt(this.awakeningTime, this.getId()); }
/** * Returns the environment that this expression is tied to. */ public Environment fetchEnvironment () { return (Environment)getExpressionPool().fetch(this.getEnvironmentId()); }
public void doStore (final InFlowObject o) throws Exception { getStore().storeExpression((FlowExpression)o); }
public void apply (final InFlowWorkItem wi) throws ApplyException { //log.debug("apply()"); getExpressionPool().cancelFlow(this.getId()); }
public void apply (final InFlowWorkItem wi) throws ApplyException { //log.debug("apply()"); if (getChildExpressionId() == null) { applyToParent(wi); return; } getExpressionPool().apply(getChildExpressionId(), wi); }
/** * A shortcut method for retrieving the parent of this expression * from the pool. */ protected FlowExpression fetchParent () { return getExpressionPool().fetch(this.getParent()); }