Package org.jbpm.pvm.internal.session

Examples of org.jbpm.pvm.internal.session.MessageSession.send()


    this.message = message;
  }

  public Object execute(Environment environment) throws Exception {
    MessageSession messageSession = environment.get(MessageSession.class);
    messageSession.send(message);
    return null;
  }
}
View Full Code Here


    MessageSession messageSession = environment.get(MessageSession.class);
    if (messageSession==null) {
      throw new JbpmException("no message session for executing command asynchronously");
    }
    String userId = (propagateUserId ? environment.getUserId() : null);
    messageSession.send(new AsyncCommandMessage(command, userId));
    return null;
  }
 
  public void setPropagateUserId(boolean propagateUserId) {
    this.propagateUserId = propagateUserId;
View Full Code Here

    if (messageSession==null) {
      throw new JbpmException("no message-session configured to send asynchronous continuation message");
    }
    MessageImpl<?> asyncMessage = operation.createAsyncMessage(this);
    setState(Execution.STATE_ASYNC);
    messageSession.send(asyncMessage);
  }

  public void performAtomicOperationSync(AtomicOperation operation) {
    if (atomicOperations==null) {
     
View Full Code Here

    MessageSession messageSession = environment.get(MessageSession.class);
    if (messageSession==null) {
      throw new JbpmException("no message session for executing command asynchronously");
    }
    String userId = (propagateUserId ? environment.getAuthenticatedUserId() : null);
    messageSession.send(new AsyncCommandMessage(command, userId));
    return null;
  }
 
  public void setPropagateUserId(boolean propagateUserId) {
    this.propagateUserId = propagateUserId;
View Full Code Here

    if (messageSession==null) {
      throw new JbpmException("no message-session configured to send asynchronous continuation message");
    }
    MessageImpl<?> asyncMessage = operation.createAsyncMessage(this);
    setState(Execution.STATE_ASYNC);
    messageSession.send(asyncMessage);
  }

  public void performAtomicOperationSync(AtomicOperation operation) {
    if (atomicOperations==null) {
     
View Full Code Here

    this.message = message;
  }

  public Object execute(Environment environment) throws Exception {
    MessageSession messageSession = environment.get(MessageSession.class);
    messageSession.send(message);
    return null;
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.