Examples of MonitorEvent


Examples of org.huihoo.workflow.impl.monitor.MonitorEvent

    log.debug(
      "[dispatch_andJoin] workitem: " + workflowWork.getInfo() + " | transition: " + workflowTransition.getInfo());

    WorkflowServiceBase context = (WorkflowServiceBase) workflowService;
    EventMonitorThread eventMonitorThread = context.getEventMonitorThread(workflowProcess.getWorkflowPackage());
    MonitorEvent monitorEvent =
      new MonitorEvent(workflowService, workflowProcess, operator, userTransaction, workflowWork, workflowTransition);
    eventMonitorThread.sendEvent(monitorEvent);

    MonitorEventResult eventResult = monitorEvent.getResult();

    if (eventResult.getException() != null)
    {
      throw new WorkflowException(eventResult.getException());
    }
View Full Code Here

Examples of org.huihoo.workflow.impl.monitor.MonitorEvent

    log.debug(
      "[dispatch_xorJoin] workitem: " + workflowWork.getInfo() + " | transition: " + workflowTransition.getInfo());

    WorkflowServiceBase context = (WorkflowServiceBase) workflowService;
    EventMonitorThread eventMonitorThread = context.getEventMonitorThread(workflowProcess.getWorkflowPackage());
    MonitorEvent monitorEvent =
      new MonitorEvent(workflowService, workflowProcess, operator, userTransaction, workflowWork, workflowTransition);
    eventMonitorThread.sendEvent(monitorEvent);

    MonitorEventResult eventResult = monitorEvent.getResult();

    if (eventResult.getException() != null)
    {
      eventResult.getException().printStackTrace();
      throw new WorkflowException(eventResult.getException());
View Full Code Here

Examples of org.huihoo.workflow.impl.monitor.MonitorEvent

    log.debug(
      "[dispatch_orJoin] workitem: " + workflowWork.getInfo() + " | transition: " + workflowTransition.getInfo());

    WorkflowServiceBase context = (WorkflowServiceBase) workflowService;
    EventMonitorThread eventMonitorThread = context.getEventMonitorThread(workflowProcess.getWorkflowPackage());
    MonitorEvent monitorEvent =
      new MonitorEvent(workflowService, workflowProcess, operator, userTransaction, workflowWork, workflowTransition);
    eventMonitorThread.sendEvent(monitorEvent);

    MonitorEventResult eventResult = monitorEvent.getResult();

    if (eventResult.getException() != null)
    {
      eventResult.getException().printStackTrace();
      throw new WorkflowException(eventResult.getException());
View Full Code Here

Examples of org.huihoo.workflow.impl.monitor.MonitorEvent

        + " | transition: "
        + workflowTransition.getInfo());

    WorkflowServiceBase context = (WorkflowServiceBase) workflowService;
    EventMonitorThread eventMonitorThread = context.getEventMonitorThread(workflowProcess.getWorkflowPackage());
    MonitorEvent monitorEvent =
      new MonitorEvent(workflowService, workflowProcess, operator, userTransaction, workflowWork, workflowTransition);
    eventMonitorThread.sendEvent(monitorEvent);

    MonitorEventResult eventResult = monitorEvent.getResult();

    if (eventResult.getException() != null)
    {
      throw new WorkflowException(eventResult.getException());
    }
View Full Code Here

Examples of org.huihoo.workflow.impl.monitor.MonitorEvent

    throws WorkflowException
  {
    log.debug("[dispatch_instanceXorJoin] workitem: " + workflowWork.getInfo() + " | transition: " + workflowTransition.getInfo());
    WorkflowServiceBase context = (WorkflowServiceBase) workflowService;
    EventMonitorThread eventMonitorThread = context.getEventMonitorThread(workflowProcess.getWorkflowPackage());
    MonitorEvent monitorEvent =
      new MonitorEvent(workflowService, workflowProcess, operator, userTransaction, workflowWork, workflowTransition);
    eventMonitorThread.sendEvent(monitorEvent);

    MonitorEventResult eventResult = monitorEvent.getResult();

    if (eventResult.getException() != null)
    {
      throw new WorkflowException(eventResult.getException());
    }
View Full Code Here

Examples of org.plugtree.training.model.MonitorEvent

        ksession.setGlobal("doctor", doctor);

        assertTrue(nurse.getNotifications().isEmpty());

        //First event
        bedEventsEP.insert(new MonitorEvent(patient, MonitorEvent.Symptom.HIGH_TEMPERATURE));
        ksession.fireAllRules();

        assertTrue(nurse.getNotifications().isEmpty());

        //Second event: 5 minutes after
        clock.advanceTime(5, TimeUnit.MINUTES);
        bedEventsEP.insert(new MonitorEvent(patient, MonitorEvent.Symptom.HIGH_TEMPERATURE));
        ksession.fireAllRules();
       
        assertEquals(1,nurse.getNotifications().size());
        nurse.clearNotifications();

        //Third event: 15 minutes after the last one
        clock.advanceTime(15, TimeUnit.MINUTES);
        bedEventsEP.insert(new MonitorEvent(patient, MonitorEvent.Symptom.HIGH_TEMPERATURE));
        ksession.fireAllRules();

        assertTrue(nurse.getNotifications().isEmpty());

        //Fourth event: 7 minutes after the last one
        clock.advanceTime(7, TimeUnit.MINUTES);
        bedEventsEP.insert(new MonitorEvent(patient, MonitorEvent.Symptom.HIGH_TEMPERATURE));
        ksession.fireAllRules();
       
        assertEquals(1,nurse.getNotifications().size());
        nurse.clearNotifications();
View Full Code Here

Examples of org.plugtree.training.model.MonitorEvent

        ksession.setGlobal("doctor", doctor);

        assertTrue(doctor.getNotifications().isEmpty());

        //First event
        bedEventsEP.insert(new MonitorEvent(patient, MonitorEvent.Symptom.HIGH_TEMPERATURE));
        ksession.fireAllRules();

        assertTrue(doctor.getNotifications().isEmpty());

        //Second event: 5 minutes after
        clock.advanceTime(5, TimeUnit.MINUTES);
        bedEventsEP.insert(new MonitorEvent(patient, MonitorEvent.Symptom.HIGH_BLOOD_PRESSURE));
        ksession.fireAllRules();

        assertEquals(1,doctor.getNotifications().size());
        doctor.clearNotifications();

        //Third event: 15 minutes after the last one
        clock.advanceTime(15, TimeUnit.MINUTES);
        bedEventsEP.insert(new MonitorEvent(patient, MonitorEvent.Symptom.HIGH_TEMPERATURE));
        ksession.fireAllRules();

        assertTrue(doctor.getNotifications().isEmpty());

        //Fourth event: 7 minutes after the last one
        clock.advanceTime(7, TimeUnit.MINUTES);
        bedEventsEP.insert(new MonitorEvent(patient, MonitorEvent.Symptom.HIGH_BLOOD_PRESSURE));
        ksession.fireAllRules();

        assertEquals(1,doctor.getNotifications().size());
        doctor.clearNotifications();
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.