| | |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import org.dromara.workflow.common.enums.TaskStatusEnum; |
| | | import org.dromara.workflow.utils.QueryUtils; |
| | | import org.flowable.bpmn.model.BoundaryEvent; |
| | | import org.flowable.bpmn.model.BpmnModel; |
| | | import org.flowable.bpmn.model.FlowElement; |
| | |
| | | String attachedToRefId = ((BoundaryEvent) flowElement).getAttachedToRefId(); |
| | | List<Execution> list = runtimeService.createExecutionQuery().activityId(attachedToRefId).list(); |
| | | for (Execution ex : list) { |
| | | Task task = taskService.createTaskQuery().executionId(ex.getId()).singleResult(); |
| | | Task task = QueryUtils.taskQuery().executionId(ex.getId()).singleResult(); |
| | | if (task != null) { |
| | | List<Comment> taskComments = taskService.getTaskComments(task.getId()); |
| | | if (CollUtil.isEmpty(taskComments)) { |