主动终止时 驳回置false

This commit is contained in:
wangliwen 2022-08-04 10:57:36 +08:00
parent c728ff3960
commit f2c55b7718
1 changed files with 2 additions and 0 deletions

View File

@ -643,6 +643,7 @@ public class ActTaskService extends BaseServiceImpl {
taskService.addComment(task.getId(), task.getProcessInstanceId(), comment);
taskService.setVariable(task.getId(), Task_HANDLE_STATE, Task_HANDLE_STATE_STOP);
taskService.setVariable(task.getId(), "reject", Boolean.TRUE); // 存在被拒绝的批示
taskService.setVariable(task.getId(), "backToFirst", Boolean.FALSE); // 驳回
taskService.complete(taskId);
pointActivity.getIncomingTransitions().remove(newTransition);
List<PvmTransition> pvmTransitionListC = currActivity.getOutgoingTransitions();
@ -700,6 +701,7 @@ public class ActTaskService extends BaseServiceImpl {
taskService.setVariable(task.getId(), Task_HANDLE_STATE, Task_HANDLE_STATE_STOP);
taskService.setVariable(task.getId(), "endByUser", Boolean.TRUE); // 主动终止流程
taskService.setVariable(task.getId(), "reject", Boolean.TRUE); // 存在被拒绝的批示
taskService.setVariable(task.getId(), "backToFirst", Boolean.FALSE); // 驳回
taskService.complete(task.getId());
pointActivity.getIncomingTransitions().remove(newTransition);
List<PvmTransition> pvmTransitionListC = currActivity.getOutgoingTransitions();