feat: [BPM 工作流] Simple 模型 - 包容节点

This commit is contained in:
jason
2025-05-31 08:33:34 +08:00
parent a2832f1546
commit 1c2b247cf4
4 changed files with 313 additions and 4 deletions

View File

@@ -737,3 +737,25 @@ const getOpName = (opCode: string): string | undefined => {
);
return opName?.label;
};
/** 获取条件节点默认的名称 */
export const getDefaultConditionNodeName = (
index: number,
defaultFlow: boolean | undefined,
): string => {
if (defaultFlow) {
return '其它情况';
}
return `条件${index + 1}`;
};
/** 获取包容分支条件节点默认的名称 */
export const getDefaultInclusiveConditionNodeName = (
index: number,
defaultFlow: boolean | undefined,
): string => {
if (defaultFlow) {
return '其它情况';
}
return `包容条件${index + 1}`;
};