Examples of TriggerMessage


Examples of com.catify.processengine.core.messages.TriggerMessage

        .get(integrationMessage.getUniqueFlowNodeId());
    ActorRef targetNodeActor = this.actorSystem
        .actorFor("user/" + targetNodeActorString);
   
    // create the integration message
    TriggerMessage triggerMessage = new TriggerMessage(
        integrationMessage.getProcessInstanceId(),
        integrationMessage.getPayload());

    LOG.debug("Message Dispatcher sending trigger message to " + targetNodeActor);
   
View Full Code Here

Examples of com.catify.processengine.core.messages.TriggerMessage

    // if the process instance has no active nodes left, consider it ended
    if (activeFlowNodeInstances.size() == 0) {
     
      // embedded end events call their embedding sub processes to move on in the process
      if (this.parentSubProcessNode != null) {
        this.sendMessageToNodeActor(new TriggerMessage(processInstanceId, null), this.parentSubProcessNode);
        LOG.debug(String.format("Sub-Process instance with instance id '%s' ended sucessfully", processInstanceId));
      // top level end events will work with the whole process instance to either save or delete it
      } else {
        LOG.debug(String.format("Process instance with instance id '%s' ended sucessfully", processInstanceId));
      }
View Full Code Here

Examples of com.catify.processengine.core.messages.TriggerMessage

    this.getNodeInstanceMediatorService().setNodeInstanceStartTime(message.getProcessInstanceId(), new Date());
   
    this.getNodeInstanceMediatorService().persistChanges();
   
    // start the sub process
    this.sendMessageToNodeActors(new TriggerMessage(message.getProcessInstanceId(), null), getStartNodes());
  }
View Full Code Here

Examples of com.catify.processengine.core.messages.TriggerMessage

          @Override
          public void run() {
            // for each due timer create a trigger message and send it to the underlying event node
            List<TimerBean> dueTimers = timerSPI.loadDueTimers(getSelf().toString());
            for (TimerBean timerBean : dueTimers) {
              eventActorRef.tell(new TriggerMessage(timerBean.getProcessInstanceId(), null), getSender());
            }
          }
        },
        actorSystem.dispatcher());
  }
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.