Package org.jbpm.env.session

Examples of org.jbpm.env.session.MessageSession.send()


  public void sendContinuationMessage(AtomicOperation operation) {
    Environment environment = Environment.getCurrent();
    MessageSession messageSession = environment.get(MessageSession.class);
    Message asyncMessage = operation.createAsyncMessage(this);
    lock("async continuation message "+asyncMessage);
    messageSession.send(asyncMessage);
  }

  public void performAtomicOperationSync(AtomicOperation operation) {
    if (atomicOperations==null) {
      atomicOperations = new LinkedList<AtomicOperation>();
View Full Code Here


    MessageSession messageSession = environment.get(MessageSession.class);
    if (messageSession==null) {
      throw new PvmException("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

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.