Package com.starflow.wf.engine.event

Examples of com.starflow.wf.engine.event.ActivityCreateEvent


   *
   * @param event
   * @param activityInst
   */
  public static void publishActivityCreateEvent(AbstractFlowEvent event, ActivityInst activityInst) {
    ActivityCreateEvent activityCreateEvent = new ActivityCreateEvent(event.getProcessEngine());
    activityCreateEvent.setProcessInstance(event.getProcessInstance());
    activityCreateEvent.setActivityInst(activityInst);
    activityCreateEvent.setPreActivityXml(event.getPreActivityXml());
    event.getProcessEngine().getApplicationContext().publishEvent(activityCreateEvent);
  }
View Full Code Here


      protected void doInTransactionWithoutResult(TransactionStatus status) {
        String actType = activityXml.getType();
        ActivityType type = ActivityTypeFactory.buildActivityType(actType);
       
        //创建环节
        ActivityCreateEvent event = new ActivityCreateEvent(processEngine);
        event.setProcessInstance(processInstance);
        ActivityInst activityInst = type.createActivity(event, activityXml);
       
        //启动环节
        EventUtil.publishActivityStartEvent(event, activityInst, activityXml);
      }
View Full Code Here

        if(StarFlowState.ACT_INST_WAITING != activityInst.getCurrentState())
          throw new ProcessEngineException("当前环节(activityInstId="+activityInst.getActivityInstId()+")不处于待激活状态,"+
              "无法激活该环节!");
       
        //创建环节
        ActivityCreateEvent event = new ActivityCreateEvent(processEngine);
        event.setProcessInstance(processInstance);
       
        //启动环节
        EventUtil.publishActivityStartEvent(event, activityInst, activityXml);
       
        if(logger.isDebugEnabled())
View Full Code Here

TOP

Related Classes of com.starflow.wf.engine.event.ActivityCreateEvent

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.