Package com.catify.processengine.core.nodes

Examples of com.catify.processengine.core.nodes.NodeUtils


    LOG.debug(String.format("%s received %s", this.getSelf(), message
        .getClass().getSimpleName()));
   
    // process message and reply with a commit message to the underlying node event
    if (message instanceof ActivationMessage) {
      new NodeUtils().replyCommitMessage(activate((ActivationMessage) message), getSelf(), getSender());
    } else if (message instanceof DeactivationMessage) {
      new NodeUtils().replyCommitMessage(deactivate((DeactivationMessage) message), getSelf(), getSender());
    } else if (message instanceof TriggerMessage) {
      new NodeUtils().replyCommitMessage(trigger((TriggerMessage) message), getSelf(), getSender());
    } else {
      unhandled(message);
    }
  }
View Full Code Here


   * @param future the future
   * @param processInstanceId the process instance id
   * @return the commit message
   */
  protected <T> CommitMessage<T> createCommitMessage(Future<T> future, String processInstanceId) {
    return new NodeUtils().createCommitMessage(future, processInstanceId, this.getSelf(), this.getSender());
  }
View Full Code Here

   * @param processInstanceId the process instance id
   * @param future the future
   * @return the commit message
   */
  protected CommitMessage<?> createSuccessfullCommitMessage(String processInstanceId) {
    return new NodeUtils().createSuccessfulCommitMessage(processInstanceId, this.getSelf(), this.getSender());
  }
View Full Code Here

    /** The timeout for collecting the deactivation commits (which is slightly shorter than the timeout
     * for this event definition, to be able to handle the timeout exception here) */
    Timeout deactivationTimeout = new Timeout(Duration.create((long) (timeoutInSeconds * 0.95), "seconds"));
   
    Future<Iterable<Object>> futureSequence = new NodeUtils().deactivateNodes(otherActorReferences, message.getProcessInstanceId(), deactivationTimeout, this.getSender(), this.getSelf());

      // send commit to underlying event
    return createCommitMessage(futureSequence, message.getProcessInstanceId());
  }
View Full Code Here

TOP

Related Classes of com.catify.processengine.core.nodes.NodeUtils

Copyright © 2018 www.massapicom. 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.