weaver-e10-builder 1.0.11-beta → 1.0.12-beta
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/commands/auth.d.ts.map +1 -1
- package/dist/commands/auth.js +13 -0
- package/dist/commands/auth.js.map +1 -1
- package/dist/commands/form-list-permission.d.ts.map +1 -1
- package/dist/commands/form-list-permission.js +130 -15
- package/dist/commands/form-list-permission.js.map +1 -1
- package/dist/commands/form-nlist.d.ts +22 -0
- package/dist/commands/form-nlist.d.ts.map +1 -0
- package/dist/commands/form-nlist.js +179 -0
- package/dist/commands/form-nlist.js.map +1 -0
- package/dist/commands/form-serial-mark.d.ts +0 -15
- package/dist/commands/form-serial-mark.d.ts.map +1 -1
- package/dist/commands/form-serial-mark.js +604 -137
- package/dist/commands/form-serial-mark.js.map +1 -1
- package/dist/commands/form.d.ts.map +1 -1
- package/dist/commands/form.js +91 -0
- package/dist/commands/form.js.map +1 -1
- package/dist/commands/skill.d.ts +3 -0
- package/dist/commands/skill.d.ts.map +1 -0
- package/dist/commands/skill.js +112 -0
- package/dist/commands/skill.js.map +1 -0
- package/dist/commands/workflow-condition.d.ts.map +1 -1
- package/dist/commands/workflow-condition.js +3 -1
- package/dist/commands/workflow-condition.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +11 -7
- package/dist/commands/workflow.js.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/services/condition-rules.d.ts.map +1 -1
- package/dist/services/condition-rules.js +3 -1
- package/dist/services/condition-rules.js.map +1 -1
- package/dist/services/form-create.d.ts.map +1 -1
- package/dist/services/form-create.js +4 -1
- package/dist/services/form-create.js.map +1 -1
- package/dist/services/form-nlist.d.ts +42 -0
- package/dist/services/form-nlist.d.ts.map +1 -0
- package/dist/services/form-nlist.js +332 -0
- package/dist/services/form-nlist.js.map +1 -0
- package/dist/services/skill-provision.d.ts +18 -0
- package/dist/services/skill-provision.d.ts.map +1 -0
- package/dist/services/skill-provision.js +86 -0
- package/dist/services/skill-provision.js.map +1 -0
- package/dist/services/workflow-initiator.js +3 -3
- package/dist/services/workflow-initiator.js.map +1 -1
- package/package.json +4 -2
- package/skill-docs/SKILL.md +348 -0
- package/skill-docs/actionflows/references/components/calendar/MeetingCreate.md +17 -0
- package/skill-docs/actionflows/references/components/calendar/ScheduleCreate.md +17 -0
- package/skill-docs/actionflows/references/components/document/AttachmentCopy.md +17 -0
- package/skill-docs/actionflows/references/components/document/AttachmentMove.md +17 -0
- package/skill-docs/actionflows/references/components/document/DocumentCopy.md +17 -0
- package/skill-docs/actionflows/references/components/document/DocumentDelete.md +17 -0
- package/skill-docs/actionflows/references/components/document/DocumentEdit.md +17 -0
- package/skill-docs/actionflows/references/components/document/DocumentMove.md +17 -0
- package/skill-docs/actionflows/references/components/document/DocumentPermissionChange.md +17 -0
- package/skill-docs/actionflows/references/components/document/DocumentRenewal.md +17 -0
- package/skill-docs/actionflows/references/components/document/DocumentRevert.md +17 -0
- package/skill-docs/actionflows/references/components/document/DocumentSave.md +17 -0
- package/skill-docs/actionflows/references/components/document/DocumentSubscription.md +17 -0
- package/skill-docs/actionflows/references/components/document/DocumentSubscriptionApprove.md +17 -0
- package/skill-docs/actionflows/references/components/document/DocumentSubscriptionSendBack.md +17 -0
- package/skill-docs/actionflows/references/components/document/DocumentSubscriptionWithdraw.md +17 -0
- package/skill-docs/actionflows/references/components/document/FileFolderSave.md +17 -0
- package/skill-docs/actionflows/references/components/document/GetAttachmentInfo.md +17 -0
- package/skill-docs/actionflows/references/components/document/GetDocumentInfo.md +17 -0
- package/skill-docs/actionflows/references/components/document/ModifyDocumentStatus.md +17 -0
- package/skill-docs/actionflows/references/components/document/ReplaceAttachment.md +17 -0
- package/skill-docs/actionflows/references/components/document/UpdatePrintNum.md +17 -0
- package/skill-docs/actionflows/references/components/ebuilder/ActionEbAdd.md +39 -0
- package/skill-docs/actionflows/references/components/ebuilder/ActionEbDelete.md +21 -0
- package/skill-docs/actionflows/references/components/ebuilder/ActionEbRecover.md +17 -0
- package/skill-docs/actionflows/references/components/ebuilder/ActionEbSaveVersion.md +17 -0
- package/skill-docs/actionflows/references/components/ebuilder/ActionEbUpdate.md +21 -0
- package/skill-docs/actionflows/references/components/ebuilder/DateTrigger.md +17 -0
- package/skill-docs/actionflows/references/components/ebuilder/EbGetDataById.md +17 -0
- package/skill-docs/actionflows/references/components/ebuilder/EnquiryForm.md +75 -0
- package/skill-docs/actionflows/references/components/ebuilder/EventFormData.md +17 -0
- package/skill-docs/actionflows/references/components/ebuilder/TimeBatchTrigger.md +17 -0
- package/skill-docs/actionflows/references/components/logic/Condition.md +23 -0
- package/skill-docs/actionflows/references/components/logic/LogicFlowSet.md +17 -0
- package/skill-docs/actionflows/references/components/logic/MultipleExecution.md +38 -0
- package/skill-docs/actionflows/references/components/logic/Output.md +17 -0
- package/skill-docs/actionflows/references/components/message/SendMessage.md +17 -0
- package/skill-docs/actionflows/references/components/personnel/AlterPersonStatus.md +30 -0
- package/skill-docs/actionflows/references/components/personnel/HrmEmployeeUpdate.md +32 -0
- package/skill-docs/actionflows/references/components/personnel/PersonnelOnboarding.md +34 -0
- package/skill-docs/actionflows/references/components/trigger/SimpleScheduler.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveAddSign.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveAgreeRejectApply.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveCommit.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveCompletelyDelete.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveConsulTurnTodo.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveCreate.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveDelete.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveDoCirculate.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveDoForward.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveDoTurnTodo.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveEntrust.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveIntervention.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveMandatoryArchiving.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveManualCC.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveRefuseRejectApply.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveRejectApply.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveSave.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveSendBack.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveShareEntry.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveTrigger.md +49 -0
- package/skill-docs/actionflows/references/components/workflow/ApproveWithdraw.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/WorkFlowDocEmpowerment.md +17 -0
- package/skill-docs/actionflows/references/components/workflow/WorkflowToDoc.md +17 -0
- package/skill-docs/actionflows/references/condition_rules.md +97 -0
- package/skill-docs/actionflows/references/examples/enquiry-form-batch-insert-scene2.json +1046 -0
- package/skill-docs/actionflows/references/function_rules.md +13 -0
- package/skill-docs/actionflows/references/trigger_runtime_notes.md +51 -0
- package/skill-docs/assets/sample/.claude/settings.local.json +8 -0
- package/skill-docs/assets/sample/api/formApi.js +510 -0
- package/skill-docs/assets/sample/config/config.js +0 -0
- package/skill-docs/assets/sample/config/configLoad.js +0 -0
- package/skill-docs/assets/sample/config/configLoad_default.js +0 -0
- package/skill-docs/assets/sample/config/config_default.js +0 -0
- package/skill-docs/assets/sample/entry.js +22 -0
- package/skill-docs/assets/sample/eslint.config.cjs +48 -0
- package/skill-docs/assets/sample/memo.md +0 -0
- package/skill-docs/assets/sample/readme.js +8 -0
- package/skill-docs/references/auth/guide-auth.md +88 -0
- package/skill-docs/references/coding/guide-edit-backfill.md +189 -0
- package/skill-docs/references/coding/guide-form-crud.md +262 -0
- package/skill-docs/references/coding/guide-page-code.md +224 -0
- package/skill-docs/references/coding/guide-page-export.md +119 -0
- package/skill-docs/references/coding/ref-compile-rules.md +106 -0
- package/skill-docs/references/common/ref-cli-commands.md +286 -0
- package/skill-docs/references/components/@weapp-Button.md +104 -0
- package/skill-docs/references/components/base-Badge.md +100 -0
- package/skill-docs/references/components/base-Dialog.md +358 -0
- package/skill-docs/references/components/base-Empty.md +58 -0
- package/skill-docs/references/components/base-Tag.md +112 -0
- package/skill-docs/references/components/display-Alert.md +64 -0
- package/skill-docs/references/components/display-Avatar.md +150 -0
- package/skill-docs/references/components/display-Calendar.md +263 -0
- package/skill-docs/references/components/display-Carousel.md +115 -0
- package/skill-docs/references/components/display-Collapse.md +299 -0
- package/skill-docs/references/components/display-FilePreview.md +49 -0
- package/skill-docs/references/components/display-Icon.md +66 -0
- package/skill-docs/references/components/display-List.md +320 -0
- package/skill-docs/references/components/display-Pagination.md +41 -0
- package/skill-docs/references/components/display-Spin.md +34 -0
- package/skill-docs/references/components/display-Steps.md +89 -0
- package/skill-docs/references/components/display-Table.md +160 -0
- package/skill-docs/references/components/display-Title.md +117 -0
- package/skill-docs/references/components/form-Checkbox.md +161 -0
- package/skill-docs/references/components/form-DepartmentBrowser-api.md +52 -0
- package/skill-docs/references/components/form-EmployeeBrowser-api.md +51 -0
- package/skill-docs/references/components/form-EmployeeBrowser.md +51 -0
- package/skill-docs/references/components/form-Input.md +123 -0
- package/skill-docs/references/components/form-Radio.md +145 -0
- package/skill-docs/references/components/form-Select.md +191 -0
- package/skill-docs/references/components/form-Switch.md +46 -0
- package/skill-docs/references/components/form-Upload.md +53 -0
- package/skill-docs/references/components/generic-Echarts.md +102 -0
- package/skill-docs/references/form/guide-create-form.md +407 -0
- package/skill-docs/references/form/guide-ebuilder-filter.md +73 -0
- package/skill-docs/references/form/guide-ebuilder-scope.md +82 -0
- package/skill-docs/references/form/guide-form-data.md +48 -0
- package/skill-docs/references/form/guide-form-formula-functions.md +297 -0
- package/skill-docs/references/form/guide-form-linkage.md +185 -0
- package/skill-docs/references/form/guide-form-view-permission.md +38 -0
- package/skill-docs/references/form/guide-form-view.md +267 -0
- package/skill-docs/references/form/style-templates.md +44 -0
- package/skill-docs/references/hrm/guide-matrix.md +103 -0
- package/skill-docs/references/menu/system-menus.md +63 -0
- package/skill-docs/references/workflow/guide-workflow-action.md +168 -0
- package/skill-docs/references/workflow/guide-workflow-condition.md +405 -0
- package/skill-docs/references/workflow/guide-workflow.md +388 -0
- package/skill-docs/references/workflow/operator-matrix.md +74 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# 循环(MultipleExecution)
|
|
2
|
+
|
|
3
|
+
循环体通过 `actions` 提供,至少包含一个非 `Output` 动作,当前不支持循环嵌套。
|
|
4
|
+
|
|
5
|
+
## 循环方式
|
|
6
|
+
|
|
7
|
+
| `cycleMode` | 场景 | 必填参数 |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| `1` | 按指定次数 | `cycleTimes` |
|
|
10
|
+
| `2` | 满足条件时继续 | `condition` |
|
|
11
|
+
| `3` | 按列表逐条遍历 | `detailData` |
|
|
12
|
+
| `4` | 按列表分批遍历 | `batchDetailData`、`batchSizeData` |
|
|
13
|
+
| `5` | 存在下一页时继续 | `pageCycleData`(平台已有变量 FormulaBean) |
|
|
14
|
+
|
|
15
|
+
## 参数规则
|
|
16
|
+
|
|
17
|
+
- `cycleTimes`:固定整数 `1-1000`,或实时上下文的 `context/reference`。动态引用必须使用 `getComponentContext` 返回的完整 `paramKey`;预检会保留来源字段的真实类型、所属组件和参数路径。
|
|
18
|
+
- `detailData` / `batchDetailData`:只能引用真实 List/数组字段(表单明细、多选浏览框或上游动态列表)。不可用普通文本字段伪装为列表。
|
|
19
|
+
- `batchSizeData`:固定整数 `2-1000`。
|
|
20
|
+
- `condition`:使用 ESB `ConditionRule`,与动作流分支复用同一类规则树和 `saveCondition` 持久化;它不是 e-builder 表单动作的 `filterInput/ConditionSet`。左值可使用完整 `paramKey`、字段显示名、`paramName` 或真实字段 ID;编译器会按当前流程实时上下文回填真实 DTO。
|
|
21
|
+
- `pageCycleData`:设计器会创建布尔变量并在循环体首节点写入“是否存在下一页”。当前只接受已存在的原始 `type: "7"` 变量 FormulaBean;尚未自动创建变量及赋值节点时,不生成该模式。
|
|
22
|
+
|
|
23
|
+
## 示例
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"type": "MultipleExecution",
|
|
28
|
+
"params": {
|
|
29
|
+
"cycleMode": "3",
|
|
30
|
+
"detailData": {
|
|
31
|
+
"kind": "context",
|
|
32
|
+
"source": "event",
|
|
33
|
+
"paramKey": "<workflowId>.<arrayField>[]"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"actions": [{ "type": "SendMessage", "params": { "receiver": { "type": "all" }, "msgTitle": "逐条处理", "msgContent": "..." } }]
|
|
37
|
+
}
|
|
38
|
+
```
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# 发送消息(`SendMessage`)
|
|
2
|
+
|
|
3
|
+
## 何时使用
|
|
4
|
+
|
|
5
|
+
向人员、角色、全员或上游人员字段发送 IM 消息。
|
|
6
|
+
|
|
7
|
+
## 先查询
|
|
8
|
+
|
|
9
|
+
固定接收人查询当前租户人员;动态内容查询本次上下文。
|
|
10
|
+
|
|
11
|
+
## 不可猜测
|
|
12
|
+
|
|
13
|
+
标题和内容按需求选固定文本或 `parts` 模板;纯字符串保持固定值,只有 `parts` 模板才进入设计器的动态赋值。模板上下文只传 `paramKey` 和 `label`,由 CLI 按消息编辑器的动态片段结构编译。对定时批量、按日期字段、表单数据等 e-builder 记录触发器,未显式提供链接时 CLI 自动生成 PC/移动端详情链接:`formId` 为触发表单 ID 固定值,`dataId` 为上游“数据ID”动态上下文。显式 `pcLink` / `mobileLink` 会覆盖该默认行为。
|
|
14
|
+
|
|
15
|
+
## 最小计划
|
|
16
|
+
|
|
17
|
+
`receiver`、`msgTitle`、`msgContent`。
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# 人员状态变更
|
|
2
|
+
|
|
3
|
+
组件类型:`AlterPersonStatus`。先运行 `component-describe AlterPersonStatus`。
|
|
4
|
+
|
|
5
|
+
## 何时使用
|
|
6
|
+
|
|
7
|
+
用于把已有人员批量设为在职或离职。它只改变人员账号状态;不要用它修改人员资料、入职信息或人员类型。
|
|
8
|
+
|
|
9
|
+
## 生成前查询
|
|
10
|
+
|
|
11
|
+
使用 `recipient-search` 取得每一位目标人员和操作人的当前租户 Browser 原对象。
|
|
12
|
+
|
|
13
|
+
## 业务边界
|
|
14
|
+
|
|
15
|
+
- `personList` 是人员 Browser 原对象数组,`operators` 是单个人员 Browser 原对象;本组件设计器仅提供固定值,不能用上下文、系统变量或裸人员 ID。
|
|
16
|
+
- `userStatus` 仅为 `1`(在职)或 `2`(离职)。
|
|
17
|
+
- 变更离职状态会影响真实人员可用性;仅在用户明确要求时生成。
|
|
18
|
+
|
|
19
|
+
## 语义计划形状
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"type": "AlterPersonStatus",
|
|
24
|
+
"params": {
|
|
25
|
+
"personList": [{"id": "<真实人员ID>", "name": "<真实姓名>"}],
|
|
26
|
+
"userStatus": "2",
|
|
27
|
+
"operators": {"id": "<真实人员ID>", "name": "<真实姓名>"}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
```
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# 更新人员
|
|
2
|
+
|
|
3
|
+
组件类型:`HrmEmployeeUpdate`。先运行 `component-describe HrmEmployeeUpdate`。
|
|
4
|
+
|
|
5
|
+
## 何时使用
|
|
6
|
+
|
|
7
|
+
用于更新一个已有人员的资料。它不创建人员;需要新增人员时使用 `PersonnelOnboarding`。只变更在职/离职状态时使用 `AlterPersonStatus`。
|
|
8
|
+
|
|
9
|
+
## 生成前查询
|
|
10
|
+
|
|
11
|
+
1. 使用 `recipient-search` 分别取得操作人和待更新人员的当前租户 Browser 原对象。
|
|
12
|
+
2. 使用 `hrm-onboarding-fields '{}'` 取得当前租户人员字段定义。
|
|
13
|
+
|
|
14
|
+
## 业务边界
|
|
15
|
+
|
|
16
|
+
- `operators`、`person` 均为固定人员 Browser 原对象;本组件设计器不支持以动态上下文代替它们。
|
|
17
|
+
- plan 只传 `fieldAssignments`,CLI 基于实时定义生成平台 `setting`;不允许手写 DTO。
|
|
18
|
+
- Browser 字段必须匹配字段的真实选择器对象;字段名重名时必须传字段 ID。
|
|
19
|
+
- 至少提供一个待更新字段;字段、对象或必填约束无法解析时,停止生成。
|
|
20
|
+
|
|
21
|
+
## 语义计划形状
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"type": "HrmEmployeeUpdate",
|
|
26
|
+
"params": {
|
|
27
|
+
"operators": {"id": "<真实人员ID>", "name": "<真实姓名>"},
|
|
28
|
+
"person": {"id": "<真实人员ID>", "name": "<真实姓名>"},
|
|
29
|
+
"fieldAssignments": {"main": {"邮箱": "zhangsan@example.com"}}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# 人员入职
|
|
2
|
+
|
|
3
|
+
组件类型:`PersonnelOnboarding`。先运行 `component-describe PersonnelOnboarding`。
|
|
4
|
+
|
|
5
|
+
## 何时使用
|
|
6
|
+
|
|
7
|
+
用于新增人员到系统。它没有“目标人员”参数:人员由入职字段创建。若人员已经存在并只需改资料,改用 `HrmEmployeeUpdate`。
|
|
8
|
+
|
|
9
|
+
## 生成前查询
|
|
10
|
+
|
|
11
|
+
1. 使用 `recipient-search` 取得操作人的当前租户 Browser 原对象。
|
|
12
|
+
2. 使用 `hrm-onboarding-fields '{}'` 取得当前租户人员主表、明细、字段类型和必填项。
|
|
13
|
+
|
|
14
|
+
## 业务边界
|
|
15
|
+
|
|
16
|
+
- plan 传 `fieldAssignments`,CLI 根据实时字段定义生成平台 `setting`;不允许手写 `setting` / `EsbFormDataDto`。
|
|
17
|
+
- 字段可用显示名或字段 ID。当前租户出现同名字段时必须使用字段 ID。
|
|
18
|
+
- Browser 字段(部门、岗位、上级等)只接受其对应选择器返回的真实对象,不能把名称或 ID 当文本填入。
|
|
19
|
+
- 未提供当前租户必填字段、或字段/取值无法解析时,停止生成并报告缺项。
|
|
20
|
+
|
|
21
|
+
## 语义计划形状
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"type": "PersonnelOnboarding",
|
|
26
|
+
"params": {
|
|
27
|
+
"operators": {"id": "<真实人员ID>", "name": "<真实姓名>"},
|
|
28
|
+
"fieldAssignments": {
|
|
29
|
+
"main": {"姓名": "张三", "部门": {"id": "<真实部门ID>", "name": "研发部"}},
|
|
30
|
+
"detail": [{"table": "教育经历", "fields": {"学校名称": "某大学"}}]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
```
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# 委托流程(`ApproveEntrust`)
|
|
2
|
+
|
|
3
|
+
## 何时使用
|
|
4
|
+
|
|
5
|
+
将某人的流程委托给另一人代办。
|
|
6
|
+
|
|
7
|
+
## 先查询
|
|
8
|
+
|
|
9
|
+
查询操作人、委托人、受托人,并由预检读取该委托人的真实可用身份。
|
|
10
|
+
|
|
11
|
+
## 不可猜测
|
|
12
|
+
|
|
13
|
+
`identityId` 必须由当前租户返回;不能根据名称推断身份或范围。
|
|
14
|
+
|
|
15
|
+
## 最小计划
|
|
16
|
+
|
|
17
|
+
`operator`、`entrustUser`、`consignee`、`identityId`、`entrustType`。
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# 干预流程(`ApproveIntervention`)
|
|
2
|
+
|
|
3
|
+
## 何时使用
|
|
4
|
+
|
|
5
|
+
将流程干预流转到指定节点并指定处理人。
|
|
6
|
+
|
|
7
|
+
## 先查询
|
|
8
|
+
|
|
9
|
+
查询真实流程、节点、实例、操作人和节点处理人。
|
|
10
|
+
|
|
11
|
+
## 不可猜测
|
|
12
|
+
|
|
13
|
+
`workflowId`、`submitToNodeId`、处理人均必须是当前租户 Browser 对象。
|
|
14
|
+
|
|
15
|
+
## 最小计划
|
|
16
|
+
|
|
17
|
+
`workflowId`、`submitToNodeId`、`requestId`、`employeeId`、`interventionReceiverIds`。
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# 流程触发(`ApproveTrigger`)
|
|
2
|
+
|
|
3
|
+
## 何时使用
|
|
4
|
+
|
|
5
|
+
由流程提交、审批、结束等时机触发动作流。
|
|
6
|
+
|
|
7
|
+
## 先查询
|
|
8
|
+
|
|
9
|
+
查询真实流程、节点和当前时机的 `workflow-context-fields`。
|
|
10
|
+
|
|
11
|
+
## 不可猜测
|
|
12
|
+
|
|
13
|
+
后续动态引用只使用本次返回的 `paramKey`;多流程触发按组件契约提供真实列表。
|
|
14
|
+
|
|
15
|
+
## 最小计划
|
|
16
|
+
|
|
17
|
+
`workflowPath`、`triggerTiming`;节点型时机提供真实 `approveNode`,出口型时机提供真实 `approveLink`。
|
|
18
|
+
|
|
19
|
+
## 触发时机
|
|
20
|
+
|
|
21
|
+
plan 统一使用:`arrive`(节点前/到达)、`submitted`(流程提交)、`approve_passed`(审批通过)、`workflow_completed`(流程结束)、`leave`、`link`、`delete`、`save`、`revert`、`pause`、`cancel`。中文界面名称可输入,CLI 会归一为上述值后再查询并校验对应的真实流程节点;不能按“第一个节点”猜测时机。
|
|
22
|
+
|
|
23
|
+
## 类型联动:可选节点/出口与执行时间
|
|
24
|
+
|
|
25
|
+
| `triggerTiming` | 可选对象 | `nodeTime` |
|
|
26
|
+
|---|---|---|
|
|
27
|
+
| `submitted` | 仅发起节点(nodeType=0) | 仅正向到达(1) |
|
|
28
|
+
| `approve_passed` | 审批/中间节点(1/2/5) | 不使用 |
|
|
29
|
+
| `workflow_completed` | 仅结束节点(3) | 仅正向到达(1) |
|
|
30
|
+
| `arrive` | 当前流程真实节点(0/1/2/3/5) | 结束节点可选 1/2/3/4/5/6;其他节点 1/2/3/4/6 |
|
|
31
|
+
| `leave` | 当前流程真实节点(0/1/2/3/5) | 1/2/3/6 |
|
|
32
|
+
| `link` | 仅当前流程真实出口 `approveLink` | 不使用 |
|
|
33
|
+
| `pause` | 发起/审批/中间节点(0/1/2/5) | 1/2 |
|
|
34
|
+
| `cancel` | 当前流程真实节点(0/1/2/3/5) | 1/2 |
|
|
35
|
+
| `delete` / `save` / `revert` | 当前流程真实节点(0/1/2/3/5) | 不使用 |
|
|
36
|
+
|
|
37
|
+
出口不能使用 `approveNode`,也不自动选择“第一条出口”;需求未指定出口时必须先查并追问。
|
|
38
|
+
|
|
39
|
+
## 执行时间(节点前 / 节点后)
|
|
40
|
+
|
|
41
|
+
节点型触发可传 `nodeTime`,其值和设计器下拉框一致:`1` 正向流转到达、`2` 返回到达、`3` 强制收回到达、`4` 撤回到达、`5` 强制结束到达、`6` 干预到达。
|
|
42
|
+
|
|
43
|
+
例如,要在某节点**返回到达**时触发,使用真实节点和 `nodeTime:"2"`:
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{"workflowPath":{"id":"<流程ID>","name":"<流程名>"},"triggerTiming":"arrive","approveNode":{"id":"<真实节点ID>","nodeType":1},"nodeTime":"2"}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
`revert` 是“流程还原时”,与节点执行时间中的“返回到达”不是同一事件。
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# 流程存为文档(`WorkflowToDoc`)
|
|
2
|
+
|
|
3
|
+
## 何时使用
|
|
4
|
+
|
|
5
|
+
将流程内容作为附件形式存入文档。
|
|
6
|
+
|
|
7
|
+
## 先查询
|
|
8
|
+
|
|
9
|
+
查询流程、实例、操作人和平台返回的存文档设置。
|
|
10
|
+
|
|
11
|
+
## 不可猜测
|
|
12
|
+
|
|
13
|
+
固定目录必须是 `saveDirectoryBrowserValue` 的真实目录对象;设置为空时拒绝生成。
|
|
14
|
+
|
|
15
|
+
## 最小计划
|
|
16
|
+
|
|
17
|
+
`workflowPath`、`requestId`、`operator`、`toDocSettings`。
|