|
|
@ -221,20 +221,15 @@ public class Flow3Service { |
|
|
|
Task approvalTask = approvalTasks.get(0); |
|
|
|
|
|
|
|
taskService.complete(approvalTask.getId()); |
|
|
|
/* // 手动更新历史记录中的 `ASSIGNEE_` 和 `END_TIME_`
|
|
|
|
|
|
|
|
//==待定
|
|
|
|
// 手动更新历史记录中的 `ASSIGNEE_` 和 `END_TIME_`
|
|
|
|
HistoricTaskInstance historicTask = historyService.createHistoricTaskInstanceQuery() |
|
|
|
.taskId(approvalTask.getId()).singleResult(); |
|
|
|
if (historicTask != null) { |
|
|
|
// 只有在实际完成的用户任务记录中才更新这些字段
|
|
|
|
System.out.println("Task completed by: " + historicTask.getAssignee()); |
|
|
|
System.out.println("Task end time: " + historicTask.getEndTime()); |
|
|
|
}*/ |
|
|
|
HistoricTaskInstance historicTask = historyService.createHistoricTaskInstanceQuery() |
|
|
|
.taskId(approvalTask.getId()) |
|
|
|
.singleResult(); |
|
|
|
if (historicTask != null && historicTask.getEndTime() != null) { |
|
|
|
System.out.println("Task completed by: " + historicTask.getAssignee()); |
|
|
|
System.out.println("Task end time: " + historicTask.getEndTime()); |
|
|
|
} |
|
|
|
|
|
|
|
//======================================================================================
|
|
|
|