|
|
|
@ -45,8 +45,9 @@ public abstract class ProcessAbstractService implements ProcessService {
|
|
|
|
|
@Override |
|
|
|
|
public R startFlow(String userId, String dictValue, String taskId, String processName, Map<String, Object> variables) { |
|
|
|
|
log.info("开启流程....."); |
|
|
|
|
R<BladeFlow> result = flowClient.startProcessInstanceContainNameByKey(dictValue, taskId, processName, variables); |
|
|
|
|
R r = new R(); |
|
|
|
|
try { |
|
|
|
|
R<BladeFlow> result = flowClient.startProcessInstanceContainNameByKey(dictValue, taskId, processName, variables); |
|
|
|
|
r.setCode(result.getCode()); |
|
|
|
|
r.setMsg(result.getMsg()); |
|
|
|
|
// 更新任务流程Id
|
|
|
|
@ -61,6 +62,10 @@ public abstract class ProcessAbstractService implements ProcessService {
|
|
|
|
|
pushStartFailMessage(dictValue,Long.valueOf(taskId),userId,processName,result.getMsg()); |
|
|
|
|
} |
|
|
|
|
return r; |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.error(e.toString()) ; |
|
|
|
|
} |
|
|
|
|
return R.fail("开启流程失败"); |
|
|
|
|
} |
|
|
|
|
// public R compensateFlow(String userId,String dictValue,String taskId,String processName,Map<String, Object> variables) {
|
|
|
|
|
// R<BladeFlow> result = flowClient.startProcessInstanceContainNameByKey(dictValue, taskId, processName, variables);
|
|
|
|
|