Package org.drools.runtime

Examples of org.drools.runtime.StatefulKnowledgeSession.signalEvent()


      public void afterNodeTriggered(ProcessNodeTriggeredEvent event) {
      }
      public void afterNodeLeft(ProcessNodeLeftEvent event) {
      }
    });
        ksession.signalEvent("MyStartSignal", "NewValue");
    assertEquals(1, list.size());
    }
   
    public void testSignalEnd() throws Exception {
        KnowledgeBase kbase = createKnowledgeBase("BPMN2-SignalEndEvent.xml");
View Full Code Here


    }
   
    public void testMessageStart() throws Exception {
        KnowledgeBase kbase = createKnowledgeBase("BPMN2-MessageStart.xml");
    StatefulKnowledgeSession ksession = createKnowledgeSession(kbase);
        ksession.signalEvent("Message-HelloMessage", "NewValue");
    }
   
    public void testMessageEnd() throws Exception {
        KnowledgeBase kbase = createKnowledgeBase("BPMN2-MessageEndEvent.xml");
    StatefulKnowledgeSession ksession = createKnowledgeSession(kbase);
View Full Code Here

    public Object execute(Context context) {
        StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession();
       
        if (processInstanceId == -1) {
            ksession.signalEvent(eventType, event);
        } else {
            ProcessInstance processInstance = ksession.getProcessInstance(processInstanceId);
            if (processInstance != null) {
                processInstance.signalEvent(eventType, event);
            }
View Full Code Here

    public Object execute(Context context) {
        StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession();
       
    if (processInstanceId == -1) {
        ksession.signalEvent(eventType, event);
    } else {
      ProcessInstance processInstance = ksession.getProcessInstance(processInstanceId);
      if (processInstance != null) {
        processInstance.signalEvent(eventType, event);
      }
View Full Code Here

    public Object execute(Context context) {
        StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession();
       
    if (processInstanceId == -1) {
        ksession.signalEvent(eventType, event);
    } else {
      ProcessInstance processInstance = ksession.getProcessInstance(processInstanceId);
      if (processInstance != null) {
        processInstance.signalEvent(eventType, event);
      }
View Full Code Here

    public Object execute(Context context) {
        StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession();
       
    if (processInstanceId == -1) {
        ksession.signalEvent(eventType, event);
    } else {
      ProcessInstance processInstance = ksession.getProcessInstance(processInstanceId);
      if (processInstance != null) {
        processInstance.signalEvent(eventType, event);
      }
View Full Code Here

    public Object execute(Context context) {
        StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession();
       
    if (processInstanceId == -1) {
        ksession.signalEvent(eventType, event);
    } else {
      ProcessInstance processInstance = ksession.getProcessInstance(processInstanceId);
      if (processInstance != null) {
        processInstance.signalEvent(eventType, event);
      }
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.