Package com.starflow.wf.engine

Examples of com.starflow.wf.engine.ProcessEngineException


    else if(Constants.JOIN_MULTI.equalsIgnoreCase(mode))
      return new MultiJoinMode();
    else if(Constants.JOIN_SINGLE.equalsIgnoreCase(mode))
      return new SingleJoinMode();
    else
      throw new ProcessEngineException("聚合模式值不正确,Mode="+mode);
  }
View Full Code Here


    if(Constants.WORKITEM_SINGLE.equalsIgnoreCase(mode))
      return new SingleWorkItemMode();
    else if(Constants.WORKITEM_MULTI.equalsIgnoreCase(mode))
      return new MultiWorkItemMode();
    else
      throw new ProcessEngineException("工作项模式值不正确,Mode="+mode);
  }
View Full Code Here

    else if(Constants.SPLIT_MULTI.equalsIgnoreCase(mode))
      return new MultiSplitMode();
    else if(Constants.SPLIT_SINGLE.equalsIgnoreCase(mode))
      return new SingleSplitMode();
    else
      throw new ProcessEngineException("聚合模式值不正确,Mode="+mode);
  }
View Full Code Here

    else if(Constants.ACT_TYPE_TOOLAPP.equalsIgnoreCase(type))
      return new ToolAppActivityType();
    else if(Constants.ACT_TYPE_SUBPROCESS.equalsIgnoreCase(type))
      return new SubFlowActivityType();
    else
      throw new ProcessEngineException("环节类型值不正确,Type="+type);
  }
View Full Code Here

    else if(Constants.PARTICIPANT_ACT_LOGIC.equalsIgnoreCase(mode))
      return new ActLogicParticipantMode();
    else if(Constants.PARTICIPANT_ACT_RELDATA.equalsIgnoreCase(mode))
      return new RelDataParticipantMode();
    else
      throw new ProcessEngineException("参与者模式值不正确,Mode="+mode);
  }
View Full Code Here

 
  public List<ActivityInst> createNextActInsts(AbstractFlowEvent event, List<ActivityElement> activityXmls) {
    List<ActivityInst> actInsts = new ArrayList<ActivityInst>();
   
    if(activityXmls.size()<1)
      throw new ProcessEngineException("没有满足条件的分支节点,无法创建下一环节");
   
    //单一分支,只取第一个满足条件的分支环节
    ActivityElement activityXml = activityXmls.get(0);
    String actType = activityXml.getType();
    ActivityType type = ActivityTypeFactory.buildActivityType(actType);
View Full Code Here

public class AllSplitMode extends AbstractSplitMode {
  public List<ActivityInst> createNextActInsts(AbstractFlowEvent event, List<ActivityElement> activityXmls) {
    List<ActivityInst> actInsts = new ArrayList<ActivityInst>();
   
    if(activityXmls.size()<1)
      throw new ProcessEngineException("满足条件的分支节点,无法创建下一环节");
   
    //多路分支
    for(ActivityElement activityXml : activityXmls) {
      String actType = activityXml.getType();
      ActivityType type = ActivityTypeFactory.buildActivityType(actType);
View Full Code Here

public class MultiSplitMode extends AbstractSplitMode {
  public List<ActivityInst> createNextActInsts(AbstractFlowEvent event, List<ActivityElement> activityXmls) {
    List<ActivityInst> actInsts = new ArrayList<ActivityInst>();
   
    if(activityXmls.size()<1)
      throw new ProcessEngineException("满足条件的分支节点,无法创建下一环节");
   
    //多路分支
    for(ActivityElement activityXml : activityXmls) {
      String actType = activityXml.getType();
      ActivityType type = ActivityTypeFactory.buildActivityType(actType);
View Full Code Here

   */
  private static void handleException(Exception e, EventElement eventXml) {
    String exceptionStrategy = eventXml.getExceptionStrategy();
   
    if(Constants.ACT_EXCEPTIONSTRATEGY_ROLLBACK.equals(exceptionStrategy))
      throw new ProcessEngineException("触发事件执行失败", e);
    else {
      logger.error("触发事件执行失败", e);
    }
  }
View Full Code Here

    try {
      action.execute(activityXml, activityInst);
      txManager.commit(status);
    } catch (Exception e) {
      txManager.rollback(status);
      throw new ProcessEngineException("触发事件执行失败", e);
    }
  }
View Full Code Here

TOP

Related Classes of com.starflow.wf.engine.ProcessEngineException

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.