Commit 1e271f52705b48bb86936ded577a4ecf434b0d3a
Merge remote-tracking branch 'origin/develop' into develop
Showing
3 changed files
with
8 additions
and
4 deletions
sql/tools/convertor.py
| ... | ... | @@ -17,6 +17,7 @@ uv run --with simple-ddl-parser convertor.py dm8 > ../dm/ruoyi-vue-pro-dm8.sql |
| 17 | 17 | import argparse |
| 18 | 18 | import pathlib |
| 19 | 19 | import re |
| 20 | +import sys | |
| 20 | 21 | import time |
| 21 | 22 | from abc import ABC, abstractmethod |
| 22 | 23 | from typing import Dict, Generator, Optional, Tuple, Union |
| ... | ... | @@ -293,8 +294,10 @@ class Convertor(ABC): |
| 293 | 294 | |
| 294 | 295 | # 将parse失败的脚本打印出来 |
| 295 | 296 | if error_scripts: |
| 297 | + print("!!! 以下内容无法正常解析", file=sys.stderr) | |
| 296 | 298 | for script in error_scripts: |
| 297 | - print(script) | |
| 299 | + # print to stderr | |
| 300 | + print(script, file=sys.stderr) | |
| 298 | 301 | |
| 299 | 302 | |
| 300 | 303 | class PostgreSQLConvertor(Convertor): | ... | ... |
yudao-module-bpm/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/core/util/SimpleModelUtils.java
| ... | ... | @@ -598,8 +598,9 @@ public class SimpleModelUtils { |
| 598 | 598 | private static class ParallelBranchNodeConvert implements NodeConvert { |
| 599 | 599 | |
| 600 | 600 | /** |
| 601 | - * 并行分支使用包容网关。需要设置所有出口条件表达式的值为 true. | |
| 602 | - * 参见: {@link ConditionNodeConvert#buildSequenceFlow} | |
| 601 | + * 并行分支使用包容网关。需要设置所有出口条件表达式的值为 true 。原因是,解决 https://t.zsxq.com/m6GXh 反馈问题 | |
| 602 | + * | |
| 603 | + * @see {@link ConditionNodeConvert#buildSequenceFlow} | |
| 603 | 604 | */ |
| 604 | 605 | @Override |
| 605 | 606 | public List<InclusiveGateway> convertList(BpmSimpleModelNodeVO node) { | ... | ... |
yudao-module-bpm/src/main/java/cn/iocoder/yudao/module/bpm/service/task/BpmProcessInstanceServiceImpl.java
| ... | ... | @@ -265,7 +265,7 @@ public class BpmProcessInstanceServiceImpl implements BpmProcessInstanceService |
| 265 | 265 | // 3. 获取下一个将要执行的节点集合 |
| 266 | 266 | FlowElement flowElement = bpmnModel.getFlowElement(task.getTaskDefinitionKey()); |
| 267 | 267 | List<FlowNode> nextFlowNodes = BpmnModelUtils.getNextFlowNodes(flowElement, bpmnModel, processVariables); |
| 268 | - // 仅仅获取 UserTask 节点 TODO:如果网关节点和网关节点相连,获取下个 UserTask. 貌似有点不准。 | |
| 268 | + // 仅仅获取 UserTask 节点 TODO add from jason:如果网关节点和网关节点相连,获取下个 UserTask. 貌似有点不准。 | |
| 269 | 269 | List<FlowNode> nextUserTaskList = CollectionUtils.filterList(nextFlowNodes, node -> node instanceof UserTask); |
| 270 | 270 | List<ActivityNode> nextActivityNodes = convertList(nextUserTaskList, node -> new ActivityNode().setId(node.getId()) |
| 271 | 271 | .setName(node.getName()).setNodeType(BpmSimpleModelNodeTypeEnum.APPROVE_NODE.getType()) | ... | ... |