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);
}
}