Package com.catify.processengine.core.services

Examples of com.catify.processengine.core.services.ActorReferenceService


    Object def = exclusiveGatewayJaxb.getDefault();
   
    if(def != null) {
      TSequenceFlow sequenceFlowJaxb = (TSequenceFlow) def;
      // actor reference
      return new ActorReferenceService().getActorReference(
          IdService.getUniqueFlowNodeId(clientId, processJaxb, subProcessesJaxb,
              (TFlowNode) sequenceFlowJaxb.getTargetRef()));
    }
    return null;
  }
View Full Code Here


         * handeled by other components of the engine
         */
        if (sequenceFlowJaxb.getTargetRef() instanceof TFlowNode) {
         
          // actor reference
          ActorRef actorRef = new ActorReferenceService().getActorReference(
              IdService.getUniqueFlowNodeId(clientId, processJaxb, subProcessesJaxb,
                  (TFlowNode) sequenceFlowJaxb.getTargetRef()));
         
          // conditional expression
          String expressionString = this.getConditionalExpressionString(sequenceFlowJaxb);
View Full Code Here

    String subProcessUinqueFlowNodeId = getParentSubProcessUniqueFlowNodeId(
        clientId, processJaxb, subProcessesJaxb, flowNodeJaxb);

    if (subProcessUinqueFlowNodeId != null) {
      return new ActorReferenceService().getActorReference(subProcessUinqueFlowNodeId);
    } else {
      return null;
    }
  }
View Full Code Here

        /*
         * ...add it to the outgoing nodes list as an actor reference
         * string. (the actor reference object might not be initialized
         * at this point)
         */
        otherStartNodes.add(new ActorReferenceService().getActorReference(
            IdService.getUniqueFlowNodeId(clientId, processJaxb, subProcessesJaxb,
                (TFlowNode) sequenceFlowJaxb.getSourceRef())));

      }
    }
View Full Code Here

   
    // extract StartEvents from SubProcess
    for (JAXBElement<? extends TFlowElement> flowElementJaxb : ((TSubProcess) flowNodeJaxb).getFlowElement()) {
        if (flowElementJaxb.getValue() instanceof TStartEvent) {
          TStartEvent startEventJaxb = (TStartEvent) flowElementJaxb.getValue();
          embeddedStartNodes.add(new ActorReferenceService()
            .getActorReference(IdService.getUniqueFlowNodeId(clientId, processJaxb, subProcesses,
              startEventJaxb)));
        }
    }
   
View Full Code Here

     
    // extract StartEvents from SubProcess
    for (JAXBElement<? extends TFlowElement> flowElementJaxb : ((TSubProcess) flowNodeJaxb).getFlowElement()) {
        if (flowElementJaxb.getValue() instanceof TFlowNode) {
          TFlowNode embeddedFlowNodeJaxb = (TFlowNode) flowElementJaxb.getValue();
          embeddedFlowNodes.add(new ActorReferenceService()
            .getActorReference(IdService.getUniqueFlowNodeId(clientId, processJaxb, subProcessesJaxb,
                embeddedFlowNodeJaxb)));
        }
    }
   
View Full Code Here

   * @see com.catify.processengine.management.ProcessManagementService#sendTriggerMessage(java.lang.String, com.catify.processengine.core.messages.TriggerMessage)
   */
  @Override
  public void sendTriggerMessage(String uniqueFlowNodeId, TriggerMessage triggerMessage) {

    ActorRef actorRef = new ActorReferenceService().getActorReference(uniqueFlowNodeId);
   
    LOG.debug("Sending TriggerMessage to " + actorRef);
   
    actorRef.tell(triggerMessage, null);
 
View Full Code Here

        processInstanceMediatorService.getPreviousLoosingNodeIds(getUniqueProcessId(), getUniqueFlowNodeId(), message.getProcessInstanceId());
   
    for (String loosingUniqueFlowNodeId : loosingUniqueFlowNodeIds) {
      this.sendMessageToNodeActor(
          new DeactivationMessage(message.getProcessInstanceId()),
          new ActorReferenceService().getActorReference(loosingUniqueFlowNodeId));
    }
  }
View Full Code Here

  private EventDefinition createTimerEventDefinition(String clientId,
      TProcess processJaxb, ArrayList<TSubProcess> subProcessesJaxb,
      TFlowNode flowNodeJaxb, TEventDefinition eventDefinitionJaxb) {
   
    return new TimerEventDefinition(
        new ActorReferenceService().getActorReference(
            IdService.getUniqueFlowNodeId(clientId, processJaxb, subProcessesJaxb,
                flowNodeJaxb)),
        getTimerType((TTimerEventDefinition) eventDefinitionJaxb),
        getIsoDate((TTimerEventDefinition) eventDefinitionJaxb));
View Full Code Here

      TFlowNode flowNodeJaxb, TEventDefinition eventDefinitionJaxb) {

    EventDefinition eventDefinition = new TerminateEventDefinition(
        IdService.getUniqueProcessId(clientId, processJaxb),
        IdService.getUniqueFlowNodeId(clientId, processJaxb, subProcessesJaxb, flowNodeJaxb),
        new ActorReferenceService().getActorReference(
            IdService.getUniqueFlowNodeId(clientId, processJaxb, subProcessesJaxb,
                flowNodeJaxb)),
        getOtherActorReferences(clientId, processJaxb, subProcessesJaxb, flowNodeJaxb)       
        );
   
View Full Code Here

TOP

Related Classes of com.catify.processengine.core.services.ActorReferenceService

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.