Examples of RollbackEngineException


Examples of com.starflow.wf.engine.event.support.RollbackEngineException

    List<String> actDefIds = event.getActDefIds();
    Date nowDate = new Date();
    for(String actDefId : actDefIds) {
      ActivityInst activityInst = event.getActInstRep().findActivityInstByActDefId(actDefId);
      if(activityInst.getCurrentState() == StarFlowState.ACT_INST_RUNING)
        throw new RollbackEngineException("环节【"+actDefId+"】处于运行状态,无法重启");
     
      event.getActInstRep().updateActivityStateToRunning(activityInst.getActivityInstId(),
          StarFlowState.ACT_INST_RUNING, nowDate);
     
      event.getWorkItemRep().updateActWorkItemStateAndStartTime(activityInst.getActivityInstId(),
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.