public FlowObject getFlowObject(String name) { if (name == null) throw new IllegalArgumentException("Cannot find flow object with name: null"); FlowObject flowObject = null; for (FlowObject aux : flowObjects) { if (name.equals(aux.getName())) { flowObject = aux; break; } } return flowObject; }
public FlowObject getFlowObject(String name) { for (FlowObject fo : getFlowObjects()) { if (name.equals(fo.getName())) return fo; } return null; }
public String toString() { FlowObject sourceRef = getSourceRef(); FlowObject targetRef = getTargetRef(); String srcName = null; if (sourceRef != null) srcName = (sourceRef.getName() != null ? sourceRef.getName() : sourceRef.getID().getCanonicalName()); String tarName = null; if (targetRef != null) tarName = (targetRef.getName() != null ? targetRef.getName() : targetRef.getID().getCanonicalName()); return "SequenceFlow[" + srcName + "->" + tarName + "]"; } }
DelegatingExecutionContext(FlowObject flowObject, ExecutionContext delegate) { this.flowObject = flowObject; this.delegate = delegate; proc = flowObject.getProcess(); procPrefix = proc.getName() + "."; activityPrefix = procPrefix + flowObject.getName() + "."; }
String auxName = aux.getName(); if (aux != this && name.equals(auxName)) throw new NameNotUniqueException(toString());