Commit 296eb22b6804b0fcf343041554f0956120608a83

Authored by YunaiV
1 parent ca815b4c

feat(bpm): 增加一些注释

yudao-module-bpm/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/core/util/BpmnModelUtils.java
... ... @@ -997,7 +997,7 @@ public class BpmnModelUtils {
997 997 continue;
998 998 }
999 999 hasSequenceFlow.add(outgoingFlow.getId());
1000   -
  1000 + // 获取目标节点
1001 1001 FlowElement targetElement = bpmnModel.getFlowElement(outgoingFlow.getTargetRef());
1002 1002 if (targetElement == null || targetElement instanceof EndEvent) {
1003 1003 continue;
... ...
yudao-module-bpm/src/main/java/cn/iocoder/yudao/module/bpm/service/task/BpmProcessInstanceServiceImpl.java
... ... @@ -276,9 +276,9 @@ public class BpmProcessInstanceServiceImpl implements BpmProcessInstanceService
276 276 processVariables.putAll(reqVO.getProcessVariables());
277 277 }
278 278  
279   - // 3. 获取下一个将要执行的节点集合
  279 + // 3.1 获取下一个将要执行的节点集合
280 280 FlowElement flowElement = bpmnModel.getFlowElement(task.getTaskDefinitionKey());
281   - // 获取 UserTask 节点
  281 + // 3.2 获取 UserTask 节点
282 282 List<UserTask> nextUserTaskList = BpmnModelUtils.getNextUserTasks(flowElement, bpmnModel, processVariables);
283 283 List<ActivityNode> nextActivityNodes = convertList(nextUserTaskList, node -> new ActivityNode().setId(node.getId())
284 284 .setName(node.getName()).setNodeType(BpmSimpleModelNodeTypeEnum.APPROVE_NODE.getType())
... ...