mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-21 02:25:56 +08:00
update 调整bpmn文件修复驳回失败问题
This commit is contained in:
parent
8fd1fa53d1
commit
714c87c259
@ -14,7 +14,7 @@ import org.springframework.stereotype.Component;
|
|||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Component
|
@Component
|
||||||
@FlowListenerAnnotation(processDefinitionKey = "leave1", taskDefId = "sid-31C52262-04C3-43D8-A3FB-8434017A6572")
|
@FlowListenerAnnotation(processDefinitionKey = "leave1", taskDefId = "Activity_14633hx")
|
||||||
public class TestCustomTaskHandler implements FlowTaskEventHandler {
|
public class TestCustomTaskHandler implements FlowTaskEventHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -611,7 +611,7 @@ public class ActTaskServiceImpl implements IActTaskService {
|
|||||||
//判断是否有多个任务
|
//判断是否有多个任务
|
||||||
List<Task> taskList = taskService.createTaskQuery().processInstanceId(processInstanceId).taskTenantId(TenantHelper.getTenantId()).list();
|
List<Task> taskList = taskService.createTaskQuery().processInstanceId(processInstanceId).taskTenantId(TenantHelper.getTenantId()).list();
|
||||||
//申请人节点
|
//申请人节点
|
||||||
HistoricTaskInstance historicTaskInstance = historyService.createHistoricTaskInstanceQuery().finished().orderByHistoricTaskInstanceEndTime().asc().list().get(0);
|
HistoricTaskInstance historicTaskInstance = historyService.createHistoricTaskInstanceQuery().processInstanceId(processInstanceId).finished().orderByHistoricTaskInstanceEndTime().asc().list().get(0);
|
||||||
String backTaskDefinitionKey = historicTaskInstance.getTaskDefinitionKey();
|
String backTaskDefinitionKey = historicTaskInstance.getTaskDefinitionKey();
|
||||||
taskService.addComment(task.getId(), processInstanceId, TaskStatusEnum.BACK.getStatus(), StringUtils.isNotBlank(backProcessBo.getMessage()) ? backProcessBo.getMessage() : "退回");
|
taskService.addComment(task.getId(), processInstanceId, TaskStatusEnum.BACK.getStatus(), StringUtils.isNotBlank(backProcessBo.getMessage()) ? backProcessBo.getMessage() : "退回");
|
||||||
if (taskList.size() > 1) {
|
if (taskList.size() > 1) {
|
||||||
|
|||||||
Binary file not shown.
BIN
script/bpmn/请假流程(监听)-leave7.zip
Normal file
BIN
script/bpmn/请假流程(监听)-leave7.zip
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user