protected void unscheduleSelf () { log.debug("unscheduleSelf()"); if (this.atId != null) getExpressionPool().getScheduler().unscheduleAt(this.atId); }
/** * When a participant has finished working with a workitem, it uses this * method to give it back to the engine. */ public void reply (final InFlowWorkItem wi) throws ReplyException { if (log.isDebugEnabled()) log.debug("reply() to "+wi.getLastExpressionId()); getExpressionPool().reply(wi.getLastExpressionId(), wi); }
public void apply (final InFlowWorkItem wi) throws ApplyException { if (this.childExpressionId == null) return; getExpressionPool().apply(this.childExpressionId, wi); }
public void run () { try { final FlowExpression child = getExpressionPool() .fetch(ForgetExpression.this.getChildExpressionId()); child.setParent(null); getExpressionPool().apply(child.getId(), forgottenWi); } catch (final Throwable t) { log.info ("apply() error in forgotten child (branch)", t); } } }).start();
se.getExpressionPool().childCancel(fei); else se.getExpressionPool().forget(fei);
getExpressionPool().removeExpression(this.getChildExpressionId()); this.cronId = this.reschedule(getExpressionPool().getScheduler()); env = fetchEnvironment(); else if (this.level.equals("/")) env = getExpressionPool().fetchRootEnvironment(this); else if (this.level.equals("//")) env = getExpressionPool().fetchEngineEnvironment(); getExpressionPool().getScheduler().unschedule(ce.getCronId());
/** * Returns the last child. */ protected FlowExpression getLastChild () { return getExpressionPool().fetch(getLastChildId()); }
/** * You can pre-apply a RawExpression, ie resolving into its real * expression. */ public FlowExpression preApply (final InFlowWorkItem wi) throws ApplyException { try { final FlowExpression realExpression = resolveExpression(wi); Definitions.getExpressionPool(context()).add(realExpression); // // overrides old (raw) version //log.debug // ("preApply() \n "+this.getId()+ // "\nresolved \n "+realExpression.getId()); //log.debug // ("preApply() wfid is "+ // realExpression.getId().getWorkflowInstanceId()); return realExpression; } catch (final Throwable t) { throw new ApplyException("preApply failed", t); } }
return getExpressionPool().fetchEngineEnvironment() .get(variableName); .fetch(getEnvironmentId()); return getExpressionPool().fetchEngineEnvironment() .get(variableName);
/** * 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); } }
(expool.getEnvironmentId(generatingExpression.getParent())); env.getExpressionPool().add(env);
public void cancelFlow (final String workflowInstanceId) throws ControlException, RemoteException { getExpressionPool().cancelFlow(workflowInstanceId); }
public void cancelExpression (final FlowExpressionId fei) throws ControlException, RemoteException { getExpressionPool().cancel(fei); }
public void apply (final InFlowWorkItem wi) throws ApplyException { String prefix = lookupAttribute(A_PREFIX, wi); if (prefix == null) prefix = DEFAULT_PREFIX; XmlUtils.dump(prefix, getExpressionPool().dump()); // // resume flow applyToParent(wi); }
/** * Returns the environment that this expression is tied to. */ public Environment fetchEnvironment () { return (Environment)getExpressionPool().fetch(this.getEnvironmentId()); }
getExpressionPool().add(clone);
/** * Cancels this expression. */ public InFlowWorkItem cancel () throws ApplyException { if (this.launchedId != null) getExpressionPool().childCancel(this.launchedId); return super.cancel(); }