新增单个任务派送,缺少报功模式

This commit is contained in:
2025-03-26 17:34:13 +08:00
parent 6610dfefb9
commit 17a63b5e2a
24 changed files with 498 additions and 444 deletions

View File

@@ -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("流程启动错误");