throw new CoreException("Input Variable " + this.inputVariableName + " not found in behaviour: " + this.getName()); log.finest("adapt the message: " + outputMessage); this.sendTo(outputMessage, providerEndpoint, this .getNode().getExecution().getParentScope().getProcess() .getExternalContext()); } else if (this.kind == Kind.SYNCHRONOUS) { throw new CoreException("Output Variable " + this.outputVariableName + " not found in behaviour: " + this.getName()); .sendSyncTo(outputMessage, providerEndpoint, this.getNode() .getExecution().getParentScope()
public InternalMessage<?> sendSyncTo(final InternalMessage<?> request, final Endpoint endpoint, final ExternalContext context) throws CoreException { final com.ebmwebsourcing.easyviper.core.api.engine.Process p = this .getNode().getExecution().getParentScope().getProcess(); return p.getEngine().sendSyncTo(request, endpoint, context); }
final SenderBehaviour send = new SenderBehaviourImpl(); send.setKind(SenderBehaviour.Kind.ASYNCHRONOUS);
public void sendTo(final InternalMessage<?> message, final Endpoint endpoint, final ExternalContext context) throws CoreException { final com.ebmwebsourcing.easyviper.core.api.engine.Process p = this .getNode().getExecution().getParentScope().getProcess(); p.getEngine().sendTo(message, endpoint, context); }
final SenderBehaviour send = new SenderBehaviourImpl(); send.setKind(SenderBehaviour.Kind.ASYNCHRONOUS); if (invoke.getOutputVariable() != null) {
throw new CoreException("Input Variable " + this.inputVariableName + " not found in behaviour: " + this.getName()); this.sendTo(outputMessage, providerEndpoint, this .getNode().getExecution().getParentScope().getProcess() .getExternalContexts()); } else if (this.kind == Kind.SYNCHRONOUS) { throw new CoreException("Output Variable " + this.outputVariableName + " not found in behaviour: " + this.getName()); .sendSyncTo(outputMessage, providerEndpoint, this.getNode() .getExecution().getParentScope() .getProcess().getExternalContexts())); + this.getName()); this.state = State.ACTIVITY_ENDED;
@Override public InternalMessage<?> sendSyncTo(final InternalMessage<?> request, final Endpoint endpoint, final Map<Endpoint, Map<String, ExternalContext>> context) throws CoreException { final com.ebmwebsourcing.easyviper.core.api.engine.Process p = this .getNode().getExecution().getParentScope().getProcess(); return p.getEngine().sendSyncTo(request, endpoint, context); }
public void sendTo(final InternalMessage<?> message, final Endpoint endpoint, final Map<Endpoint, Map<String, ExternalContext>> context) throws CoreException { final com.ebmwebsourcing.easyviper.core.api.engine.Process p = this .getNode().getExecution().getParentScope().getProcess(); p.getEngine().sendTo(message, endpoint, context); }