bpmax-cli 0.1.44 → 0.2.1-beta.2
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 +52 -5
- package/dist/bin.js +12304 -1315
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/scripts/install-skills.mjs +98 -0
- package/skills/bpmax-ai-taskbook/SKILL.md +227 -0
- package/skills/bpmax-ai-taskbook/agents/openai.yaml +3 -0
- package/skills/bpmax-ai-taskbook/references/taskbook-template.md +68 -0
- package/skills/bpmax-api-platform-editor/SKILL.md +321 -0
- package/skills/bpmax-api-platform-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-api-platform-editor/references/api-doc-debug-workflow.md +34 -0
- package/skills/bpmax-api-platform-editor/references/api-proxy-shape.md +41 -0
- package/skills/bpmax-api-platform-editor/references/instance-config-shape.md +41 -0
- package/skills/bpmax-api-platform-editor/references/platform-api-map.md +52 -0
- package/skills/bpmax-api-platform-editor/references/runtime-workflow.md +32 -0
- package/skills/bpmax-api-platform-editor/scripts/api_platform_editor_common.py +1276 -0
- package/skills/bpmax-api-platform-editor/scripts/build_submit_payload.py +64 -0
- package/skills/bpmax-api-platform-editor/scripts/capture_write_contract.py +40 -0
- package/skills/bpmax-api-platform-editor/scripts/export_layer_bundle.py +212 -0
- package/skills/bpmax-api-platform-editor/scripts/record_doc_debug_acceptance.py +62 -0
- package/skills/bpmax-api-platform-editor/scripts/submit_and_verify_layer.py +75 -0
- package/skills/bpmax-api-platform-editor/tests/test_api_platform_editor.py +287 -0
- package/skills/bpmax-approval-matrix/SKILL.md +90 -0
- package/skills/bpmax-auth/SKILL.md +6 -17
- package/skills/bpmax-builder-shared/SKILL.md +44 -0
- package/skills/bpmax-builder-shared/base_url.py +81 -0
- package/skills/bpmax-builder-shared/runtime-script-site-matrix.json +71 -0
- package/skills/bpmax-builder-shared/runtime-script-site-matrix.md +34 -0
- package/skills/bpmax-builder-shared/runtime-script-template-catalog.md +123 -0
- package/skills/bpmax-builder-shared/runtime_script_rules.py +272 -0
- package/skills/bpmax-builder-shared/skill_audit.py +374 -0
- package/skills/bpmax-builder-shared/template_script_hard_rules.py +280 -0
- package/skills/bpmax-builder-shared/tests/test_base_url.py +80 -0
- package/skills/bpmax-builder-shared/tests/test_runtime_script_rules.py +115 -0
- package/skills/bpmax-builder-shared/tests/test_skill_audit.py +231 -0
- package/skills/bpmax-builder-shared/tests/test_template_script_hard_rules.py +281 -0
- package/skills/bpmax-cli/SKILL.md +5 -0
- package/skills/bpmax-config-latest/SKILL.md +71 -0
- package/skills/bpmax-console-template-editor/SKILL.md +536 -0
- package/skills/bpmax-console-template-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-console-template-editor/references/filter-integration.md +60 -0
- package/skills/bpmax-console-template-editor/references/lessons-from-resume-dashboard.md +114 -0
- package/skills/bpmax-console-template-editor/references/local-temp-workflow.md +69 -0
- package/skills/bpmax-console-template-editor/references/module-catalog.md +100 -0
- package/skills/bpmax-console-template-editor/references/runtime-page-shape.md +91 -0
- package/skills/bpmax-console-template-editor/references/template-shape.md +149 -0
- package/skills/bpmax-console-template-editor/scripts/build_submit_payload.py +38 -0
- package/skills/bpmax-console-template-editor/scripts/confirm_console_template.py +33 -0
- package/skills/bpmax-console-template-editor/scripts/console_template_editor_common.py +964 -0
- package/skills/bpmax-console-template-editor/scripts/export_console_template.py +99 -0
- package/skills/bpmax-console-template-editor/scripts/lint_console_template.py +46 -0
- package/skills/bpmax-console-template-editor/scripts/submit_console_template.py +99 -0
- package/skills/bpmax-console-template-editor/tests/test_console_template_editor.py +383 -0
- package/skills/bpmax-dataset-field-template-editor/SKILL.md +606 -0
- package/skills/bpmax-dataset-field-template-editor/references/create-request-gotchas.md +25 -0
- package/skills/bpmax-dataset-field-template-editor/references/field-classify-mapping.md +35 -0
- package/skills/bpmax-dataset-field-template-editor/references/nested-field-patterns.md +24 -0
- package/skills/bpmax-dataset-field-template-editor/references/runtime-verified-field-page-shape.md +61 -0
- package/skills/bpmax-dataset-field-template-editor/references/virtual-field-patterns.md +27 -0
- package/skills/bpmax-dataset-field-template-editor/references/work-file-to-submit-mapping.md +127 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/build_submit_payload.py +67 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/confirm_dataset_field.py +37 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/dataset_field_editor_common.py +784 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/export_dataset_field.py +62 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/init_create_dataset_field.py +104 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/inspect_dataset_field_runtime.py +83 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/lint_dataset_field_semantics.py +35 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/submit_dataset_field.py +95 -0
- package/skills/bpmax-dataset-field-template-editor/tests/test_dataset_field_editor.py +709 -0
- package/skills/bpmax-dataset-field-template-editor/tests/test_init_create_dataset_field.py +59 -0
- package/skills/bpmax-dataset-template-editor/SKILL.md +779 -0
- package/skills/bpmax-dataset-template-editor/references/custom-key-usage-patterns.md +18 -0
- package/skills/bpmax-dataset-template-editor/references/dataset-script-runtime-matrix.md +73 -0
- package/skills/bpmax-dataset-template-editor/references/pre-process-script-authoring-guide.md +186 -0
- package/skills/bpmax-dataset-template-editor/references/pre-process-script-example-catalog.md +106 -0
- package/skills/bpmax-dataset-template-editor/references/runtime-gotchas.md +28 -0
- package/skills/bpmax-dataset-template-editor/references/runtime-verified-dataset-page-shape.md +47 -0
- package/skills/bpmax-dataset-template-editor/references/ui-to-backend-field-map.md +23 -0
- package/skills/bpmax-dataset-template-editor/references/work-file-to-submit-mapping.md +97 -0
- package/skills/bpmax-dataset-template-editor/scripts/basic_table_audit.py +65 -0
- package/skills/bpmax-dataset-template-editor/scripts/build_submit_payload.py +38 -0
- package/skills/bpmax-dataset-template-editor/scripts/dataset_editor_common.py +650 -0
- package/skills/bpmax-dataset-template-editor/scripts/export_dataset.py +155 -0
- package/skills/bpmax-dataset-template-editor/scripts/lint_dataset_template.py +42 -0
- package/skills/bpmax-dataset-template-editor/scripts/resolve_dataset.py +43 -0
- package/skills/bpmax-dataset-template-editor/scripts/scan_custom_key_references.py +27 -0
- package/skills/bpmax-dataset-template-editor/scripts/submit_dataset.py +115 -0
- package/skills/bpmax-dataset-template-editor/scripts/verify_dataset_list.py +52 -0
- package/skills/bpmax-dataset-template-editor/scripts/verify_publish_health.py +39 -0
- package/skills/bpmax-dataset-template-editor/tests/test_dataset_editor.py +373 -0
- package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +217 -0
- package/skills/bpmax-e2e-flow-config-orchestrator/agents/openai.yaml +4 -0
- package/skills/bpmax-e2e-flow-config-orchestrator/references/orchestration-matrix.md +63 -0
- package/skills/bpmax-e2e-flow-test-operator/SKILL.md +551 -0
- package/skills/bpmax-e2e-flow-test-operator/agents/openai.yaml +5 -0
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale.json +97 -0
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_final_v2.json +105 -0
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_main.json +36 -0
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_region.json +40 -0
- package/skills/bpmax-e2e-flow-test-operator/references/ai-test-suite.md +333 -0
- package/skills/bpmax-e2e-flow-test-operator/references/browser-only-checkpoints.md +41 -0
- package/skills/bpmax-e2e-flow-test-operator/references/failure-update-loop.md +17 -0
- package/skills/bpmax-e2e-flow-test-operator/references/filter-field-discovery.md +40 -0
- package/skills/bpmax-e2e-flow-test-operator/references/minimal-test-loop.md +24 -0
- package/skills/bpmax-e2e-flow-test-operator/references/negative-sale-api-matrix.md +75 -0
- package/skills/bpmax-e2e-flow-test-operator/references/profile-schema.md +109 -0
- package/skills/bpmax-e2e-flow-test-operator/references/skill-experience-coverage-matrix.md +29 -0
- package/skills/bpmax-e2e-flow-test-operator/references/stale-runtime-and-clean-sample-rules.md +54 -0
- package/skills/bpmax-e2e-flow-test-operator/references/state-schema.md +83 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/bpmax_session.py +287 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/dealer_sample_on_shelf_plan.json +59 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/dealer_sample_on_shelf_runner.py +687 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_doc.py +121 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_state.py +288 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_api_matrix.py +161 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_filter_fields.py +138 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_form_runtime.py +396 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_runner.py +341 -0
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_test_profile.py +185 -0
- package/skills/bpmax-e2e-flow-test-operator/tests/test_negative_sale_api_tools.py +138 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/SKILL.md +69 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/config-checklist.md +42 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/config-recipes.md +38 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/config-shape.md +86 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/gate-lint.md +68 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/hoocoo-patterns.md +39 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/runtime-behavior.md +41 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/references/script-authoring.md +110 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/scripts/lint_feishu_chat_plugin.py +278 -0
- package/skills/bpmax-feishu-chat-flow-plugin-editor/tests/test_lint_feishu_chat_plugin.py +203 -0
- package/skills/bpmax-filter-template-editor/SKILL.md +564 -0
- package/skills/bpmax-filter-template-editor/references/experience-coverage-matrix.md +38 -0
- package/skills/bpmax-filter-template-editor/references/filter-and-flow-binding.md +57 -0
- package/skills/bpmax-filter-template-editor/references/filter-content-schema.md +141 -0
- package/skills/bpmax-filter-template-editor/references/filter-request-shape.md +287 -0
- package/skills/bpmax-filter-template-editor/references/filter-runtime-patterns.md +115 -0
- package/skills/bpmax-filter-template-editor/references/runtime-verified-filter-page-shape.md +94 -0
- package/skills/bpmax-filter-template-editor/scripts/build_submit_payload.py +25 -0
- package/skills/bpmax-filter-template-editor/scripts/confirm_filter_template.py +22 -0
- package/skills/bpmax-filter-template-editor/scripts/export_filter_template.py +57 -0
- package/skills/bpmax-filter-template-editor/scripts/filter_template_editor_common.py +348 -0
- package/skills/bpmax-filter-template-editor/scripts/init_create_filter_template.py +8 -0
- package/skills/bpmax-filter-template-editor/scripts/lint_filter_template_semantics.py +26 -0
- package/skills/bpmax-filter-template-editor/scripts/submit_filter_template.py +62 -0
- package/skills/bpmax-filter-template-editor/tests/test_filter_template_editor.py +231 -0
- package/skills/bpmax-flow-template-editor/SKILL.md +1095 -0
- package/skills/bpmax-flow-template-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-flow-template-editor/references/before-next-step-script-runtime-gotchas.md +62 -0
- package/skills/bpmax-flow-template-editor/references/config-surfaces-and-placeholders.md +270 -0
- package/skills/bpmax-flow-template-editor/references/diff-strategy.md +67 -0
- package/skills/bpmax-flow-template-editor/references/editor-runtime-vs-draft.md +25 -0
- package/skills/bpmax-flow-template-editor/references/flow-template-api-workflow.md +174 -0
- package/skills/bpmax-flow-template-editor/references/intent-model.md +117 -0
- package/skills/bpmax-flow-template-editor/references/lessons-from-price-plan-flow.md +147 -0
- package/skills/bpmax-flow-template-editor/references/local-temp-workflow.md +97 -0
- package/skills/bpmax-flow-template-editor/references/matrix-flow-form-nav-collaboration.md +168 -0
- package/skills/bpmax-flow-template-editor/references/payload-checklist.md +133 -0
- package/skills/bpmax-flow-template-editor/references/project-create-runtime-gotchas.md +106 -0
- package/skills/bpmax-flow-template-editor/references/requirement-to-node-mapping.md +149 -0
- package/skills/bpmax-flow-template-editor/references/runtime-verified-flow-detail-shape.md +41 -0
- package/skills/bpmax-flow-template-editor/references/runtime-verified-meta-fields.md +155 -0
- package/skills/bpmax-flow-template-editor/references/runtime-verified-node-fields.md +179 -0
- package/skills/bpmax-flow-template-editor/references/save-draft-request-shape.md +91 -0
- package/skills/bpmax-flow-template-editor/references/script-review-hard-rules.md +96 -0
- package/skills/bpmax-flow-template-editor/references/work-file-to-submit-mapping.md +57 -0
- package/skills/bpmax-flow-template-editor/scripts/build_submit_payload.py +69 -0
- package/skills/bpmax-flow-template-editor/scripts/confirm_flow_template.py +52 -0
- package/skills/bpmax-flow-template-editor/scripts/export_flow_template.py +114 -0
- package/skills/bpmax-flow-template-editor/scripts/flow_template_editor_common.py +1084 -0
- package/skills/bpmax-flow-template-editor/scripts/submit_flow_template.py +159 -0
- package/skills/bpmax-flow-template-editor/tests/test_flow_template_editor.py +636 -0
- package/skills/bpmax-form-template-editor/SKILL.md +1113 -0
- package/skills/bpmax-form-template-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-form-template-editor/references/form-template-api-workflow.md +203 -0
- package/skills/bpmax-form-template-editor/references/local-temp-workflow.md +125 -0
- package/skills/bpmax-form-template-editor/references/payload-checklist.md +77 -0
- package/skills/bpmax-form-template-editor/references/sub-form-patterns.md +49 -0
- package/skills/bpmax-form-template-editor/scripts/build_submit_payload.py +37 -0
- package/skills/bpmax-form-template-editor/scripts/check_form_template_consistency.py +145 -0
- package/skills/bpmax-form-template-editor/scripts/confirm_form_template.py +67 -0
- package/skills/bpmax-form-template-editor/scripts/export_form_template.py +91 -0
- package/skills/bpmax-form-template-editor/scripts/form_template_editor_common.py +1762 -0
- package/skills/bpmax-form-template-editor/scripts/lint_form_template_semantics.py +30 -0
- package/skills/bpmax-form-template-editor/scripts/record_runtime_acceptance.py +67 -0
- package/skills/bpmax-form-template-editor/scripts/submit_form_template.py +163 -0
- package/skills/bpmax-form-template-editor/tests/test_form_template_editor.py +1292 -0
- package/skills/bpmax-list-template-editor/SKILL.md +478 -0
- package/skills/bpmax-list-template-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-list-template-editor/references/browser-page-contract.md +81 -0
- package/skills/bpmax-list-template-editor/references/content-config-shape.md +165 -0
- package/skills/bpmax-list-template-editor/references/dataset-field-mapping.md +60 -0
- package/skills/bpmax-list-template-editor/references/list-template-api-workflow.md +108 -0
- package/skills/bpmax-list-template-editor/references/local-temp-workflow.md +102 -0
- package/skills/bpmax-list-template-editor/references/payload-checklist.md +47 -0
- package/skills/bpmax-list-template-editor/references/runtime-verified-workflow.md +147 -0
- package/skills/bpmax-list-template-editor/references/special-formats.md +411 -0
- package/skills/bpmax-list-template-editor/scripts/build_submit_payload.py +37 -0
- package/skills/bpmax-list-template-editor/scripts/confirm_list_template.py +33 -0
- package/skills/bpmax-list-template-editor/scripts/export_list_template.py +89 -0
- package/skills/bpmax-list-template-editor/scripts/fetch_data_set.py +34 -0
- package/skills/bpmax-list-template-editor/scripts/lint_list_template_semantics.py +54 -0
- package/skills/bpmax-list-template-editor/scripts/list_template_editor_common.py +955 -0
- package/skills/bpmax-list-template-editor/scripts/record_acceptance.py +55 -0
- package/skills/bpmax-list-template-editor/scripts/submit_list_template.py +117 -0
- package/skills/bpmax-list-template-editor/tests/test_list_template_editor_common.py +441 -0
- package/skills/bpmax-memory-protocol/SKILL.md +72 -0
- package/skills/bpmax-nav-config-editor/SKILL.md +350 -0
- package/skills/bpmax-nav-config-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-nav-config-editor/references/api-workflow.md +70 -0
- package/skills/bpmax-nav-config-editor/references/config-shape.md +78 -0
- package/skills/bpmax-nav-config-editor/references/icon-selection.md +83 -0
- package/skills/bpmax-nav-config-editor/references/path-mapping-rules.md +51 -0
- package/skills/bpmax-nav-config-editor/references/payload-checklist.md +41 -0
- package/skills/bpmax-nav-config-editor/references/runtime-probing.md +47 -0
- package/skills/bpmax-nav-config-editor/scripts/build_submit_payload.py +34 -0
- package/skills/bpmax-nav-config-editor/scripts/confirm_nav_config.py +32 -0
- package/skills/bpmax-nav-config-editor/scripts/export_nav_config.py +56 -0
- package/skills/bpmax-nav-config-editor/scripts/lint_nav_config_semantics.py +33 -0
- package/skills/bpmax-nav-config-editor/scripts/nav_config_editor_common.py +812 -0
- package/skills/bpmax-nav-config-editor/scripts/submit_nav_config.py +44 -0
- package/skills/bpmax-nav-config-editor/scripts/verify_nav_config.py +33 -0
- package/skills/bpmax-nav-config-editor/tests/test_nav_config_editor.py +358 -0
- package/skills/bpmax-nav-config-editor/tests/test_nav_config_editor_common.py +138 -0
- package/skills/bpmax-nav-config-editor/tests/test_nav_config_lint.py +58 -0
- package/skills/bpmax-nav-config-editor/tests/test_nav_config_submit_verify.py +51 -0
- package/skills/bpmax-plugin-config/SKILL.md +42 -0
- package/skills/bpmax-project/SKILL.md +17 -3
- package/skills/bpmax-project-detail-template-editor/SKILL.md +355 -0
- package/skills/bpmax-project-detail-template-editor/agents/openai.yaml +4 -0
- package/skills/bpmax-project-detail-template-editor/references/local-temp-workflow.md +59 -0
- package/skills/bpmax-project-detail-template-editor/references/module-catalog-and-config-notes.md +120 -0
- package/skills/bpmax-project-detail-template-editor/references/payload-checklist.md +33 -0
- package/skills/bpmax-project-detail-template-editor/references/project-detail-template-api-workflow.md +44 -0
- package/skills/bpmax-project-detail-template-editor/scripts/build_submit_payload.py +30 -0
- package/skills/bpmax-project-detail-template-editor/scripts/confirm_project_detail_template.py +33 -0
- package/skills/bpmax-project-detail-template-editor/scripts/export_project_detail_template.py +87 -0
- package/skills/bpmax-project-detail-template-editor/scripts/lint_project_detail_template_semantics.py +37 -0
- package/skills/bpmax-project-detail-template-editor/scripts/project_detail_template_editor_common.py +507 -0
- package/skills/bpmax-project-detail-template-editor/scripts/submit_project_detail_template.py +120 -0
- package/skills/bpmax-project-detail-template-editor/tests/test_project_detail_template_editor.py +369 -0
- package/skills/bpmax-role-editor/SKILL.md +251 -0
- package/skills/bpmax-role-editor/references/api-workflow.md +30 -0
- package/skills/bpmax-role-editor/references/runtime-page-shape.md +18 -0
- package/skills/bpmax-role-editor/references/work-file-mapping.md +32 -0
- package/skills/bpmax-role-editor/scripts/build_submit_payload.py +38 -0
- package/skills/bpmax-role-editor/scripts/confirm_role.py +33 -0
- package/skills/bpmax-role-editor/scripts/export_role.py +163 -0
- package/skills/bpmax-role-editor/scripts/lint_role_semantics.py +38 -0
- package/skills/bpmax-role-editor/scripts/role_editor_common.py +1231 -0
- package/skills/bpmax-role-editor/scripts/submit_role.py +144 -0
- package/skills/bpmax-role-editor/tests/test_role_editor.py +343 -0
- package/skills/bpmax-shared/SKILL.md +1 -1
- package/skills/bpmax-user-mock-operator/SKILL.md +106 -0
- package/skills/bpmax-user-mock-operator/agents/openai.yaml +4 -0
- package/skills/bpmax-user-mock-operator/scripts/switch_user_identity.py +37 -0
- package/skills/bpmax-user-mock-operator/scripts/user_mock_operator_common.py +136 -0
- package/skills/bpmax-user-mock-operator/tests/test_user_mock_operator.py +138 -0
- package/skills/bpmax-workspace-editor/SKILL.md +78 -0
- package/skills/bpmax-workspace-editor/agents/openai.yaml +4 -0
- package/skills/form-control-library/SKILL.md +82 -0
- package/skills/form-control-library/agents/openai.yaml +4 -0
- package/skills/form-control-library/references/form-controls.md +199 -0
- package/skills/form-control-library/references/form-template-submit-schema.md +180 -0
- package/skills/form-control-library/references/group-select-runtime.md +191 -0
- package/skills/form-control-library/scripts/rebuild_form_control_library.py +55 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# 创建期脚本运行时排坑
|
|
2
|
+
|
|
3
|
+
## 适用范围
|
|
4
|
+
- `meta.project_create_validator`
|
|
5
|
+
- `meta.project_after_create_path`
|
|
6
|
+
- 其他在创建项目阶段由前端或后端执行的流程级脚本
|
|
7
|
+
|
|
8
|
+
## 字段语义
|
|
9
|
+
- `meta.project_create_validator` 是创建前后端校验脚本,通过 `parseEvalFunction()` 执行。
|
|
10
|
+
- `meta.project_after_create_path` 是项目创建成功后的前端跳转脚本。创建页读取 `flow.data.meta.project_after_create_path`,脚本返回 path 后执行 `this.$router.push(path)`。
|
|
11
|
+
- `meta.project_after_create_path` 必须以 `return` 开头;如果先写 `var ...` 再 `return path`,CLI lint 会阻断。
|
|
12
|
+
- 不要把“创建后跳转到流程列表页”配置到 `project_after_create_callback`。当前创建页不会用它决定创建成功后的路由。
|
|
13
|
+
|
|
14
|
+
## 创建后回到流程列表页
|
|
15
|
+
- 如果希望 `/project/create?flow_type=<flow_type>` 提交成功后回到当前流程列表页,把下面脚本配置到 `flow.data.meta.project_after_create_path`:
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
return (function () {
|
|
19
|
+
var flowType = (ctx.flow && ctx.flow.flow_type) || 'flow614117990';
|
|
20
|
+
var flowKey = (ctx.flow && ctx.flow.key) || '';
|
|
21
|
+
var path = '/project?flow_type=' + encodeURIComponent(flowType);
|
|
22
|
+
if (flowKey) {
|
|
23
|
+
path += '&flow_key=' + encodeURIComponent(flowKey);
|
|
24
|
+
}
|
|
25
|
+
return path;
|
|
26
|
+
})();
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
- 对 YBS 主流程 `flow614117990`,无 `flow_key` 时会跳转到:
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
/project?flow_type=flow614117990
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
- 如果没有配置 `meta.project_after_create_path`,创建页会走默认逻辑:有当前环节时跳到 `/projectContinue?id=...&step_id=...`。
|
|
36
|
+
|
|
37
|
+
## 标准整页创建页必须配置发起表单
|
|
38
|
+
- 当 `meta.project_create_mode = "standard"` 且 `meta.project_create_standard_mode = "page"` 时,创建页按 `data.meta.form_template` 加载发起表单。
|
|
39
|
+
- 创建页不会从首个 `nodes[].form_template` 推断发起表单。若节点挂了 `form_template` 但 `meta.form_template` 为空,可能出现创建页表单空白、卡在创建状态或提交 payload 缺字段。
|
|
40
|
+
- 正确配置:
|
|
41
|
+
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"data": {
|
|
45
|
+
"meta": {
|
|
46
|
+
"project_create_mode": "standard",
|
|
47
|
+
"project_create_standard_mode": "page",
|
|
48
|
+
"form_template": 902
|
|
49
|
+
},
|
|
50
|
+
"nodes": [
|
|
51
|
+
{ "name": "提交申请", "form_template": 902 }
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
- `form_template` 必须是当前环境远端数字 `id`,不能是本地 `uuid`、目录名或模板名。
|
|
58
|
+
- typed CLI lint 会阻断“standard/page + node.form_template + meta.form_template 为空”的配置。
|
|
59
|
+
|
|
60
|
+
## 经验 1:脚本存在不等于校验生效
|
|
61
|
+
- BPMAX 后端通过 `parseEvalFunction()` 执行创建期脚本。
|
|
62
|
+
- 这类脚本不是直接 `eval` 结果,而是作为“函数体”包进去执行。
|
|
63
|
+
- 因此如果脚本写成:
|
|
64
|
+
|
|
65
|
+
```js
|
|
66
|
+
(async () => {
|
|
67
|
+
if (!sn) return '请输入SN码';
|
|
68
|
+
})();
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
- 最终返回值很可能是 `undefined`,表现为“脚本明明写了,但创建照样通过”。
|
|
72
|
+
- 稳妥写法:
|
|
73
|
+
|
|
74
|
+
```js
|
|
75
|
+
return (async () => {
|
|
76
|
+
if (!sn) return '请输入SN码';
|
|
77
|
+
})();
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## 经验 2:创建期失败要优先看服务端返回,不要只看前端提示
|
|
81
|
+
- 如果 `project_create_validator` 生效,创建接口会直接返回 4xx/5xx,并携带脚本返回的错误信息。
|
|
82
|
+
- 若页面没有拦住、接口也没有报错,优先怀疑:
|
|
83
|
+
- 脚本没有显式 `return`
|
|
84
|
+
- 当前创建链路没命中 live flow
|
|
85
|
+
- 读取了错误的上下文字段
|
|
86
|
+
|
|
87
|
+
## 经验 3:日期比较优先按业务粒度,不要默认用 `endOf('day')`
|
|
88
|
+
- 样机“今天可售”这类规则,若写成:
|
|
89
|
+
|
|
90
|
+
```js
|
|
91
|
+
$moment(saleableTime).endOf('day').isAfter($moment())
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
- 会把“今天”也误判成未来,直到当天结束才放行。
|
|
95
|
+
- 对“按天生效”的业务,优先用:
|
|
96
|
+
|
|
97
|
+
```js
|
|
98
|
+
$moment(saleableTime).startOf('day').isAfter($moment().startOf('day'))
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## 经验 4:回归创建脚本时,优先同时测一条成功和一条失败
|
|
102
|
+
- 最小回归组合:
|
|
103
|
+
- 1 条应成功样本
|
|
104
|
+
- 1 条应失败样本
|
|
105
|
+
- 只测成功样本,容易漏掉“校验脚本根本没执行”
|
|
106
|
+
- 只测失败样本,容易漏掉“脚本过严或日期边界错误”
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# 需求到节点配置映射
|
|
2
|
+
|
|
3
|
+
## 阶段与节点
|
|
4
|
+
- “新增一个阶段 X”
|
|
5
|
+
- 修改 `data.periods`
|
|
6
|
+
- “在阶段 X 下新增节点 Y”
|
|
7
|
+
- 新增 `nodes[]`
|
|
8
|
+
- `node.period = X`
|
|
9
|
+
- 生成稳定 `id`
|
|
10
|
+
|
|
11
|
+
## 基础流转
|
|
12
|
+
- “Y 通过后到 Z”
|
|
13
|
+
- `node.approve_to_step = <Z>`
|
|
14
|
+
- “Y 驳回后到 A”
|
|
15
|
+
- `node.approve_fail = <A>`
|
|
16
|
+
- “Y 允许多个处理动作”
|
|
17
|
+
- `node.multiple_actions = true`
|
|
18
|
+
|
|
19
|
+
## 条件分支
|
|
20
|
+
- “根据表单字段/项目字段决定去哪个节点”
|
|
21
|
+
- 使用 `node.condational_nodes`
|
|
22
|
+
- 标准条件优先使用 `condition_result_rules`
|
|
23
|
+
- 已有脚本型条件则保持 `FF::S::...condition` 外链方式
|
|
24
|
+
|
|
25
|
+
## 自动发起流程
|
|
26
|
+
- “当前节点完成后自动发起流程 B”
|
|
27
|
+
- `node.auto_trigger_flows.flows[]`
|
|
28
|
+
- “自动发起时按规则生成项目”
|
|
29
|
+
- `flows[].create_rule`
|
|
30
|
+
- 若原仓库使用 `FF::S::...create_rule`,沿用外链脚本
|
|
31
|
+
|
|
32
|
+
## 表单
|
|
33
|
+
- “流程发起时填写表单 / 开始节点挂表单 / Meta 节点挂表单”
|
|
34
|
+
- 优先检查 `data.meta`
|
|
35
|
+
- 默认落到 `meta.form_template = <template_ref>`
|
|
36
|
+
- 同时评估是否需要保留:
|
|
37
|
+
- `meta.isMeta = true`
|
|
38
|
+
- `meta.name = "开始"`
|
|
39
|
+
- `meta.use_template_project_name`
|
|
40
|
+
- `meta.project_name_template`
|
|
41
|
+
- 不要先入为主新增一个独立“发起”阶段
|
|
42
|
+
- “表单驱动发起的新流程”
|
|
43
|
+
- 默认隐藏系统项目字段:
|
|
44
|
+
- `project.name`
|
|
45
|
+
- `project.plan_end_time`
|
|
46
|
+
- `project.brief`
|
|
47
|
+
- 默认设置:
|
|
48
|
+
- `meta.use_template_project_name = true`
|
|
49
|
+
- `meta.project_name_template = <from_meta_form_fields>`
|
|
50
|
+
- 只有用户明确要求保留系统项目字段时,才跳过这条默认规则
|
|
51
|
+
- “节点 Y 绑定表单模板 T”
|
|
52
|
+
- `node.form_template = <template_ref>`
|
|
53
|
+
- “节点展示关联项目表单”
|
|
54
|
+
- `node.enable_relate_project_form = true`
|
|
55
|
+
- “节点展示关联表单但未选择模板”
|
|
56
|
+
- 这通常只说明 `node.enable_relate_project_form = true`
|
|
57
|
+
- 不等价于已经配置了 `node.form_template`
|
|
58
|
+
|
|
59
|
+
## 人员与抄送
|
|
60
|
+
- “当前环节负责人 = 项目负责人”
|
|
61
|
+
- `node.auto_range_type = "owner"`
|
|
62
|
+
- `node.owner_is_creater = true`
|
|
63
|
+
- `node.owner_roles = []`
|
|
64
|
+
- “当前环节负责人未说明”
|
|
65
|
+
- 默认优先按“项目负责人”处理
|
|
66
|
+
- “节点负责人按角色选”
|
|
67
|
+
- `node.owner_roles`
|
|
68
|
+
- 常与 `node.auto_range_by_role` 组合出现
|
|
69
|
+
- “节点负责人按角色选”时,通常不要再同时启用 `owner_is_creater = true`
|
|
70
|
+
- “当前环节负责人按脚本算”
|
|
71
|
+
- `node.auto_range_type = "fieldvalue"`
|
|
72
|
+
- `node.auto_range_by_script`
|
|
73
|
+
- “当前环节负责人按矩阵算”
|
|
74
|
+
- `node.auto_range_type = "matrix"`
|
|
75
|
+
- `node.matrix_owner.flow = <matrix_flow_type>:<flow_key>`
|
|
76
|
+
- `node.matrix_owner.script = <script>`
|
|
77
|
+
- 运行时硬依赖优先看 `flow` + `script`
|
|
78
|
+
- “抄送人按矩阵算”
|
|
79
|
+
- `node.cc_type = "matrix"`
|
|
80
|
+
- `node.cc_matrix.flow = <matrix_flow_type>:<flow_key>`
|
|
81
|
+
- `node.cc_matrix.script = <script>`
|
|
82
|
+
- “抄送人按脚本算”
|
|
83
|
+
- `node.cc_user_by_script`
|
|
84
|
+
- “抄送消息自定义”
|
|
85
|
+
- `node.cc_message_template`
|
|
86
|
+
|
|
87
|
+
## 消息模板
|
|
88
|
+
- “节点完成后发通知”
|
|
89
|
+
- `node.message_template`
|
|
90
|
+
- “使用简易卡片通知”
|
|
91
|
+
- `node.message_config_mode = simple`
|
|
92
|
+
- 配套 `message_template_simple`
|
|
93
|
+
- “通知负责人/抄送”
|
|
94
|
+
- `step_notify_owner_message_template_simple`
|
|
95
|
+
- `step_cc_message_template_simple`
|
|
96
|
+
|
|
97
|
+
## 节点脚本
|
|
98
|
+
- “进入下一步前执行脚本”
|
|
99
|
+
- `beforeNextStepScript`
|
|
100
|
+
- “处理表单/字段映射”
|
|
101
|
+
- `step_transform`
|
|
102
|
+
- “按脚本算处理范围”
|
|
103
|
+
- `auto_range_by_script`
|
|
104
|
+
|
|
105
|
+
## 事件与 Hook
|
|
106
|
+
- “流程或节点触发对象事件”
|
|
107
|
+
- `object_events`
|
|
108
|
+
- “流程创建时执行逻辑”
|
|
109
|
+
- 流程级 `meta.hook`
|
|
110
|
+
- 或 `meta.project_create_validator`
|
|
111
|
+
|
|
112
|
+
## 页面模板
|
|
113
|
+
- “详情页增加表格/统计面板/列表”
|
|
114
|
+
- 进入 `think_flow_page_template`
|
|
115
|
+
- “页面组件数据由脚本算”
|
|
116
|
+
- 检查 `config.dataSource`
|
|
117
|
+
- “页面表格列定义或渲染逻辑变更”
|
|
118
|
+
- 检查 `config.config`
|
|
119
|
+
|
|
120
|
+
## 矩阵全链路
|
|
121
|
+
- “搭一个矩阵流程”
|
|
122
|
+
- `flow.category = "matrix"`
|
|
123
|
+
- `meta.form_template`
|
|
124
|
+
- `meta.table_list_template`
|
|
125
|
+
- `meta.table_filter_template`
|
|
126
|
+
- “矩阵流程挂到某个工作区”
|
|
127
|
+
- `think_workspace/.../workspace_flow`
|
|
128
|
+
- “给用户一个矩阵入口”
|
|
129
|
+
- `think_configuration/type'navmenu___workspace'*/configuration.content`
|
|
130
|
+
- “矩阵流程可被业务流消费”
|
|
131
|
+
- 先确认矩阵流程本体
|
|
132
|
+
- 再确认消费侧的 `matrix_owner` / `cc_matrix`
|
|
133
|
+
|
|
134
|
+
## 默认策略
|
|
135
|
+
- 用户只提业务意图时,优先落到已有结构最接近的字段。
|
|
136
|
+
- 同时存在“简单配置”和“脚本配置”两种实现时:
|
|
137
|
+
- 优先保留现有实现风格
|
|
138
|
+
- 不要把脚本型实现无故改成纯配置
|
|
139
|
+
- 如果本地目录里找到的是表单模板 `uuid` / 目录引用,但页面真实保存请求使用的是远端表单模板数字 `id`:
|
|
140
|
+
- 优先以页面请求和当前环境接口返回为准
|
|
141
|
+
- 先把候选模板从本地目录定位出来,再解析成当前环境可提交的真实引用值
|
|
142
|
+
|
|
143
|
+
## 用法要求
|
|
144
|
+
- 这张表不是补充说明,而是主流程第 1 步到第 6 步之间的核心映射依据。
|
|
145
|
+
- 当意图模型里出现某条业务需求时,应先来这里找默认落点,再决定是否需要脚本、外链文件或页面模板联动。
|
|
146
|
+
- 如果这里没有明确覆盖某种需求:
|
|
147
|
+
- 先参考当前页面真实请求
|
|
148
|
+
- 再参考 `sysconfig-n`
|
|
149
|
+
- 最后再做最小保守推断
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Runtime Verified Flow Detail Shape
|
|
2
|
+
|
|
3
|
+
基于当前 skill 已确认的 `GET /api/flow?...&draft=1` 和页面运行时 `FlowEditorDark.getSubmitData()` 共同整理。
|
|
4
|
+
|
|
5
|
+
## 顶层共识
|
|
6
|
+
- `name`
|
|
7
|
+
- `data`
|
|
8
|
+
- `flow_type` 或 `key`
|
|
9
|
+
- `update_time`
|
|
10
|
+
|
|
11
|
+
## `data` 共识字段
|
|
12
|
+
- `periods`
|
|
13
|
+
- `nodes`
|
|
14
|
+
- `meta`
|
|
15
|
+
- `group`
|
|
16
|
+
|
|
17
|
+
## `group` 的当前硬结论
|
|
18
|
+
- `data.group` 必须是 `array`,即使为空也要写成 `[]`
|
|
19
|
+
- 不要接受 `{}`
|
|
20
|
+
- 已验证后果:
|
|
21
|
+
- 保存接口可能仍返回 200
|
|
22
|
+
- 但流程编辑器画布会把 `group` 当数组处理,进而触发 `x.map is not a function`
|
|
23
|
+
- 常伴随 `FlowMap Invalid DIV id` 一类后续报错
|
|
24
|
+
|
|
25
|
+
## 当前闭环的使用方式
|
|
26
|
+
1. 优先读取真实接口:
|
|
27
|
+
- `GET /api/flow?flow_type=<flow_type>&draft=1`
|
|
28
|
+
- `GET /api/flow?key=<key>&draft=1`
|
|
29
|
+
2. 若接口返回空壳、残缺数据或与编辑器不一致,再使用页面运行时导出的完整骨架作为 fallback
|
|
30
|
+
3. 无论来源是接口还是运行时,导出到本地 `work` 文件时都统一转成:
|
|
31
|
+
- `basic.name`
|
|
32
|
+
- `basic.updateTime`
|
|
33
|
+
- `data.periods`
|
|
34
|
+
- `data.nodes`
|
|
35
|
+
- `data.meta`
|
|
36
|
+
- `data.group`
|
|
37
|
+
|
|
38
|
+
## 当前闭环不做的事
|
|
39
|
+
- 不在 `work` 阶段对 `data` 做抽象 DSL
|
|
40
|
+
- 不在 `submit` 阶段对 `data` 做最小化裁剪
|
|
41
|
+
- 不把运行时 fallback 当成默认事实来源;它只是草稿接口失真时的兜底
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# Runtime Verified Meta Fields
|
|
2
|
+
|
|
3
|
+
基于当前页面 `https://<your-bpmax-host>/w:store_mgr/flow_editor_dark/beta?key_of_flow=flow352878207:` 的 Vue 运行时 `FlowEditorDark.getSubmitData()` 与一次真实 `PUT /api/flow?...&publish=2` 保存请求整理。
|
|
4
|
+
|
|
5
|
+
## 适用范围
|
|
6
|
+
- 仅代表当前环境、当前前端版本、当前流程编辑器的已验证字段。
|
|
7
|
+
- 若其他环境或页面请求骨架不同,以当前页面真实请求为准。
|
|
8
|
+
|
|
9
|
+
## 核心结论
|
|
10
|
+
- 保存草稿时主流程主体是:
|
|
11
|
+
|
|
12
|
+
```json
|
|
13
|
+
{
|
|
14
|
+
"name": "流程名称",
|
|
15
|
+
"data": {
|
|
16
|
+
"periods": [],
|
|
17
|
+
"nodes": [],
|
|
18
|
+
"meta": {},
|
|
19
|
+
"group": []
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
- `meta` 是流程级配置主承载面,不应在差量编辑时被整体重建。
|
|
25
|
+
- `group` 在当前环境必须是 `array`。不要因为空值而写成 `{}`;这会让流程图组件按数组消费时直接报错。
|
|
26
|
+
|
|
27
|
+
## 当前页面已验证字段
|
|
28
|
+
|
|
29
|
+
### 发起与入口
|
|
30
|
+
- `isMeta`
|
|
31
|
+
- `name`
|
|
32
|
+
- `form_template`
|
|
33
|
+
- `hide_fields`
|
|
34
|
+
- `project_create_standard_mode`
|
|
35
|
+
- `plan_end_time_type`
|
|
36
|
+
- `enable_recall`
|
|
37
|
+
|
|
38
|
+
### 标题与展示
|
|
39
|
+
- `project_name_template`
|
|
40
|
+
- `task_project_name_template`
|
|
41
|
+
- `table_list_template`
|
|
42
|
+
- `table_filter_template`
|
|
43
|
+
- `step_detail_id`
|
|
44
|
+
- `project_name_length`
|
|
45
|
+
|
|
46
|
+
### 对外创建与公开性
|
|
47
|
+
- `public_create`
|
|
48
|
+
- `public_create_domain`
|
|
49
|
+
|
|
50
|
+
### 计算与流转
|
|
51
|
+
- `computed_fields`
|
|
52
|
+
- `computed_fields_with_forms`
|
|
53
|
+
- `condational_jump`
|
|
54
|
+
- `minimum_interval`
|
|
55
|
+
- `skipValidateActions`
|
|
56
|
+
- `ignorePause`
|
|
57
|
+
- `ignoreFinished`
|
|
58
|
+
- `fail_end_config`
|
|
59
|
+
|
|
60
|
+
### 通知与抄送
|
|
61
|
+
- `notify_project_owner_on_end_message_config_mode`
|
|
62
|
+
- `notify_project_owner_on_end_message_template_simple`
|
|
63
|
+
- `project_cc_message_config_mode`
|
|
64
|
+
- `project_cc_message_template_simple`
|
|
65
|
+
|
|
66
|
+
### 生命周期与事件
|
|
67
|
+
- `hook`
|
|
68
|
+
- `object_events`
|
|
69
|
+
- `cold_data_handler`
|
|
70
|
+
- `extra_actions`
|
|
71
|
+
|
|
72
|
+
### 插件
|
|
73
|
+
- `plugin_urgent_reminder`
|
|
74
|
+
- `plugin_urgent_reminder_meta`
|
|
75
|
+
- `plugin_create_feishu_chat`
|
|
76
|
+
- `plugin_print_page`
|
|
77
|
+
- `plugin_approval_connector`
|
|
78
|
+
- `plugin_feishu_doc_meta`
|
|
79
|
+
- `plugin_project_status_control_meta`
|
|
80
|
+
- 以及其他 `plugin_*`
|
|
81
|
+
|
|
82
|
+
## 关键字段说明
|
|
83
|
+
|
|
84
|
+
### `public_create` / `public_create_domain`
|
|
85
|
+
- 对应管理台“公开性设置”。
|
|
86
|
+
- 当前页面值:
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{
|
|
90
|
+
"public_create": false,
|
|
91
|
+
"public_create_domain": ""
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### `plan_end_time_type`
|
|
96
|
+
- 对应“计划完成时间精度”。
|
|
97
|
+
- 当前页面值:`"date"`
|
|
98
|
+
|
|
99
|
+
### `project_create_standard_mode`
|
|
100
|
+
- 当前页面值:`"page"`
|
|
101
|
+
- 表示创建项目入口模式;修改发起流程时要保留。
|
|
102
|
+
- 若用户没有明确指定其他打开方式,默认按整页模式处理,并与 `project_create_mode = "standard"` 成对保留。
|
|
103
|
+
|
|
104
|
+
### 已验证的“独立页面 + 隐藏导入导出”组合
|
|
105
|
+
- 当前环境已做真实页面验收,下面这组字段可以稳定表达“创建走独立页面,流程级导入/导出入口隐藏”:
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
{
|
|
109
|
+
"project_create_mode": "standard",
|
|
110
|
+
"project_create_standard_mode": "page",
|
|
111
|
+
"hide_import_btn": true,
|
|
112
|
+
"hide_export_btn": false,
|
|
113
|
+
"hide_export_notify": true
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
- 当前环境已验证到的页面行为:
|
|
118
|
+
- `project_create_standard_mode = "page"`:列表页点击“新建”会进入 `/project/create?flow_type=...`
|
|
119
|
+
- `hide_import_btn = true`:隐藏导入/模板导入入口
|
|
120
|
+
- `hide_export_btn = true`:隐藏导出入口
|
|
121
|
+
- `hide_export_notify = true`:隐藏导出通知相关入口
|
|
122
|
+
- 这组字段只覆盖流程级入口,不覆盖列表模板、详情模板、筛选器模板里的自定义按钮。
|
|
123
|
+
|
|
124
|
+
### `form_template`
|
|
125
|
+
- 发起表单绑定在 `meta.form_template`。
|
|
126
|
+
- 当前页面值为数字 `id`,不是本地目录引用。
|
|
127
|
+
|
|
128
|
+
### `hide_fields`
|
|
129
|
+
- 当前页面值:
|
|
130
|
+
|
|
131
|
+
```json
|
|
132
|
+
["project.name", "project.brief", "project.plan_end_time"]
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### `condational_jump`
|
|
136
|
+
- 当前页面不仅保存目标节点,还保存标准条件结构和脚本文本。
|
|
137
|
+
- 当前页面验证到 `standard_condition` 可落成:
|
|
138
|
+
|
|
139
|
+
```js
|
|
140
|
+
return ctx?.$META_FORM_FIELD?.["832hf23btwazq"] === "否";
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
- 不要假设最终存储一定是文档示例里的 `$CURRENTFORM[...]`。
|
|
144
|
+
|
|
145
|
+
### `notify_project_owner_on_end_message_*` / `project_cc_message_*`
|
|
146
|
+
- 流程级结束通知与抄送消息已经进入 `meta`,且带 `*_config_mode` 和 `*_template_simple`。
|
|
147
|
+
- 修改流程级通知能力时,不能只看纯字符串模板字段。
|
|
148
|
+
|
|
149
|
+
### `plugin_urgent_reminder` / `plugin_urgent_reminder_meta`
|
|
150
|
+
- 流程级和项目级催办策略都可能在 `meta` 中。
|
|
151
|
+
- 当前页已验证存在频控、时段、自定义接收人等字段。
|
|
152
|
+
|
|
153
|
+
## 使用建议
|
|
154
|
+
- 改开始节点、公开创建、创建入口、流程级通知、流程级催办时,优先对照本文件。
|
|
155
|
+
- 若需求未涉及这里的字段,也要在差量编辑和保存前确认没有被误清空。
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# Runtime Verified Node Fields
|
|
2
|
+
|
|
3
|
+
基于当前页面 `FlowEditorDark.getSubmitData().nodes` 与一次真实保存请求整理。
|
|
4
|
+
|
|
5
|
+
## 适用范围
|
|
6
|
+
- 仅代表当前环境已验证的节点字段集合。
|
|
7
|
+
- 节点字段总数会随插件和页面版本增加,遇到新字段以页面真实请求为准。
|
|
8
|
+
|
|
9
|
+
## 当前页面已验证的高频字段
|
|
10
|
+
|
|
11
|
+
### 基础信息
|
|
12
|
+
- `id`
|
|
13
|
+
- `name`
|
|
14
|
+
- `period`
|
|
15
|
+
- `description`
|
|
16
|
+
- `start_step`
|
|
17
|
+
- `public`
|
|
18
|
+
- `show_on_pending`
|
|
19
|
+
- `hide_step_detail`
|
|
20
|
+
- `step_detail_id`
|
|
21
|
+
- `hide_in_pending_list`
|
|
22
|
+
- `step_transfer_other`
|
|
23
|
+
|
|
24
|
+
### 表单与附件
|
|
25
|
+
- `form_template`
|
|
26
|
+
- `enable_relate_project_form`
|
|
27
|
+
- `attachment_required`
|
|
28
|
+
|
|
29
|
+
### 负责人
|
|
30
|
+
- `auto_range_type`
|
|
31
|
+
- `auto_range_by_role`
|
|
32
|
+
- `auto_range_by_role_range`
|
|
33
|
+
- `auto_range_by_script`
|
|
34
|
+
- `auto_range_by_users`
|
|
35
|
+
- `auto_range_by_group`
|
|
36
|
+
- `auto_range_by_group_count`
|
|
37
|
+
- `owner_is_creater`
|
|
38
|
+
- `owner_roles`
|
|
39
|
+
- `role_logic`
|
|
40
|
+
- `arrange_owner_steps`
|
|
41
|
+
- `arrange_self_steps`
|
|
42
|
+
- `arrange_steps_owner`
|
|
43
|
+
- `set_step_owner_time_limit`
|
|
44
|
+
- `leader_match_method`
|
|
45
|
+
- `leader_superior_type`
|
|
46
|
+
- `leader_levels_up`
|
|
47
|
+
- `leader_max_levels_up`
|
|
48
|
+
- `leader_rules`
|
|
49
|
+
- `matrix_owner`
|
|
50
|
+
|
|
51
|
+
### 抄送与通知
|
|
52
|
+
- `cc_type`
|
|
53
|
+
- `cc_user`
|
|
54
|
+
- `cc_user_role`
|
|
55
|
+
- `cc_user_by_script`
|
|
56
|
+
- `cc_matrix`
|
|
57
|
+
- `cc_message_template`
|
|
58
|
+
- `cc_delay_time`
|
|
59
|
+
- `message_template`
|
|
60
|
+
- `message_config_mode`
|
|
61
|
+
- `message_template_simple`
|
|
62
|
+
- `step_notify_project_owner_message_config_mode`
|
|
63
|
+
- `step_notify_owner_message_template_simple`
|
|
64
|
+
- `step_cc_message_config_mode`
|
|
65
|
+
- `step_cc_message_template_simple`
|
|
66
|
+
|
|
67
|
+
### 流转
|
|
68
|
+
- `approve_to_step`
|
|
69
|
+
- `approve_fail`
|
|
70
|
+
- `approve_actions`
|
|
71
|
+
- `approve_fail_actions`
|
|
72
|
+
- `approve_count_required`
|
|
73
|
+
- `done_count_required`
|
|
74
|
+
- `need_confirm`
|
|
75
|
+
- `seperate_content`
|
|
76
|
+
- `condational_nodes`
|
|
77
|
+
- `enableBeforeNextStepScript`
|
|
78
|
+
- `beforeNextStepScript`
|
|
79
|
+
- `step_transform`
|
|
80
|
+
|
|
81
|
+
### 时间与超时
|
|
82
|
+
- `plan_start_time`
|
|
83
|
+
- `plan_end_time`
|
|
84
|
+
|
|
85
|
+
### 子流程与自动化
|
|
86
|
+
- `auto_trigger_flows`
|
|
87
|
+
- `try_apply_step_owner_after_project_create`
|
|
88
|
+
- `auto_end_by_subflow`
|
|
89
|
+
- `auto_fail_by_subflow`
|
|
90
|
+
- `end_action_by_subflow`
|
|
91
|
+
- `fail_action_by_subflow`
|
|
92
|
+
- `bind_by_subflow`
|
|
93
|
+
- `bind_subflow`
|
|
94
|
+
- `bind_subflow_title`
|
|
95
|
+
- `bind_subflow_add_btn_text`
|
|
96
|
+
- `sub_flow_actions`
|
|
97
|
+
- `extra_actions`
|
|
98
|
+
|
|
99
|
+
### 其他
|
|
100
|
+
- `hook`
|
|
101
|
+
- `object_events`
|
|
102
|
+
- `report_actions`
|
|
103
|
+
- `plugin_*`
|
|
104
|
+
|
|
105
|
+
## 关键字段说明
|
|
106
|
+
|
|
107
|
+
### `step_detail_id`
|
|
108
|
+
- 节点详情模板不是 `detail_template`,当前页面已验证使用 `step_detail_id`。
|
|
109
|
+
|
|
110
|
+
### `attachment_required`
|
|
111
|
+
- 对应“配置附件要求”。
|
|
112
|
+
- 当前页未配置时为 `[]`,不是 `null`。
|
|
113
|
+
|
|
114
|
+
### `auto_range_type`
|
|
115
|
+
- 当前环境已见到这些负责人分配模式:
|
|
116
|
+
- `owner`
|
|
117
|
+
- `user`
|
|
118
|
+
- `group`
|
|
119
|
+
- `fieldvalue`
|
|
120
|
+
- `matrix`
|
|
121
|
+
- `leader`
|
|
122
|
+
- `continuous_leader`
|
|
123
|
+
- 不同模式依赖的 sibling 字段不同,不能只改 `owner_is_creater` / `owner_roles`。
|
|
124
|
+
|
|
125
|
+
### `matrix_owner` / `cc_matrix`
|
|
126
|
+
- 运行时真正消费的核心字段是:
|
|
127
|
+
- `flow`
|
|
128
|
+
- `script`
|
|
129
|
+
- 当前源码里的 `MatrixPickerConfig` 只要求这两个字段。
|
|
130
|
+
- 编辑器里常见的:
|
|
131
|
+
- `mode`
|
|
132
|
+
- `targetField`
|
|
133
|
+
- `ruleGroup`
|
|
134
|
+
- 更适合作为 UI 辅助信息看待,不要把它们当成运行时唯一真相。
|
|
135
|
+
|
|
136
|
+
### `try_apply_step_owner_after_project_create`
|
|
137
|
+
- 用于“项目创建后先预分配后续环节负责人”。
|
|
138
|
+
- 当前源码已确认:主要对 `fieldvalue` / `matrix` 节点生效。
|
|
139
|
+
|
|
140
|
+
### `message_template` 相关
|
|
141
|
+
- 节点消息模板至少有三部分:
|
|
142
|
+
- `message_template`
|
|
143
|
+
- `message_config_mode`
|
|
144
|
+
- `message_template_simple`
|
|
145
|
+
- 项目负责人通知和抄送也各有独立的 `*_config_mode` / `*_template_simple`。
|
|
146
|
+
|
|
147
|
+
### `hide_in_pending_list`
|
|
148
|
+
- 对应“我的任务列表”中的隐藏待办类能力。
|
|
149
|
+
|
|
150
|
+
### `step_transfer_other`
|
|
151
|
+
- 对应“启用转办按钮”。
|
|
152
|
+
- 这不是文档里写的“允许流转他人环节”;两者不能混淆。
|
|
153
|
+
|
|
154
|
+
### `extra_actions`
|
|
155
|
+
- 对应“审批动作额外按钮”。
|
|
156
|
+
- 当前页未配置时为 `[]`。
|
|
157
|
+
|
|
158
|
+
### `auto_trigger_flows`
|
|
159
|
+
- 当前结构至少包括:
|
|
160
|
+
|
|
161
|
+
```json
|
|
162
|
+
{
|
|
163
|
+
"flows": [],
|
|
164
|
+
"create_again": true,
|
|
165
|
+
"manual_end": true,
|
|
166
|
+
"all_finish_action": "",
|
|
167
|
+
"fail_action": ""
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### `beforeNextStepScript`
|
|
172
|
+
- 需要同时关注:
|
|
173
|
+
- `enableBeforeNextStepScript`
|
|
174
|
+
- `beforeNextStepScript`
|
|
175
|
+
- `all_complete_required`
|
|
176
|
+
|
|
177
|
+
## 使用建议
|
|
178
|
+
- 改节点结构时,不要只保留 `id`、`name`、`period` 和流转目标。
|
|
179
|
+
- 详情模板、消息模板、附件要求、待办显示、转办按钮、额外动作都属于需要保留的真实语义。
|