Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -17,6 +17,7 @@ uv run --with simple-ddl-parser convertor.py dm8 > ../dm/ruoyi-vue-pro-dm8.sql
|
|||||||
import argparse
|
import argparse
|
||||||
import pathlib
|
import pathlib
|
||||||
import re
|
import re
|
||||||
|
import sys
|
||||||
import time
|
import time
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from typing import Dict, Generator, Optional, Tuple, Union
|
from typing import Dict, Generator, Optional, Tuple, Union
|
||||||
@@ -293,8 +294,10 @@ class Convertor(ABC):
|
|||||||
|
|
||||||
# 将parse失败的脚本打印出来
|
# 将parse失败的脚本打印出来
|
||||||
if error_scripts:
|
if error_scripts:
|
||||||
|
print("!!! 以下内容无法正常解析", file=sys.stderr)
|
||||||
for script in error_scripts:
|
for script in error_scripts:
|
||||||
print(script)
|
# print to stderr
|
||||||
|
print(script, file=sys.stderr)
|
||||||
|
|
||||||
|
|
||||||
class PostgreSQLConvertor(Convertor):
|
class PostgreSQLConvertor(Convertor):
|
||||||
|
|||||||
@@ -598,8 +598,9 @@ public class SimpleModelUtils {
|
|||||||
private static class ParallelBranchNodeConvert implements NodeConvert {
|
private static class ParallelBranchNodeConvert implements NodeConvert {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并行分支使用包容网关。需要设置所有出口条件表达式的值为 true.
|
* 并行分支使用包容网关。需要设置所有出口条件表达式的值为 true 。原因是,解决 https://t.zsxq.com/m6GXh 反馈问题
|
||||||
* 参见: {@link ConditionNodeConvert#buildSequenceFlow}
|
*
|
||||||
|
* @see {@link ConditionNodeConvert#buildSequenceFlow}
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<InclusiveGateway> convertList(BpmSimpleModelNodeVO node) {
|
public List<InclusiveGateway> convertList(BpmSimpleModelNodeVO node) {
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ public class BpmProcessInstanceServiceImpl implements BpmProcessInstanceService
|
|||||||
// 3. 获取下一个将要执行的节点集合
|
// 3. 获取下一个将要执行的节点集合
|
||||||
FlowElement flowElement = bpmnModel.getFlowElement(task.getTaskDefinitionKey());
|
FlowElement flowElement = bpmnModel.getFlowElement(task.getTaskDefinitionKey());
|
||||||
List<FlowNode> nextFlowNodes = BpmnModelUtils.getNextFlowNodes(flowElement, bpmnModel, processVariables);
|
List<FlowNode> nextFlowNodes = BpmnModelUtils.getNextFlowNodes(flowElement, bpmnModel, processVariables);
|
||||||
// 仅仅获取 UserTask 节点 TODO:如果网关节点和网关节点相连,获取下个 UserTask. 貌似有点不准。
|
// 仅仅获取 UserTask 节点 TODO add from jason:如果网关节点和网关节点相连,获取下个 UserTask. 貌似有点不准。
|
||||||
List<FlowNode> nextUserTaskList = CollectionUtils.filterList(nextFlowNodes, node -> node instanceof UserTask);
|
List<FlowNode> nextUserTaskList = CollectionUtils.filterList(nextFlowNodes, node -> node instanceof UserTask);
|
||||||
List<ActivityNode> nextActivityNodes = convertList(nextUserTaskList, node -> new ActivityNode().setId(node.getId())
|
List<ActivityNode> nextActivityNodes = convertList(nextUserTaskList, node -> new ActivityNode().setId(node.getId())
|
||||||
.setName(node.getName()).setNodeType(BpmSimpleModelNodeTypeEnum.APPROVE_NODE.getType())
|
.setName(node.getName()).setNodeType(BpmSimpleModelNodeTypeEnum.APPROVE_NODE.getType())
|
||||||
|
|||||||
Reference in New Issue
Block a user