Examples of fireMessage()


Examples of org.uengine.kernel.ProcessDefinition.fireMessage()

    resultPayload.setExtendedValue(
        new KeyedParameter(HumanActivity.PAYLOADKEY_TASKID, taskIds[0])
    );     
    //

    definition.fireMessage(message, instance, resultPayload);
  }

  public void executeEventByWorkitem(String mainInstanceId, String eventName, ResultPayload resultPayload) throws RemoteException{
    executeEventByWorkitem(mainInstanceId, eventName, null, resultPayload);
  }
View Full Code Here

Examples of org.uengine.kernel.ProcessDefinition.fireMessage()

      //send message first
      ProcessDefinition mainProcessDefinition = mainProcessInstance.getProcessDefinition();
      EventMessagePayload eventMessagePayload = new EventMessagePayload();
      eventMessagePayload.setEventName(eventName);
      eventMessagePayload.setTriggerTracingTag(triggerActivityTracingTag);
      mainProcessDefinition.fireMessage("event", mainProcessInstance, eventMessagePayload);
     
      //get the initiated sub process instance
      EventHandler[] ehs = getEventHandlersInAction(mainInstanceId);
      EventHandler theEventHandler = null;
      for(int i=0; i<ehs.length; i++){
View Full Code Here

Examples of org.uengine.kernel.ProcessDefinition.fireMessage()

  public Serializable sendMessage(String instanceId, String message, Serializable payload) throws RemoteException{
    logInst("sendMessage", new Object[]{instanceId, message, payload});
    try{
      ProcessInstance instance = getInstance(instanceId);
      ProcessDefinition definition = instance.getProcessDefinition();
      return (Serializable)definition.fireMessage(message, instance, payload); //send message to the whole subscribers regardless of given instance id. it means even if there're instance which didn't subscribe, the instance will be ignored.

//      MessageProcessorBean.queueMessage(message, instanceId, payload);
     
      //review:
      //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.