public MessageSender(FlowObject fromFlowObject, Message messageRef) { ObjectName procID = fromFlowObject.getProcess().getID(); this.fromRef = new EntityImpl(procID); this.messageRef = messageRef; if (messageRef == null) throw new IllegalArgumentException("MessageRef cannot be null"); if (fromRef == null) throw new IllegalArgumentException("FromRef cannot be null"); }
DelegatingExecutionContext(FlowObject flowObject, ExecutionContext delegate) { this.flowObject = flowObject; this.delegate = delegate; proc = flowObject.getProcess(); procPrefix = proc.getName() + "."; activityPrefix = procPrefix + flowObject.getName() + "."; }
private Process getProcess(Token token) { return token.getFlow().getTargetRef().getProcess(); }