@Override public String toString() { return "CallActivity (" + getId() + ") {" + "name='" + name + '\'' + ", calledElement='" + calledElement + '\'' + ", in=" + in + ", out=" + out + ", copyAllVariables=" + copyAllVariables + '}'; } }
@Override default T call(String calledElement, Set<VariableMapping> in, Set<VariableMapping> out) { return add(new CallActivity(nextStepId(), calledElement, in, out)); }
CallActivity ca = new CallActivity(id, calledElement, in, out); ca.setName(name); children.add(ca);
CallActivity a = (CallActivity) ProcessDefinitionUtils.findElement(pd, cmd.getElementId()); Set<VariableMapping> inVariables = a.getIn(); if (inVariables == null) { inVariables = new HashSet<>(); Set<VariableMapping> outVariables = a.getOut(); actions.add(new MakeSubProcessVariablesAction(inVariables, a.isCopyAllVariables())); cfg.isCopyAllCallActivityOutVariables() && a.isCopyAllVariables()); finishers.add(mergeCommand); actions.add(new PushCommandAction(mergeCommand)); actions.add(new FindAndCallActivityAction(e.getCalledElement(), e.getCalledElementExpression()));
@Override default T call(String calledElement) { return add(new CallActivity(nextStepId(), calledElement)); }
@Override default T call(String calledElement, boolean copyAllVariables) { return add(new CallActivity(nextStepId(), calledElement, copyAllVariables)); }
@Override default T call(String calledElement, Set<VariableMapping> in, Set<VariableMapping> out, boolean copyAllVariables) { return add(new CallActivity(nextStepId(), calledElement, in, out, copyAllVariables)); }
private static Container toCallActivity(IdGenerator idGenerator, Map<String, Object> m) throws ParserException { String call = (String) m.get(CALL_KEY); CallActivity a = new CallActivity(idGenerator.nextId(), call, toVariableMapping(m), null); return new Container(a, a); }
calledElement = s.getKey(); c.addElement(new CallActivity(id, calledElement, calledElementExpression, inVars, outVars, true)); c.addSourceMap(id, toSourceMap(s, "Flow call: " + s.getKey())); c.addOutput(id);