Browse Source

流程会签和或签的固定数据

zhanglei
dimengzhe 4 months ago
parent
commit
35aad376f7
  1. 11
      anrui-flowable/anrui-flowable-biz/src/main/java/com/yxt/anrui/flowable/biz/flow3/Flow3Service.java

11
anrui-flowable/anrui-flowable-biz/src/main/java/com/yxt/anrui/flowable/biz/flow3/Flow3Service.java

@ -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());
}
//======================================================================================

Loading…
Cancel
Save