bpmax-cli 0.2.1-beta.15 → 0.2.1-beta.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +6 -17
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/skills/bpmax-flow-template-editor/SKILL.md +2 -2
package/package.json
CHANGED
|
@@ -171,7 +171,7 @@ bpmax-cli config readback form-template --id <form_template_id> --format json
|
|
|
171
171
|
- `condational_nodes[].result` 必须是非空目标数组,每一项都必须是真实节点 `id`、终点如 `-1` 或 `[source]`;不能把不存在的节点、二级 `[condition]` 引用或 `anyNode` 放进 result。`anyNode` 只能用于按钮目标触发前端选择节点弹窗,后端条件脚本命中 result 时不会打开选择器。
|
|
172
172
|
- 驳回增强 / 自由打回插件必须按 `plugin_rejection_control` 配置,不得把插件需求简化成 `approve_fail = "anyNode"`:
|
|
173
173
|
- 插件字段落在节点上:`node.plugin_rejection_control`。
|
|
174
|
-
- 开启插件必须写 `enabled: true`、非空 `button_text
|
|
174
|
+
- 开启插件必须写 `enabled: true`、非空 `button_text`,且至少存在一个可用驳回方式;插件按钮展示与 `approve_count_required` 解耦,不得为了启用插件强行设置审批人数。
|
|
175
175
|
- “自由打回到已通过历史环节”对应 `reject_to_specific_step: true`;运行态由插件弹窗选择真实历史环节,再提交真实 `to_flow_step_id`。
|
|
176
176
|
- 可选驳回方式包括 `reject_to_pre`、`reject_to_owner`、`reject_to_specific_step`、`reject_to_end`;启用插件时至少保留一个插件驳回方式,或保留原生 `approve_fail` / `approve_fail_actions` 作为插件弹窗里的基础驳回方式。
|
|
177
177
|
- `reject_to_owner: true` 依赖流程级 `data.meta.allow_jump_start = true`;否则运行态不会提供“驳回申请人修改”选项。若它是唯一可用驳回方式,lint 必须阻断;若同时存在 `reject_to_pre`、`reject_to_specific_step`、`reject_to_end` 或原生驳回目标,保留配置但不要误判整条插件不可用。
|
|
@@ -727,7 +727,7 @@ bpmax-cli config readback form-template --id <form_template_id> --format json
|
|
|
727
727
|
- 阶段数组与节点 `period` 引用一致
|
|
728
728
|
- `approve_to_step` / `approve_fail` 仍指向存在的节点
|
|
729
729
|
- `approve_actions` / `approve_fail_actions` 每一项都是 `按钮文案|目标`,不能是裸节点 id;目标必须是节点 id、终点、`[source]` / `anyNode` 或条件节点引用
|
|
730
|
-
- 如果启用 `plugin_rejection_control
|
|
730
|
+
- 如果启用 `plugin_rejection_control`,确认 `button_text` 非空,至少存在一个可用驳回方式;插件能力与 `approve_count_required` 解耦,自由打回应使用 `reject_to_specific_step: true`,不要把插件需求写成 `approve_fail = "anyNode"`;如果唯一驳回方式是 `reject_to_owner`,还必须开启 `data.meta.allow_jump_start`
|
|
731
731
|
- `condational_nodes.result` 目标节点存在
|
|
732
732
|
- `auto_trigger_flows.flows[].flow` 目标流程合法
|
|
733
733
|
- 已有 `plugin_*`、`hook`、`object_events` 未被误清空
|