Package com.starflow.wf.engine.model

Examples of com.starflow.wf.engine.model.TransCtrl


 
  private static class TransCtrlRowMapper implements RowMapper<TransCtrl> {
    @Override
    public TransCtrl mapRow(ResultSet resultSet, int index)
        throws SQLException {
      TransCtrl transCtrl = new TransCtrl();
      transCtrl.setDestActDefId(resultSet.getString("destActDefId"));
      transCtrl.setDestActDefName(resultSet.getString("destActDefName"));
      transCtrl.setDestActType(resultSet.getString("destActType"));
      transCtrl.setSrcActDefId(resultSet.getString("srcActDefId"));
      transCtrl.setSrcActDefName(resultSet.getString("srcActDefName"));
      transCtrl.setSrcActType(resultSet.getString("srcActType"));
      transCtrl.setIsStartDestAct(resultSet.getString("isStartDestAct"));
      transCtrl.setIsUse(resultSet.getString("isUse"));
      transCtrl.setProcessInstId(resultSet.getLong("processInstId"));
      transCtrl.setTransCtrlId(resultSet.getLong("transCtrlId"));
      transCtrl.setTransTime(resultSet.getDate("transTime"));
      return transCtrl;
    }
View Full Code Here


     
      //调用startActivityInst方法直接启动环节
      if(srcActInst == null)
        srcActInst = destActInst;
     
      TransCtrl transCtrl = new TransCtrl();
      transCtrl.setSrcActDefId(srcActInst.getActivityDefId());
      transCtrl.setSrcActDefName(srcActInst.getActivityInstName());
      transCtrl.setSrcActType(srcActInst.getActivityType());
      transCtrl.setDestActDefId(destActInst.getActivityDefId());
      transCtrl.setDestActDefName(destActInst.getActivityInstName());
      transCtrl.setDestActType(destActInst.getActivityType());
      transCtrl.setTransTime(new Date());
      transCtrl.setProcessInstId(destActInst.getProcessInstId());
      transCtrl.setIsUse("N");
      transCtrl.setIsStartDestAct("N");
     
      long transCtrlId = PrimaryKeyUtil.getPrimaryKey(Keys.TRANSCTRLID);
      transCtrl.setTransCtrlId(transCtrlId);
     
      actInstRep.insertTransCtrl(transCtrl);
    }
  }
View Full Code Here

  public void saveTransCtrlCanNotAct(AbstractFlowEvent event, ActivityElement activityXml) {
    if(event instanceof ActivityCreateEvent) {
      IActivityInstRepository actInstRep = event.getActInstRep();
      ActivityInst srcActInst = ((ActivityCreateEvent)event).getActivityInst();
     
      TransCtrl transCtrl = new TransCtrl();
      transCtrl.setSrcActDefId(srcActInst.getActivityDefId());
      transCtrl.setSrcActDefName(srcActInst.getActivityInstName());
      transCtrl.setSrcActType(srcActInst.getActivityType());
      transCtrl.setDestActDefId(activityXml.getId());
      transCtrl.setDestActDefName(activityXml.getName());
      transCtrl.setDestActType(activityXml.getType());
      transCtrl.setTransTime(new Date());
      transCtrl.setProcessInstId(srcActInst.getProcessInstId());
      transCtrl.setIsUse("N");
      transCtrl.setIsStartDestAct("Y");
     
      long transCtrlId = PrimaryKeyUtil.getPrimaryKey(Keys.TRANSCTRLID);
      transCtrl.setTransCtrlId(transCtrlId);
     
      actInstRep.insertTransCtrl(transCtrl);
    }
  }
View Full Code Here

TOP

Related Classes of com.starflow.wf.engine.model.TransCtrl

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.