流程结束归档所有的历史任务

This commit is contained in:
Mr-wang 2024-01-30 15:29:18 +08:00
parent 963b468bfa
commit 267b4dda35

View File

@ -473,7 +473,6 @@ public class OaPendComponent {
//流程结束时归档所有任务
xmlDatasUtil.setCurrentnodetype("1");
//如果是终止或者废止的话,将历史记录全部更新
if (!actionName.equals("确认发布")){
try {
String processInstId = pec.getProcessInstance().getId();
List<HistoryTaskInstance> list = SDK.getHistoryTaskQueryAPI().processInstId(processInstId).list();
@ -486,7 +485,6 @@ public class OaPendComponent {
}
} catch (Exception e) {
}
}
}else{
xmlDatasUtil.setCurrentnodetype("0");
}