Package com.starflow.wf.service.spi

Examples of com.starflow.wf.service.spi.IProcessTriggerEvent


      if(TriggerEventType.BEFORE_START_PROC.equals(eventXml.getEventType())) {
        action(processEngine, processDefine, processInstance, eventXml, new IAction() {
         
          @Override
          public void execute(ProcessDefine processDefine, ProcessInstance processInstance) {
            IProcessTriggerEvent processTriggerEvent =
              (IProcessTriggerEvent)ApplicationContextHolder.getBean(eventXml.getAction());
            processTriggerEvent.beforeStart(processDefine.getProcessDefId());
          }
        });
      }
    }
  }
View Full Code Here


      if(TriggerEventType.AFTER_START_PROC.equals(eventXml.getEventType())) {
        action(processEngine, processDefine, processInstance, eventXml, new IAction() {
         
          @Override
          public void execute(ProcessDefine processDefine, ProcessInstance processInstance) {
            IProcessTriggerEvent processTriggerEvent =
              (IProcessTriggerEvent)ApplicationContextHolder.getBean(eventXml.getAction());
            processTriggerEvent.afterStart(processInstance.getProcessInstId());
          }
        });
      }
    }
  }
View Full Code Here

      if(TriggerEventType.BEFORE_COMPLETE_PROC.equals(eventXml.getEventType())) {
        action(processEngine, processDefine, processInstance, eventXml, new IAction() {
         
          @Override
          public void execute(ProcessDefine processDefine, ProcessInstance processInstance) {
            IProcessTriggerEvent processTriggerEvent =
              (IProcessTriggerEvent)ApplicationContextHolder.getBean(eventXml.getAction());
            processTriggerEvent.beforeComplete(processInstance.getProcessInstId());
          }
        });
      }
    }
  }
View Full Code Here

      if(TriggerEventType.AFTER_COMPLETE_PROC.equals(eventXml.getEventType())) {
        action(processEngine, processDefine, processInstance, eventXml, new IAction() {
         
          @Override
          public void execute(ProcessDefine processDefine, ProcessInstance processInstance) {
            IProcessTriggerEvent processTriggerEvent =
              (IProcessTriggerEvent)ApplicationContextHolder.getBean(eventXml.getAction());
            processTriggerEvent.afterComplete(processInstance.getProcessInstId());
          }
        });
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.starflow.wf.service.spi.IProcessTriggerEvent

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.