主动终止时 驳回置false
This commit is contained in:
parent
c728ff3960
commit
f2c55b7718
|
@ -643,6 +643,7 @@ public class ActTaskService extends BaseServiceImpl {
|
||||||
taskService.addComment(task.getId(), task.getProcessInstanceId(), comment);
|
taskService.addComment(task.getId(), task.getProcessInstanceId(), comment);
|
||||||
taskService.setVariable(task.getId(), Task_HANDLE_STATE, Task_HANDLE_STATE_STOP);
|
taskService.setVariable(task.getId(), Task_HANDLE_STATE, Task_HANDLE_STATE_STOP);
|
||||||
taskService.setVariable(task.getId(), "reject", Boolean.TRUE); // 存在被拒绝的批示
|
taskService.setVariable(task.getId(), "reject", Boolean.TRUE); // 存在被拒绝的批示
|
||||||
|
taskService.setVariable(task.getId(), "backToFirst", Boolean.FALSE); // 驳回
|
||||||
taskService.complete(taskId);
|
taskService.complete(taskId);
|
||||||
pointActivity.getIncomingTransitions().remove(newTransition);
|
pointActivity.getIncomingTransitions().remove(newTransition);
|
||||||
List<PvmTransition> pvmTransitionListC = currActivity.getOutgoingTransitions();
|
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(), Task_HANDLE_STATE, Task_HANDLE_STATE_STOP);
|
||||||
taskService.setVariable(task.getId(), "endByUser", Boolean.TRUE); // 主动终止流程
|
taskService.setVariable(task.getId(), "endByUser", Boolean.TRUE); // 主动终止流程
|
||||||
taskService.setVariable(task.getId(), "reject", Boolean.TRUE); // 存在被拒绝的批示
|
taskService.setVariable(task.getId(), "reject", Boolean.TRUE); // 存在被拒绝的批示
|
||||||
|
taskService.setVariable(task.getId(), "backToFirst", Boolean.FALSE); // 驳回
|
||||||
taskService.complete(task.getId());
|
taskService.complete(task.getId());
|
||||||
pointActivity.getIncomingTransitions().remove(newTransition);
|
pointActivity.getIncomingTransitions().remove(newTransition);
|
||||||
List<PvmTransition> pvmTransitionListC = currActivity.getOutgoingTransitions();
|
List<PvmTransition> pvmTransitionListC = currActivity.getOutgoingTransitions();
|
||||||
|
|
Loading…
Reference in New Issue