hotfix - 优化异步任务处理过程中,如果待处理的数据已经被变更了状态,则直接跳过该任务的执行
This commit is contained in:
parent
771766f917
commit
43d1bb1626
@ -38,6 +38,9 @@ public class AsyncApproveTaskJobHandler implements JobHandler {
|
||||
CommandContextUtil.getProcessEngineConfiguration(commandContext);
|
||||
BpmnTaskAuditDTO dto = JSONUtil.toBean(job.getCustomValues(), BpmnTaskAuditDTO.class);
|
||||
Task task = processEngineConfiguration.getTaskService().createTaskQuery().taskId(dto.getTaskId()).singleResult();
|
||||
if (Objects.isNull(task)) {
|
||||
return;
|
||||
}
|
||||
CustomApproveTaskCmd command = new CustomApproveTaskCmd(dto);
|
||||
if (Objects.equals(task.getTaskDefinitionKey(), NODE_STARTER.getType())) {
|
||||
command = new CustomApproveTaskCmd(dto, "");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user