新增单个任务派送,缺少报功模式
This commit is contained in:
@@ -227,6 +227,7 @@ public class WfProcessServiceImpl extends FlowServiceFactory implements IWfProce
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
taskVoList.add(taskVo);
|
||||
}
|
||||
page.setRecords(taskVoList);
|
||||
@@ -738,12 +739,12 @@ public class WfProcessServiceImpl extends FlowServiceFactory implements IWfProce
|
||||
public String commonStart(String category) {
|
||||
try {
|
||||
|
||||
List<ProcessDefinition> processDefinition = repositoryService.createProcessDefinitionQuery()
|
||||
.processDefinitionCategory(category).list();
|
||||
ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery()
|
||||
.processDefinitionCategory(category).latestVersion().singleResult();
|
||||
// 传个空参进去,不破坏其他模型
|
||||
Map<String, Object> variables = new HashMap<String, Object>();
|
||||
// 拿到最新版本的模型
|
||||
return startProcess(processDefinition.get(processDefinition.size()-1), variables);
|
||||
return startProcess(processDefinition, variables);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new ServiceException("流程启动错误");
|
||||
|
||||
Reference in New Issue
Block a user