/** * Given a launch item, launches a flow in the embedded engine. */ public FlowExpressionId launch (final LaunchItem li, final boolean async) throws LaunchException { final Launcher l = Definitions.getLauncher(getContext()); return l.launch(li, async); }
/** * A dedicated lookupAttribute method, as filter definitions have a special * XML syntax. */ protected String lookupAttribute (final org.jdom.Element elt, final String attributeName, final InFlowWorkItem wi) { final String value = elt.getAttributeValue(attributeName); if (value == null) return null; if (referencesNoVariable(value)) return value; if (log.isDebugEnabled()) log.debug("lookupAttribute() :: >"+value+"<"); try { final VariableMap vMap = new VariableMap (getLauncher().fetchAttributes(this, elt), this, wi); return Text.substitute(value, vMap); } catch (final Exception e) { log.warn("lookupAttribute() problem while fetching attributes", e); return null; } }
getLauncher().launchSub (this.workitem, getId(),
/** * Triggers the evaluation of the XML fragment. */ protected void eval (final InFlowWorkItem wi, final org.jdom.Content xml) throws Exception { //log.debug("eval() \n"+XmlUtils.xmlToString(xml)); final RawExpression evalResult = getLauncher().eval(this, xml, wi); if (evalResult == null) { applyToParent(wi); return; } this.setEvalTriggered(true); this.storeItself(); // // apply it evalResult.apply(wi); }
launcher.loadProcessDefinition(args[4]);
final RawExpression next = launcher.eval(owner, c, wi);
/** * Loads (interprets / launches) a process definition given by its URL. * The launch is done synchronously, to ensure that definitions are * interpreted and bound before any further launches. */ protected void load (final String url) { if (log.isDebugEnabled()) log.debug("load() url is >"+url+"<"); try { final LaunchItem li = new LaunchItem(); li.setWorkflowDefinitionUrl(url); Definitions.getLauncher(this.getContext()).launch(li, false); // // async is set to false } catch (final Throwable t) { log.warn ("load() failed to load library at '"+url+"' "+t); if (log.isDebugEnabled()) { log.debug ("load() failed to load library at '"+url+"'", t); } } }
this.launchedId = getLauncher().launchSub ((InFlowWorkItem)wi.clone(), parentId,
public void init (final ApplicationContext context, final FlowExpressionId environmentId, final FlowExpressionId parentId, final FlowExpressionId id, final RawExpression generatingExpression, final Object raw, final InFlowWorkItem currentWi) throws BuildException { setApplicationContext(context); this.setId(id); this.setParent(parentId); this.setEnvironmentId(environmentId); this.setAttributes(getLauncher().fetchAttributes(this, raw)); //this.debugAttributes("init()"); }
log.debug("trigger() child is "+child.getId()); getLauncher().launchSub (this.appliedItem,
getLauncher().fetchAttributes(fe, this.xmlBranch); feParams.putAll(atParams);
getLauncher().launch(launchWi, parentId, ref, areLaunchesAsync());
this.currentFei = getLauncher().launchSub (wi, this.getId(), // parent
new IntegerAttribute(this.iterationPosition)); final FlowExpressionId launchedId = launcher.launchSub (wi, iteratingExpression.getId(),