diff --git a/src/views/flow/admin/Routers.vue b/src/views/flow/admin/Routers.vue index 396caed..f861cec 100644 --- a/src/views/flow/admin/Routers.vue +++ b/src/views/flow/admin/Routers.vue @@ -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}` : "手工"), diff --git a/src/views/flow/admin/def-editor/components/ConditionDrawer.vue b/src/views/flow/admin/def-editor/components/ConditionDrawer.vue index bdf7364..1beea2d 100644 --- a/src/views/flow/admin/def-editor/components/ConditionDrawer.vue +++ b/src/views/flow/admin/def-editor/components/ConditionDrawer.vue @@ -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 {
判断逻辑由业务方实现:引擎运行到该节点时同步调用判断接口,按返回出口名走对应分支
+
+ 仅当判断依赖流程到达时点的实时业务数据时使用;简单条件请用"表达式"(apply 时 formData + 自带判断数据)。判断端点与登记由 + yh-flow-callback-spring-boot-starter(流程中心接入件)自动完成,见《子应用接入流程中心规范》§6.6。 +
diff --git a/src/views/flow/admin/def-editor/model.ts b/src/views/flow/admin/def-editor/model.ts index d92cded..8646fce 100644 --- a/src/views/flow/admin/def-editor/model.ts +++ b/src/views/flow/admin/def-editor/model.ts @@ -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()]],