feat(condition): 新建条件分支缺省翻转为表达式(EXPRESSION 主路径)——抽屉初值+createCondition 默认;SERVICE 分支补提示文案(仅实时业务数据场景使用,端点与登记由流程中心接入件 starter 代办);来源列注释订正 starter 名

This commit is contained in:
chenxing
2026-10-12 17:13:21 +08:00
parent adcdd1217e
commit 94f263d489
3 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ const columns = [
{ title: "名称", key: "name", width: 160 },
{ title: "服务目录键", key: "serviceKey", width: 110 },
{
// 2026-10-12 SERVICE 收口:reg_app_key 非空=yh-flow-route starter 自注册行(归属应用)
// 2026-10-12 SERVICE 收口:reg_app_key 非空=yh-flow-callback starter 自注册行(归属应用)
title: "来源",
width: 160,
render: (h: any, p: any) => h("span", p.row.regAppKey ? `自注册 · ${p.row.regAppKey}` : "手工"),
@@ -21,7 +21,8 @@ const ctx = inject(EDITOR_CTX)!;
const form = reactive({
name: "",
routerKey: "",
judgeMode: "SERVICE" as JudgeMode,
// 2026-10-12 SERVICE 收口:新建缺省翻转为表达式(主路径);存量归一化见 syncFromNode(勿动)
judgeMode: "EXPRESSION" as JudgeMode,
});
function syncFromNode(): void {
@@ -134,6 +135,11 @@ function onRemove(): void {
<div v-else class="hint">
判断逻辑由业务方实现:引擎运行到该节点时同步调用判断接口,按返回出口名走对应分支
</div>
<div class="hint">
仅当判断依赖流程到达时点的实时业务数据时使用;简单条件请用"表达式"(apply 时 formData
自带判断数据)。判断端点与登记由
<code>yh-flow-callback-spring-boot-starter</code>(流程中心接入件)自动完成,见《子应用接入流程中心规范》§6.6。
</div>
</div>
<div v-else class="fld">
+2 -2
View File
@@ -177,14 +177,14 @@ export function createParallel(): ParallelNode {
return { uid: newUid(), kind: "parallel", branches: [[createApproval()], [createApproval()]] };
}
/** 条件分支:默认 2 分支占位出口名,插入后弹配置抽屉选判断方式(缺省服务) */
/** 条件分支:默认 2 分支占位出口名,插入后弹配置抽屉选判断方式(2026-10-12 收口:缺省表达式) */
export function createCondition(): ConditionNode {
return {
uid: newUid(),
kind: "condition",
name: "条件判断",
routerKey: "",
judgeMode: "SERVICE",
judgeMode: "EXPRESSION",
conditions: ["", ""],
outlets: ["出口一", "出口二"],
branches: [[createApproval()], [createApproval()]],