if(!StringUtils.hasText(userId))
throw new IllegalArgumentException("创建流程时,必须指定用户 ID");
final ProcessDefine processDefine = procDefRep.findPublishProcessDefine(processDefName);
if(processDefine == null)
throw new ProcessDefineNotFoundException("没有创建流程,或者流程定义版本没有发布");
//流程启动前触发事件
TriggerProcessEventUtil.beforeStart(processEngine, processDefine, null,
processDefine.getProcessObject().getEvents());