bpmax-cli 0.2.1-beta.1 → 0.2.1-beta.10
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/README.md +28 -1
- package/dist/bin.js +1367 -255
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/skills/bpmax-ai-taskbook/SKILL.md +5 -1
- package/skills/bpmax-approval-matrix/SKILL.md +4 -1
- package/skills/bpmax-blueprint-doc-workflow/SKILL.md +87 -0
- package/skills/bpmax-blueprint-doc-workflow/agents/openai.yaml +4 -0
- package/skills/bpmax-blueprint-doc-workflow/references/blueprint-structure.md +60 -0
- package/skills/bpmax-blueprint-doc-workflow/references/per-flow-required-structure.md +98 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-forbidden-term.xml +12 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-mermaid-codeblock.xml +12 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-boundary.xml +10 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-whiteboard.xml +10 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-pass.xml +55 -0
- package/skills/bpmax-blueprint-doc-workflow/scripts/lint_blueprint_doc.py +257 -0
- package/skills/bpmax-dataset-field-template-editor/SKILL.md +6 -3
- package/skills/bpmax-dataset-template-editor/SKILL.md +12 -2
- package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +25 -1
- package/skills/bpmax-e2e-flow-test-operator/SKILL.md +13 -0
- package/skills/bpmax-e2e-flow-test-operator/references/ai-test-suite.md +25 -3
- package/skills/bpmax-flow-template-editor/SKILL.md +67 -5
- package/skills/bpmax-form-template-editor/SKILL.md +47 -0
package/package.json
CHANGED
|
@@ -54,6 +54,7 @@ Taskbook lint is implemented in the TypeScript CLI core. Do not add or call Pyth
|
|
|
54
54
|
When a requirement touches an end-to-end BPMAX configuration, the taskbook must explicitly include or intentionally skip these surfaces:
|
|
55
55
|
|
|
56
56
|
- flow-template: `bpmax-flow-template-editor`, `flow:<flow_type>` or `new-flow:<name>`, typed `config flow-template export/lint/build/submit/verify`, plus `project_after_create_path`, code-mode `message_template`, `matrix_owner`, publish/readback behavior.
|
|
57
|
+
- flow-app migration context: tasks that create or migrate a flow app must include `bpmax-cli config flow-app context --workspace <workspace> --flow <flow> --evidence-out ... --format json`, require `target_context.evidence_status=verified`, and carry `flow_type`、`flow_template_id`、`form_template_id`、`form_template_draft_id`、`workspace_readback_hash` into downstream tasks instead of asking agents to infer them.
|
|
57
58
|
- form-template: `bpmax-form-template-editor`, `form-template:<id>`, typed `config form-template export/lint/build/submit/verify`, plus field schema, `raw.value`, `layout`, `sub_form`, and `form-template inspect`.
|
|
58
59
|
- list-template: `bpmax-list-template-editor`, `list-template:<id>`, typed `config list-template lint/build/submit/verify`, plus operation column, view/detail action, guarded delete action, icon, query safety, and browser list-page proof.
|
|
59
60
|
- filter-template: `bpmax-filter-template-editor`, `filter-template:<id>`, typed `config filter-template lint/build/submit/verify`, plus filter fields and sample hit proof.
|
|
@@ -157,7 +158,10 @@ Every AI task row must include:
|
|
|
157
158
|
- `subagent_mode`: one of `none`, `readonly`, `draft-only`, or `exclusive-write`.
|
|
158
159
|
- `dependencies`: upstream task IDs required before execution.
|
|
159
160
|
- `evidence`: expected proof such as readback hash, browser screenshot, test report, or lint result.
|
|
160
|
-
- For configuration write tasks, `evidence` or `notes` must include `bpmax-cli config adapters --format json`, the matching typed CLI lint/build/submit/verify commands, and the domain-specific constraints from the relevant skill.
|
|
161
|
+
- For configuration write tasks, `evidence` or `notes` must include `bpmax-cli config adapters --format json`, the matching typed CLI lint/build/submit/verify/readback commands, and the domain-specific constraints from the relevant skill.
|
|
162
|
+
- Migration tasks that create or update multiple config objects must specify whether they will use `bpmax-cli config batch submit --manifest ...` and `bpmax-cli config batch readback --manifest ...`; if not, the task must explain why batch evidence is intentionally skipped.
|
|
163
|
+
- Tasks that depend on IDs returned by direct typed create/submit must consume the standard top-level `id` / `key` / `readback_hint` response fields instead of asking subagents to parse domain-specific response bodies.
|
|
164
|
+
- Batch `response_out` files are row envelopes: consume `ok` / `domain` / `id` / `action` at the top level, then read created IDs and hints from `response.id` / `response.key` / `response.readback_hint`; if a row is dry-run, copy `response.required_confirm` into the manifest `confirm` before retrying.
|
|
161
165
|
|
|
162
166
|
## Object Lock Rules
|
|
163
167
|
|
|
@@ -46,9 +46,12 @@ bpmax-cli taskbook lint --source .codex/tmp/TASKBOOK.md
|
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
48
|
bpmax-cli config flow-app create --workspace <workspace> --form-work <matrix-form-work> --flow-work <matrix-flow-work> --name "<matrix name>"
|
|
49
|
-
bpmax-cli config flow-app create --workspace <workspace> --form-work <matrix-form-work> --flow-work <matrix-flow-work> --name "<matrix name>" --confirm "create flow-app <matrix name> in <workspace>"
|
|
49
|
+
bpmax-cli config flow-app create --workspace <workspace> --form-work <matrix-form-work> --flow-work <matrix-flow-work> --name "<matrix name>" --confirm "create flow-app <matrix name> in <workspace>" --evidence-out .codex/tmp/matrix-target-context.csv --response-out .codex/tmp/matrix-flow-app-create.response.json
|
|
50
|
+
bpmax-cli config flow-app context --workspace <workspace> --flow <matrix_flow_type> --evidence-out .codex/tmp/matrix-target-context.csv --format json
|
|
50
51
|
```
|
|
51
52
|
|
|
53
|
+
`flow-app create` 确认执行必须同时保留 `--response-out` 和 `--evidence-out`。`config flow-app context` 的 `target_context.evidence_status` 必须是 `verified`,且 `missing_context` 必须为空,才允许进入规则记录 seed、主流程 `matrix_owner` 接入或导航配置。该 evidence 是矩阵应用的 apply-ready 上下文,必须记录 `flow_type`、`flow_template_id`、`form_template_id`、`form_template_draft_id`、`workspace_key` 和 `workspace_readback_hash`。
|
|
54
|
+
|
|
52
55
|
3. Matrix rule records:
|
|
53
56
|
|
|
54
57
|
```bash
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bpmax-blueprint-doc-workflow
|
|
3
|
+
description: 用于生成、更新、审查和 lint BPMAX 蓝图方案飞书文档。只要用户要求“生成 BPMAX 蓝图方案”“创建 BPMAX 蓝图飞书文档”“检查蓝图文档是否完备”“每个流程独立完整”“流程图必须用飞书画板承载”“不要用 Mermaid 代码块”等场景,就使用本 skill 编排 lark-doc、lark-whiteboard、BPMAX 相关只读调研和结构 lint,确保输出是强结构、可实施、可校验的 Feishu Docx 蓝图文档。
|
|
4
|
+
metadata:
|
|
5
|
+
requires:
|
|
6
|
+
bins: ["lark-cli", "python3"]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# BPMAX Blueprint Doc Workflow
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
Use this skill to produce BPMAX blueprint方案 documents as Feishu Docx artifacts with strict structure and lint gates. It is narrower than `bpmax-implementation-plan-workflow`: this skill focuses on blueprint document generation and quality gates, not default task plans, Feishu Base, or Gantt views.
|
|
14
|
+
|
|
15
|
+
## Required Companion Skills
|
|
16
|
+
|
|
17
|
+
Use these skills as needed; this skill orchestrates them and does not replace them.
|
|
18
|
+
|
|
19
|
+
- `bpmax-memory-protocol`: read project/domain memory before non-trivial BPMAX blueprint work and store important decisions afterward.
|
|
20
|
+
- `lark-doc`: create, fetch, update, and verify Feishu Docx documents. Always use `--api-version v2`.
|
|
21
|
+
- `lark-whiteboard`: inspect or update existing Feishu whiteboards when a diagram must be edited after creation.
|
|
22
|
+
- BPMAX repo/API skills: inspect existing flows, forms, data sets, lists, details, permissions, navigation, and integrations before writing implementation claims.
|
|
23
|
+
|
|
24
|
+
## Workflow
|
|
25
|
+
|
|
26
|
+
1. **Ground the inputs**
|
|
27
|
+
- Read all user-provided docs, screenshots, Feishu links, local files, and BPMAX config/API sources.
|
|
28
|
+
- Search Mem0 for prior project terms, naming decisions, flow ownership, and forbidden wording.
|
|
29
|
+
- Extract business scope, target users, main lifecycle, related flows, public support objects, AI/agent boundaries, and acceptance criteria.
|
|
30
|
+
|
|
31
|
+
2. **Draft the blueprint**
|
|
32
|
+
- Use `references/blueprint-structure.md` for the document skeleton.
|
|
33
|
+
- Treat flows as the primary structure. Data sets, forms, lists, details, dashboards, automations, and permissions must attach to an owning flow unless they are genuinely shared support objects.
|
|
34
|
+
- Use `references/per-flow-required-structure.md` for every flow section. Each flow must be independently complete.
|
|
35
|
+
- Put each flow diagram in a Feishu whiteboard block such as `<whiteboard type="mermaid">...</whiteboard>`. Do not use Mermaid code blocks in final docs.
|
|
36
|
+
|
|
37
|
+
3. **Create or update Feishu Docx**
|
|
38
|
+
- For new docs, use `lark-cli docs +create --api-version v2`.
|
|
39
|
+
- For updates, fetch the relevant outline/section first and use precise block operations where possible.
|
|
40
|
+
- Preserve existing resource blocks unless the user explicitly asks to replace them.
|
|
41
|
+
|
|
42
|
+
4. **Lint before claiming completion**
|
|
43
|
+
- Fetch the produced/updated doc:
|
|
44
|
+
```bash
|
|
45
|
+
lark-cli docs +fetch --api-version v2 --doc <DOC> --detail with-ids --format json > /tmp/blueprint-fetch.json
|
|
46
|
+
```
|
|
47
|
+
- Run:
|
|
48
|
+
```bash
|
|
49
|
+
SKILL_DIR="${BPMAX_BLUEPRINT_DOC_WORKFLOW_SKILL_DIR:-$HOME/.codex/skills/bpmax-blueprint-doc-workflow}"
|
|
50
|
+
python3 "$SKILL_DIR/scripts/lint_blueprint_doc.py" \
|
|
51
|
+
--source /tmp/blueprint-fetch.json
|
|
52
|
+
```
|
|
53
|
+
If the skill was installed under another agent root, set `BPMAX_BLUEPRINT_DOC_WORKFLOW_SKILL_DIR` to that skill directory before running the lint.
|
|
54
|
+
- If project-specific wording matters, add `--require-term` and `--forbid-term`.
|
|
55
|
+
- Fix every lint error and rerun until it passes, unless the user explicitly accepts a known exception.
|
|
56
|
+
|
|
57
|
+
5. **Final response**
|
|
58
|
+
- Return the Feishu document title and URL.
|
|
59
|
+
- Summarize the flows covered, whiteboard diagram count, and lint result.
|
|
60
|
+
- State any business assumptions or unresolved confirmation items.
|
|
61
|
+
- Mention Feishu/lark auth or version blockers if they affected delivery.
|
|
62
|
+
|
|
63
|
+
## Hard Rules
|
|
64
|
+
|
|
65
|
+
- Final blueprint deliverables are Feishu Docx documents, not local Markdown, unless the user explicitly asks for local-only output.
|
|
66
|
+
- Every business flow must have its own complete section. Do not make a flow rely on another section for fields, forms, writeback, AI behavior, or implementation boundary.
|
|
67
|
+
- Every flow must have a process diagram, and the diagram must be a Feishu whiteboard/resource block. Mermaid code blocks are draft-only and fail lint.
|
|
68
|
+
- A start node must name the creation action/form.
|
|
69
|
+
- Flow nodes must represent business-meaningful action/state changes that require a human or AI Agent to handle. A valid node should make clear who/what handles it and what business state changes after it.
|
|
70
|
+
- Apply Occam's razor to workflow design: keep diagrams and node tables as simple as possible, avoid redundant steps, and do not make pure system automation, notifications, data sync, field copying, or background script execution a standalone flow node. Put these in the automation/writeback column of the relevant business node instead.
|
|
71
|
+
- Main-flow diagrams must not expand child-flow internals. Represent each child flow as a special-styled node inside the parent flow, such as a `subroutine` node or a node with a distinct class/style, and document the child-flow details only in that child flow's own complete section.
|
|
72
|
+
- Form templates must only contain fields that users or AI Agents need to view, fill, confirm, or edit in that form. Do not put system-written state fields, read-only project references, auto-created child-flow links, or internal relationship fields in business forms; document them in the flow data set, automation, and writeback sections instead.
|
|
73
|
+
- AI/agent content must include trigger, input, output, human confirmation, and fallback. AI must not be described as final approver for key business decisions.
|
|
74
|
+
- Do not park business-specific data sets/forms/lists globally. Shared support sections are for genuinely shared objects only.
|
|
75
|
+
- Default implementation boundary labels are exactly:
|
|
76
|
+
- `BPMAX 配置可实现`
|
|
77
|
+
- `配置 + 脚本/API/现有插件`
|
|
78
|
+
- `需定制插件/外部服务`
|
|
79
|
+
|
|
80
|
+
## References
|
|
81
|
+
|
|
82
|
+
- Read `references/blueprint-structure.md` before drafting a new blueprint or restructuring a document.
|
|
83
|
+
- Read `references/per-flow-required-structure.md` before writing or lint-fixing flow sections.
|
|
84
|
+
|
|
85
|
+
## Lint Script
|
|
86
|
+
|
|
87
|
+
`scripts/lint_blueprint_doc.py` checks a fetched Feishu Docx JSON or XML file for blueprint structure, per-flow completeness, whiteboard diagrams, forbidden Mermaid code blocks, implementation boundary labels, AI confirmation/fallback language, and project-specific required/forbidden terms.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "BPMAX Blueprint Doc Workflow"
|
|
3
|
+
short_description: "Generate linted BPMAX blueprint Feishu docs"
|
|
4
|
+
default_prompt: "Use $bpmax-blueprint-doc-workflow to generate a BPMAX blueprint Feishu document with per-flow whiteboard diagrams and lint checks."
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# BPMAX Blueprint Structure
|
|
2
|
+
|
|
3
|
+
Use this structure for BPMAX blueprint方案 documents unless the user provides a stricter structure.
|
|
4
|
+
|
|
5
|
+
## Document-Level Structure
|
|
6
|
+
|
|
7
|
+
1. **蓝图定位与目标**
|
|
8
|
+
- Background, business objective, one-phase/two-phase scope, audience, success criteria.
|
|
9
|
+
|
|
10
|
+
2. **BPMAX 实施总规则**
|
|
11
|
+
- Flow-first rule.
|
|
12
|
+
- Form/data/list/detail/dashboard ownership.
|
|
13
|
+
- AI/agent confirmation boundary.
|
|
14
|
+
- Diagram rule: process diagrams must be Feishu whiteboards.
|
|
15
|
+
|
|
16
|
+
3. **总体业务架构**
|
|
17
|
+
- Main lifecycle.
|
|
18
|
+
- Related flows.
|
|
19
|
+
- Public support objects.
|
|
20
|
+
- BPMAX configuration object map.
|
|
21
|
+
|
|
22
|
+
4. **公共支撑配置**
|
|
23
|
+
- Only genuinely shared objects belong here.
|
|
24
|
+
- Examples: organization dictionary, BPMAX user model extensions, shared tool library, automation logs, role/navigation rules.
|
|
25
|
+
- Do not make public data sets independent business flows when the data belongs to a process.
|
|
26
|
+
|
|
27
|
+
5. **业务流程章节**
|
|
28
|
+
- Each business flow gets a full independent chapter.
|
|
29
|
+
- Use `per-flow-required-structure.md`.
|
|
30
|
+
- The first flow should be the end-to-end main lifecycle when the business has one.
|
|
31
|
+
|
|
32
|
+
6. **权限、导航、集成与自动化**
|
|
33
|
+
- Cross-flow permission rules, menus, Feishu/OpenClaw/API integration, automation logging, retry/fallback.
|
|
34
|
+
- Flow-specific automation remains in the owning flow section.
|
|
35
|
+
|
|
36
|
+
7. **BPMAX 可配置能力与需定制能力边界**
|
|
37
|
+
- Use the exact three labels:
|
|
38
|
+
- `BPMAX 配置可实现`
|
|
39
|
+
- `配置 + 脚本/API/现有插件`
|
|
40
|
+
- `需定制插件/外部服务`
|
|
41
|
+
|
|
42
|
+
8. **一期验收路径、风险与待确认事项**
|
|
43
|
+
- End-to-end acceptance path.
|
|
44
|
+
- Acceptance metrics.
|
|
45
|
+
- Risks and unresolved business decisions.
|
|
46
|
+
|
|
47
|
+
## Feishu Document Requirements
|
|
48
|
+
|
|
49
|
+
- Use Docx XML through `lark-cli docs ... --api-version v2`.
|
|
50
|
+
- Use tables for field dictionaries, node configuration, writeback rules, and implementation boundaries.
|
|
51
|
+
- Use `<whiteboard type="mermaid">...</whiteboard>` or another Feishu whiteboard resource block for process diagrams.
|
|
52
|
+
- Avoid code blocks for diagrams in final output.
|
|
53
|
+
- When updating existing docs, prefer block-level precise updates and preserve existing resource tokens.
|
|
54
|
+
|
|
55
|
+
## Blueprint Tone
|
|
56
|
+
|
|
57
|
+
- Write for implementers and reviewers.
|
|
58
|
+
- Be specific enough for BPMAX configuration without inventing unconfirmed personal names or private data.
|
|
59
|
+
- Use role names, flow names, field types, triggers, writeback behavior, and validation rules.
|
|
60
|
+
- Label uncertain items as “待业务确认” only in a dedicated “待确认事项” section, not inside required flow structure.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Per-Flow Required Structure
|
|
2
|
+
|
|
3
|
+
Every BPMAX blueprint flow chapter must be independently complete. A reader should be able to configure that flow without hunting through other flow chapters for required fields, forms, writeback, or AI rules.
|
|
4
|
+
|
|
5
|
+
## Required Sections
|
|
6
|
+
|
|
7
|
+
1. **业务目标与适用场景**
|
|
8
|
+
- Business problem solved.
|
|
9
|
+
- Entry scenarios.
|
|
10
|
+
- Primary roles.
|
|
11
|
+
- Owning BPMAX flow.
|
|
12
|
+
|
|
13
|
+
2. **流程模板**
|
|
14
|
+
- Process diagram in a Feishu whiteboard.
|
|
15
|
+
- Start node and creation action/form.
|
|
16
|
+
- Main business states and action nodes only.
|
|
17
|
+
- Each node must be a business-meaningful action/state change handled by a human or AI Agent.
|
|
18
|
+
- Apply Occam's razor: keep the workflow minimal and avoid duplicate or low-value intermediate nodes.
|
|
19
|
+
- Do not model pure system automation as separate nodes; place notifications, child-flow creation, data sync, field copy, and background scripts in automation/writeback notes on the related business node.
|
|
20
|
+
- In a main/end-to-end flow, do not expand the internal steps of child flows. Put each child flow in the relevant main-flow node and use a special visual style to show it is a child flow.
|
|
21
|
+
- Branches and returns in natural business language.
|
|
22
|
+
- Related/external flow links when needed.
|
|
23
|
+
|
|
24
|
+
3. **开始节点与创建表单**
|
|
25
|
+
- Start node name.
|
|
26
|
+
- Creation form name.
|
|
27
|
+
- Creator role.
|
|
28
|
+
- Initial required fields.
|
|
29
|
+
- Draft and submit behavior.
|
|
30
|
+
|
|
31
|
+
4. **环节配置说明**
|
|
32
|
+
- Use a table with step/state, responsible role, node form, editable fields, transition, automation, completion/writeback.
|
|
33
|
+
- Current-flow nodes must be business states or business actions, not configuration object names.
|
|
34
|
+
- The responsible role must be a human role or AI Agent for every node; system-only work belongs in the automation column.
|
|
35
|
+
|
|
36
|
+
5. **表单模板**
|
|
37
|
+
- Use a field table with: field, type, required, source, editable role, validation rule.
|
|
38
|
+
- Include attachments, confirmations, signatures, and conditional visibility where relevant.
|
|
39
|
+
- Only include fields that are meaningful for the form user or AI Agent to view, fill, confirm, or edit.
|
|
40
|
+
- Do not include system-only fields in form templates. Examples that belong in data set/writeback notes instead of forms: `当前阶段` with source `系统写入`, `关联选题子流程` project references created automatically, `关联筹备子流程` project references created automatically, read-only child-flow links, internal relationship IDs, and other fields whose editable role is only `系统`.
|
|
41
|
+
|
|
42
|
+
6. **流程数据集**
|
|
43
|
+
- Data set purpose.
|
|
44
|
+
- Key fields.
|
|
45
|
+
- Status fields.
|
|
46
|
+
- Relationship fields.
|
|
47
|
+
- Writeback targets.
|
|
48
|
+
- Read-only vs editable rules.
|
|
49
|
+
- System-written state fields, child-flow references, parent-flow references, internal relationship IDs, and other read-only linkage fields should be described here, not in the form template section.
|
|
50
|
+
|
|
51
|
+
7. **列表/筛选/详情/看板入口**
|
|
52
|
+
- Target users.
|
|
53
|
+
- List columns or cards.
|
|
54
|
+
- Filters.
|
|
55
|
+
- Detail page sections.
|
|
56
|
+
- Dashboard or operational view if applicable.
|
|
57
|
+
- Action buttons.
|
|
58
|
+
|
|
59
|
+
8. **自动化与 AI/agent**
|
|
60
|
+
- Trigger point.
|
|
61
|
+
- Input data.
|
|
62
|
+
- Output draft/suggestion/card/writeback.
|
|
63
|
+
- Human confirmation role.
|
|
64
|
+
- Exception fallback.
|
|
65
|
+
- Audit log requirements.
|
|
66
|
+
|
|
67
|
+
9. **办结口径与下游联动**
|
|
68
|
+
- Completion criteria.
|
|
69
|
+
- Final status.
|
|
70
|
+
- Written history/status fields.
|
|
71
|
+
- Downstream flows or views affected.
|
|
72
|
+
|
|
73
|
+
10. **BPMAX 实现边界**
|
|
74
|
+
- Use exactly these labels:
|
|
75
|
+
- `BPMAX 配置可实现`
|
|
76
|
+
- `配置 + 脚本/API/现有插件`
|
|
77
|
+
- `需定制插件/外部服务`
|
|
78
|
+
|
|
79
|
+
## Diagram Requirements
|
|
80
|
+
|
|
81
|
+
- The final diagram must be a Feishu whiteboard block.
|
|
82
|
+
- Mermaid code block syntax such as `<pre lang="mermaid">` is not allowed in final docs.
|
|
83
|
+
- Prefer `flowchart TD`.
|
|
84
|
+
- Use quoted labels when labels contain punctuation.
|
|
85
|
+
- Avoid Mermaid decision diamonds for business flow blueprints; represent branches with normal state nodes and edge labels.
|
|
86
|
+
- Every flow diagram must include a start node naming the creation action or creation form.
|
|
87
|
+
- Do not draw standalone nodes for pure automation, such as "send notification", "copy field", "sync data set", "create child flow", "write log", or "call API"; attach them as edge labels or automation notes to the nearest human/AI business node.
|
|
88
|
+
- In main-flow diagrams, draw child flows with a special style instead of their internal nodes. Prefer Mermaid subroutine syntax like `B[["改善筹备子流程"]]` or a distinct class such as `class B childFlow`, then define `classDef childFlow fill:#eef6ff,stroke:#2f6fed,stroke-width:2px,stroke-dasharray: 6 3;`.
|
|
89
|
+
|
|
90
|
+
## Anti-Patterns
|
|
91
|
+
|
|
92
|
+
- “字段同主流程” without restating the fields needed by this flow.
|
|
93
|
+
- “数据集见公共配置” when the data is flow-owned.
|
|
94
|
+
- “AI 自动确认/自动通过/自动结案/自动认证/自动对账” for key business decisions.
|
|
95
|
+
- A workflow section without whiteboard.
|
|
96
|
+
- A diagram that uses configuration objects as main business states.
|
|
97
|
+
- A diagram that turns background automation into separate business nodes.
|
|
98
|
+
- A workflow with redundant confirmation, transfer, or waiting nodes that do not change business state or require human/AI Agent handling.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<title>禁止词示例</title>
|
|
2
|
+
<h1>蓝图定位与目标</h1>
|
|
3
|
+
<h1>BPMAX 实施总规则</h1>
|
|
4
|
+
<h1>总体业务架构</h1>
|
|
5
|
+
<h1>公共支撑配置</h1>
|
|
6
|
+
<h1>流程一:主流程</h1>
|
|
7
|
+
<whiteboard type="mermaid">flowchart TD
|
|
8
|
+
A[开始节点:创建申请表单] --> B[处理]</whiteboard>
|
|
9
|
+
<p>业务目标与适用场景。流程模板。开始节点。创建表单。环节配置。表单模板。流程数据集。列表、筛选、详情、看板、入口。自动化 AI 触发 输入 输出 人工确认 异常兜底。办结口径与下游联动。BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。TODO</p>
|
|
10
|
+
<h1>实现边界</h1>
|
|
11
|
+
<p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
|
|
12
|
+
<h1>验收、风险、待确认事项</h1>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<title>代码块流程图示例</title>
|
|
2
|
+
<h1>蓝图定位与目标</h1>
|
|
3
|
+
<h1>BPMAX 实施总规则</h1>
|
|
4
|
+
<h1>总体业务架构</h1>
|
|
5
|
+
<h1>公共支撑配置</h1>
|
|
6
|
+
<h1>流程一:主流程</h1>
|
|
7
|
+
<pre lang="mermaid"><code>flowchart TD
|
|
8
|
+
A --> B</code></pre>
|
|
9
|
+
<p>业务目标与适用场景。流程模板。开始节点。创建表单。环节配置。表单模板。流程数据集。列表、筛选、详情、看板、入口。自动化 AI 触发 输入 输出 人工确认 异常兜底。办结口径与下游联动。BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
|
|
10
|
+
<h1>实现边界</h1>
|
|
11
|
+
<p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
|
|
12
|
+
<h1>验收、风险、待确认事项</h1>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<title>缺实现边界示例</title>
|
|
2
|
+
<h1>蓝图定位与目标</h1>
|
|
3
|
+
<h1>BPMAX 实施总规则</h1>
|
|
4
|
+
<h1>总体业务架构</h1>
|
|
5
|
+
<h1>公共支撑配置</h1>
|
|
6
|
+
<h1>流程一:主流程</h1>
|
|
7
|
+
<whiteboard type="mermaid">flowchart TD
|
|
8
|
+
A[开始节点:创建申请表单] --> B[处理]</whiteboard>
|
|
9
|
+
<p>业务目标与适用场景。流程模板。开始节点。创建表单。环节配置。表单模板。流程数据集。列表、筛选、详情、看板、入口。自动化 AI 触发 输入 输出 人工确认 异常兜底。办结口径与下游联动。</p>
|
|
10
|
+
<h1>验收、风险、待确认事项</h1>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<title>缺流程图示例</title>
|
|
2
|
+
<h1>蓝图定位与目标</h1>
|
|
3
|
+
<h1>BPMAX 实施总规则</h1>
|
|
4
|
+
<h1>总体业务架构</h1>
|
|
5
|
+
<h1>公共支撑配置</h1>
|
|
6
|
+
<h1>流程一:主流程</h1>
|
|
7
|
+
<p>业务目标与适用场景。流程模板。开始节点。创建表单。环节配置。表单模板。流程数据集。列表、筛选、详情、看板、入口。自动化 AI 触发 输入 输出 人工确认 异常兜底。办结口径与下游联动。BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
|
|
8
|
+
<h1>实现边界</h1>
|
|
9
|
+
<p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
|
|
10
|
+
<h1>验收、风险、待确认事项</h1>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<title>示例 BPMAX 蓝图方案</title>
|
|
2
|
+
<h1>1. 蓝图定位与目标</h1>
|
|
3
|
+
<p>示例目标。</p>
|
|
4
|
+
<h1>2. BPMAX 实施总规则</h1>
|
|
5
|
+
<p>流程优先,流程图使用飞书画板。</p>
|
|
6
|
+
<h1>3. 总体业务架构</h1>
|
|
7
|
+
<p>主流程与联动流程。</p>
|
|
8
|
+
<h1>4. 公共支撑配置</h1>
|
|
9
|
+
<p>共享组织、用户模型和自动化日志。</p>
|
|
10
|
+
<h1>5. 流程一:主流程</h1>
|
|
11
|
+
<h2>5.1 业务目标与适用场景</h2>
|
|
12
|
+
<p>业务目标与适用场景。</p>
|
|
13
|
+
<h2>5.2 流程模板</h2>
|
|
14
|
+
<whiteboard type="mermaid">flowchart TD
|
|
15
|
+
A[开始节点:创建申请表单] --> B[处理]</whiteboard>
|
|
16
|
+
<p>开始节点:创建申请表单。创建表单由申请人填写。</p>
|
|
17
|
+
<h2>5.3 环节配置说明</h2>
|
|
18
|
+
<table><tr><th>环节</th><th>角色</th></tr><tr><td>处理</td><td>负责人</td></tr></table>
|
|
19
|
+
<h2>5.4 表单模板</h2>
|
|
20
|
+
<table><tr><th>字段</th><th>类型</th></tr><tr><td>名称</td><td>文本</td></tr></table>
|
|
21
|
+
<h2>5.5 流程数据集</h2>
|
|
22
|
+
<p>流程数据集包含状态、关联字段和写回规则。</p>
|
|
23
|
+
<h2>5.6 列表/筛选/详情/看板入口</h2>
|
|
24
|
+
<p>列表、筛选、详情、看板、入口。</p>
|
|
25
|
+
<h2>5.7 自动化与 AI/agent</h2>
|
|
26
|
+
<p>AI 触发、输入、输出、人工确认、异常兜底。</p>
|
|
27
|
+
<h2>5.8 办结口径与下游联动</h2>
|
|
28
|
+
<p>办结后归档并下游联动。</p>
|
|
29
|
+
<h2>5.9 BPMAX 实现边界</h2>
|
|
30
|
+
<p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
|
|
31
|
+
<h1>6. 流程二:辅助流程</h1>
|
|
32
|
+
<h2>6.1 业务目标与适用场景</h2>
|
|
33
|
+
<p>业务目标与适用场景。</p>
|
|
34
|
+
<h2>6.2 流程模板</h2>
|
|
35
|
+
<whiteboard type="mermaid">flowchart TD
|
|
36
|
+
A[开始节点:创建辅助表单] --> B[办结]</whiteboard>
|
|
37
|
+
<p>开始节点:创建辅助表单。创建表单由管理员填写。</p>
|
|
38
|
+
<h2>6.3 环节配置说明</h2>
|
|
39
|
+
<table><tr><th>环节</th><th>角色</th></tr><tr><td>办结</td><td>管理员</td></tr></table>
|
|
40
|
+
<h2>6.4 表单模板</h2>
|
|
41
|
+
<table><tr><th>字段</th><th>类型</th></tr><tr><td>名称</td><td>文本</td></tr></table>
|
|
42
|
+
<h2>6.5 流程数据集</h2>
|
|
43
|
+
<p>流程数据集包含状态和写回规则。</p>
|
|
44
|
+
<h2>6.6 列表/筛选/详情/看板入口</h2>
|
|
45
|
+
<p>列表、筛选、详情、看板、入口。</p>
|
|
46
|
+
<h2>6.7 自动化与 AI/agent</h2>
|
|
47
|
+
<p>AI 触发、输入、输出、人工确认、异常兜底。</p>
|
|
48
|
+
<h2>6.8 办结口径与下游联动</h2>
|
|
49
|
+
<p>办结口径和下游联动。</p>
|
|
50
|
+
<h2>6.9 BPMAX 实现边界</h2>
|
|
51
|
+
<p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
|
|
52
|
+
<h1>7. BPMAX 可配置能力与需定制能力边界</h1>
|
|
53
|
+
<p>BPMAX 配置可实现;配置 + 脚本/API/现有插件;需定制插件/外部服务。</p>
|
|
54
|
+
<h1>8. 一期验收路径、风险与待确认事项</h1>
|
|
55
|
+
<p>验收、风险、待确认。</p>
|