diff --git a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java index 4360e268..10d06a73 100644 --- a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java +++ b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java @@ -234,6 +234,7 @@ public class ActTaskService extends BaseServiceImpl { taskService.addComment(taskId, task.getProcessInstanceId(), comment); } taskService.setVariable(taskId, Task_HANDLE_STATE, Task_HANDLE_STATE_AGREE); + taskService.setVariable(taskId, "backToFirst", Boolean.FALSE); taskService.complete(taskId); } @@ -620,6 +621,7 @@ public class ActTaskService extends BaseServiceImpl { } } taskService.setVariable(taskDTO.getTaskId(), Task_HANDLE_STATE, Task_HANDLE_STATE_REJECTED); + taskService.setVariable(taskDTO.getTaskId(), "backToFirst", Boolean.FALSE); this.completeTask(taskDTO.getTaskId(), taskDTO.getComment()); }