@steedos/standard-process-approval 2.2.55-beta.16

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.
Files changed (61) hide show
  1. package/main/default/applications/.gitkeep +0 -0
  2. package/main/default/applications/process_automation.app.yml +49 -0
  3. package/main/default/client/action_field_updates.client.js +155 -0
  4. package/main/default/client/core.client.js +134 -0
  5. package/main/default/client/process.client.js +211 -0
  6. package/main/default/client/process_node.client.js +36 -0
  7. package/main/default/client/workflow_notifications.client.js +74 -0
  8. package/main/default/objectTranslations/action_field_updates.en/action_field_updates.en.objectTranslation.yml +69 -0
  9. package/main/default/objectTranslations/action_field_updates.zh-CN/action_field_updates.zh-CN.objectTranslation.yml +72 -0
  10. package/main/default/objectTranslations/process_definition.en/process_definition.en.objectTranslation.yml +150 -0
  11. package/main/default/objectTranslations/process_definition.zh-CN/process_definition.zh-CN.objectTranslation.yml +145 -0
  12. package/main/default/objectTranslations/process_flows.en/process_flows.en.objectTranslation.yml +41 -0
  13. package/main/default/objectTranslations/process_flows.zh-CN/process_flows.zh-CN.objectTranslation.yml +41 -0
  14. package/main/default/objectTranslations/process_flows_criteria.en/process_flows_criteria.en.objectTranslation.yml +38 -0
  15. package/main/default/objectTranslations/process_flows_criteria.zh-CN/process_flows_criteria.zh-CN.objectTranslation.yml +38 -0
  16. package/main/default/objectTranslations/process_flows_criteria_action.en/process_flows_criteria_action.en.objectTranslation.yml +47 -0
  17. package/main/default/objectTranslations/process_flows_criteria_action.zh-CN/process_flows_criteria_action.zh-CN.objectTranslation.yml +47 -0
  18. package/main/default/objectTranslations/process_instance.en/process_instance.en.objectTranslation.yml +63 -0
  19. package/main/default/objectTranslations/process_instance.zh-CN/process_instance.zh-CN.objectTranslation.yml +63 -0
  20. package/main/default/objectTranslations/process_instance_history.en/process_instance_history.en.objectTranslation.yml +109 -0
  21. package/main/default/objectTranslations/process_instance_history.zh-CN/process_instance_history.zh-CN.objectTranslation.yml +109 -0
  22. package/main/default/objectTranslations/process_instance_node.en/process_instance_node.en.objectTranslation.yml +59 -0
  23. package/main/default/objectTranslations/process_instance_node.zh-CN/process_instance_node.zh-CN.objectTranslation.yml +59 -0
  24. package/main/default/objectTranslations/process_node.en/process_node.en.objectTranslation.yml +120 -0
  25. package/main/default/objectTranslations/process_node.zh-CN/process_node.zh-CN.objectTranslation.yml +116 -0
  26. package/main/default/objectTranslations/workflow_notifications.en/workflow_notifications.en.objectTranslation.yml +41 -0
  27. package/main/default/objectTranslations/workflow_notifications.zh-CN/workflow_notifications.zh-CN.objectTranslation.yml +44 -0
  28. package/main/default/objectTranslations/workflow_rule.en/workflow_rule.en.objectTranslation.yml +53 -0
  29. package/main/default/objectTranslations/workflow_rule.zh-CN/workflow_rule.zh-CN.objectTranslation.yml +60 -0
  30. package/main/default/objects/process/approval/process_definition.action.js +65 -0
  31. package/main/default/objects/process/approval/process_definition.function.js +39 -0
  32. package/main/default/objects/process/approval/process_definition.object.yml +313 -0
  33. package/main/default/objects/process/approval/process_node.object.yml +267 -0
  34. package/main/default/objects/process/flows/process_flows.object.yml +48 -0
  35. package/main/default/objects/process/flows/process_flows_criteria.object.yml +46 -0
  36. package/main/default/objects/process/flows/process_flows_criteria_action.object.yml +56 -0
  37. package/main/default/objects/process/process_instance/process_instance.object.yml +65 -0
  38. package/main/default/objects/process/process_instance/process_instance_history.action.js +26 -0
  39. package/main/default/objects/process/process_instance/process_instance_history.object.yml +153 -0
  40. package/main/default/objects/process/process_instance/process_instance_node.object.yml +59 -0
  41. package/main/default/objects/workflow-actions/action_field_updates.action.js +33 -0
  42. package/main/default/objects/workflow-actions/action_field_updates.object.yml +197 -0
  43. package/main/default/objects/workflow-actions/workflow_notifications.action.js +33 -0
  44. package/main/default/objects/workflow-actions/workflow_notifications.object.yml +107 -0
  45. package/main/default/objects/workflow-actions/workflow_rule.action.js +33 -0
  46. package/main/default/objects/workflow-actions/workflow_rule.object.yml +112 -0
  47. package/main/default/permissionsets/.gitkeep +0 -0
  48. package/main/default/profiles/.gitkeep +0 -0
  49. package/main/default/tabs/.gitkeep +0 -0
  50. package/main/default/triggers/.gitkeep +0 -0
  51. package/main/default/triggers/action_field_updates.trigger.js +175 -0
  52. package/main/default/triggers/process_definition.trigger.js +132 -0
  53. package/main/default/triggers/process_instance_history.trigger.js +42 -0
  54. package/main/default/triggers/process_node.trigger.js +232 -0
  55. package/main/default/triggers/workflow_notifications.trigger.js +236 -0
  56. package/main/default/triggers/workflow_rule.trigger.js +96 -0
  57. package/package.json +16 -0
  58. package/package.service.js +75 -0
  59. package/public/.md +3 -0
  60. package/src/.md +3 -0
  61. package/webapp/.md +1 -0
@@ -0,0 +1,63 @@
1
+ name: process_instance
2
+ label: process_instance
3
+ description:
4
+ fields:
5
+ name:
6
+ label:
7
+ help:
8
+ description:
9
+ process_definition:
10
+ label:
11
+ help:
12
+ description:
13
+ target_object:
14
+ label:
15
+ help:
16
+ description:
17
+ status:
18
+ label:
19
+ help:
20
+ options:
21
+ - label: approved
22
+ value: approved
23
+ - label: fault
24
+ value: fault
25
+ - label: held
26
+ value: held
27
+ - label: no_response
28
+ value: no_response
29
+ - label: pending
30
+ value: pending
31
+ - label: reassigned
32
+ value: reassigned
33
+ - label: rejected
34
+ value: rejected
35
+ - label: removed
36
+ value: removed
37
+ - label: started
38
+ value: started
39
+ description:
40
+ completed_date:
41
+ label: Completed Date
42
+ help:
43
+ description:
44
+ last_actor:
45
+ label:
46
+ help:
47
+ description:
48
+ submitted_by:
49
+ label:
50
+ help:
51
+ description:
52
+ elapsed_time_in_days:
53
+ label:
54
+ help:
55
+ description:
56
+ elapsed_time_in_hours:
57
+ label:
58
+ help:
59
+ description:
60
+ elapsed_time_in_minutes:
61
+ label:
62
+ help:
63
+ description:
@@ -0,0 +1,63 @@
1
+ name: process_instance
2
+ label: process_instance
3
+ description:
4
+ fields:
5
+ name:
6
+ label:
7
+ help:
8
+ description:
9
+ process_definition:
10
+ label:
11
+ help:
12
+ description:
13
+ target_object:
14
+ label:
15
+ help:
16
+ description:
17
+ status:
18
+ label:
19
+ help:
20
+ options:
21
+ - label: approved
22
+ value: approved
23
+ - label: fault
24
+ value: fault
25
+ - label: held
26
+ value: held
27
+ - label: no_response
28
+ value: no_response
29
+ - label: pending
30
+ value: pending
31
+ - label: reassigned
32
+ value: reassigned
33
+ - label: rejected
34
+ value: rejected
35
+ - label: removed
36
+ value: removed
37
+ - label: started
38
+ value: started
39
+ description:
40
+ completed_date:
41
+ label: Completed Date
42
+ help:
43
+ description:
44
+ last_actor:
45
+ label:
46
+ help:
47
+ description:
48
+ submitted_by:
49
+ label:
50
+ help:
51
+ description:
52
+ elapsed_time_in_days:
53
+ label:
54
+ help:
55
+ description:
56
+ elapsed_time_in_hours:
57
+ label:
58
+ help:
59
+ description:
60
+ elapsed_time_in_minutes:
61
+ label:
62
+ help:
63
+ description:
@@ -0,0 +1,109 @@
1
+ name: process_instance_history
2
+ label: Approval History
3
+ description:
4
+ fields:
5
+ name:
6
+ label: Step Name
7
+ help:
8
+ description:
9
+ created_by:
10
+ label: Submitter
11
+ help:
12
+ description:
13
+ process_instance:
14
+ label:
15
+ help:
16
+ description:
17
+ process_instance_node:
18
+ label:
19
+ help:
20
+ description:
21
+ step_status:
22
+ label: Status
23
+ help:
24
+ options:
25
+ - label: Approved
26
+ value: approved
27
+ - label: Fault
28
+ value: fault
29
+ - label: Held
30
+ value: held
31
+ - label: No Response
32
+ value: no_response
33
+ - label: Pending
34
+ value: pending
35
+ - label: Reassigned
36
+ value: reassigned
37
+ - label: Rejected
38
+ value: rejected
39
+ - label: Recalled
40
+ value: removed
41
+ - label: Submitted
42
+ value: started
43
+ description:
44
+ original_actor:
45
+ label: Assigned To
46
+ help:
47
+ description:
48
+ actor:
49
+ label: Actual Approver
50
+ help:
51
+ description:
52
+ target_object:
53
+ label: Approval Details
54
+ help:
55
+ description:
56
+ comments:
57
+ label: Comments
58
+ help:
59
+ description:
60
+ step_node:
61
+ label:
62
+ help:
63
+ description:
64
+ elapsed_time_in_days:
65
+ label:
66
+ help:
67
+ description:
68
+ elapsed_time_in_hours:
69
+ label:
70
+ help:
71
+ description:
72
+ elapsed_time_in_minutes:
73
+ label:
74
+ help:
75
+ description:
76
+ modified:
77
+ label:
78
+ help:
79
+ description:
80
+ modified_by:
81
+ label:
82
+ help:
83
+ description:
84
+ listviews:
85
+ all:
86
+ label: All
87
+ actions:
88
+ approve:
89
+ label: Approve
90
+ reject:
91
+ label: Reject
92
+ reassign:
93
+ label: Reassign
94
+ recall:
95
+ label: Recall
96
+ CustomLabels:
97
+ process_instance_history_action_approve: Approve
98
+ process_instance_history_action_reassign: Reassign
99
+ process_instance_history_action_reject: Reject
100
+ process_instance_history_action_recall: Recall
101
+ process_instance_history_field_step_status_options_started: Submitted
102
+ process_instance_history_field_step_status_options_pending: Pending
103
+ process_instance_history_field_step_status_options_no_response: No Response
104
+ process_instance_history_field_step_status_options_approved: Approved
105
+ process_instance_history_field_step_status_options_rejected: Rejected
106
+ process_instance_history_field_step_status_options_reassigned: Reassigned
107
+ process_instance_history_field_step_status_options_removed: Recalled
108
+ process_instance_history_field_step_status_options_fault: Fault
109
+ process_instance_history_field_step_status_options_held: Held
@@ -0,0 +1,109 @@
1
+ name: process_instance_history
2
+ label: 批准历史
3
+ description:
4
+ fields:
5
+ name:
6
+ label: 步骤名称
7
+ help:
8
+ description:
9
+ created_by:
10
+ label: 提交人
11
+ help:
12
+ description:
13
+ process_instance:
14
+ label:
15
+ help:
16
+ description:
17
+ process_instance_node:
18
+ label:
19
+ help:
20
+ description:
21
+ step_status:
22
+ label: 状态
23
+ help:
24
+ options:
25
+ - label: 已批准
26
+ value: approved
27
+ - label: Fault
28
+ value: fault
29
+ - label: Held
30
+ value: held
31
+ - label: 无响应
32
+ value: no_response
33
+ - label: 待处理
34
+ value: pending
35
+ - label: 已转签核
36
+ value: reassigned
37
+ - label: 已拒绝
38
+ value: rejected
39
+ - label: 已取消申请
40
+ value: removed
41
+ - label: 已提交
42
+ value: started
43
+ description:
44
+ original_actor:
45
+ label: 被分配人
46
+ help:
47
+ description:
48
+ actor:
49
+ label: 实际审批人
50
+ help:
51
+ description:
52
+ target_object:
53
+ label: 审批细节
54
+ help:
55
+ description:
56
+ comments:
57
+ label: 意见
58
+ help:
59
+ description:
60
+ step_node:
61
+ label:
62
+ help:
63
+ description:
64
+ elapsed_time_in_days:
65
+ label:
66
+ help:
67
+ description:
68
+ elapsed_time_in_hours:
69
+ label:
70
+ help:
71
+ description:
72
+ elapsed_time_in_minutes:
73
+ label:
74
+ help:
75
+ description:
76
+ modified:
77
+ label: 修改时间
78
+ help:
79
+ description:
80
+ modified_by:
81
+ label: 修改人
82
+ help:
83
+ description:
84
+ listviews:
85
+ all:
86
+ label: 所有
87
+ actions:
88
+ approve:
89
+ label: 批准
90
+ reject:
91
+ label: 拒绝
92
+ reassign:
93
+ label: 转签核
94
+ recall:
95
+ label: 取消申请
96
+ CustomLabels:
97
+ process_instance_history_action_approve: 批准
98
+ process_instance_history_action_reassign: 转签核
99
+ process_instance_history_action_reject: 拒绝
100
+ process_instance_history_action_recall: 取消申请
101
+ process_instance_history_field_step_status_options_started: 已提交
102
+ process_instance_history_field_step_status_options_pending: 待处理
103
+ process_instance_history_field_step_status_options_no_response: 无响应
104
+ process_instance_history_field_step_status_options_approved: 已批准
105
+ process_instance_history_field_step_status_options_rejected: 已拒绝
106
+ process_instance_history_field_step_status_options_reassigned: 已转签核
107
+ process_instance_history_field_step_status_options_removed: 已取消申请
108
+ process_instance_history_field_step_status_options_fault: Fault
109
+ process_instance_history_field_step_status_options_held: Held
@@ -0,0 +1,59 @@
1
+ name: process_instance_node
2
+ label: process_instance_node
3
+ description:
4
+ fields:
5
+ process_node_name:
6
+ label:
7
+ help:
8
+ description:
9
+ process_instance:
10
+ label:
11
+ help:
12
+ description:
13
+ process_node:
14
+ label:
15
+ help:
16
+ description:
17
+ node_status:
18
+ label:
19
+ help:
20
+ options:
21
+ - label: approved
22
+ value: approved
23
+ - label: fault
24
+ value: fault
25
+ - label: held
26
+ value: held
27
+ - label: no_response
28
+ value: no_response
29
+ - label: pending
30
+ value: pending
31
+ - label: reassigned
32
+ value: reassigned
33
+ - label: rejected
34
+ value: rejected
35
+ - label: removed
36
+ value: removed
37
+ - label: started
38
+ value: started
39
+ description:
40
+ completed_date:
41
+ label: Completed Date
42
+ help:
43
+ description:
44
+ last_actorId:
45
+ label:
46
+ help:
47
+ description:
48
+ elapsed_time_in_days:
49
+ label:
50
+ help:
51
+ description:
52
+ elapsed_time_in_hours:
53
+ label:
54
+ help:
55
+ description:
56
+ elapsed_time_in_minutes:
57
+ label:
58
+ help:
59
+ description:
@@ -0,0 +1,59 @@
1
+ name: process_instance_node
2
+ label: process_instance_node
3
+ description:
4
+ fields:
5
+ process_node_name:
6
+ label:
7
+ help:
8
+ description:
9
+ process_instance:
10
+ label:
11
+ help:
12
+ description:
13
+ process_node:
14
+ label:
15
+ help:
16
+ description:
17
+ node_status:
18
+ label:
19
+ help:
20
+ options:
21
+ - label: approved
22
+ value: approved
23
+ - label: fault
24
+ value: fault
25
+ - label: held
26
+ value: held
27
+ - label: no_response
28
+ value: no_response
29
+ - label: pending
30
+ value: pending
31
+ - label: reassigned
32
+ value: reassigned
33
+ - label: rejected
34
+ value: rejected
35
+ - label: removed
36
+ value: removed
37
+ - label: started
38
+ value: started
39
+ description:
40
+ completed_date:
41
+ label: Completed Date
42
+ help:
43
+ description:
44
+ last_actorId:
45
+ label:
46
+ help:
47
+ description:
48
+ elapsed_time_in_days:
49
+ label:
50
+ help:
51
+ description:
52
+ elapsed_time_in_hours:
53
+ label:
54
+ help:
55
+ description:
56
+ elapsed_time_in_minutes:
57
+ label:
58
+ help:
59
+ description:
@@ -0,0 +1,120 @@
1
+ name: process_node
2
+ label: Approval Steps
3
+ description:
4
+ fields:
5
+ name:
6
+ label:
7
+ help:
8
+ description:
9
+ label:
10
+ label:
11
+ help:
12
+ description:
13
+ order:
14
+ label:
15
+ help:
16
+ description:
17
+ description:
18
+ label: Description
19
+ help:
20
+ description:
21
+ process_definition:
22
+ label:
23
+ help:
24
+ description:
25
+ filtrad:
26
+ label: All records should enter this step
27
+ help:
28
+ description:
29
+ entry_criteria:
30
+ label: Entry criteria
31
+ help:
32
+ description:
33
+ if_criteria_not_met:
34
+ label:
35
+ help:
36
+ options:
37
+ - label: approve
38
+ value: approve
39
+ - label: reject
40
+ value: reject
41
+ - label: skip
42
+ value: skip
43
+ description:
44
+ approver:
45
+ label: Select Approver
46
+ help:
47
+ options:
48
+ - label: Let the submitter choose the approver manually
49
+ value: submitter_choose
50
+ - label: Automatically assign to approver(s)
51
+ value: auto_assign
52
+ description:
53
+ assigned_approver_users:
54
+ label:
55
+ help:
56
+ description:
57
+ assigned_approver_roles:
58
+ label:
59
+ help:
60
+ description:
61
+ assigned_approver_flow_roles:
62
+ label:
63
+ help:
64
+ description:
65
+ assigned_approver_user_field:
66
+ label:
67
+ help:
68
+ description:
69
+ when_multiple_approvers:
70
+ label: When multiple approvers are selected
71
+ help:
72
+ options:
73
+ - label: Approve or reject based on the FIRST response.
74
+ value: first_response
75
+ - label: Require UNANIMOUS approval from all selected approvers.
76
+ value: unanimous
77
+ description:
78
+ reject_behavior:
79
+ label: Reject Behavior
80
+ help: What should happen if the approver rejects this request?
81
+ options:
82
+ - label: >-
83
+ Perform all rejection actions for this step AND all final rejection
84
+ actions. (Final Rejection)
85
+ value: reject_request
86
+ - label: >-
87
+ Perform ONLY the rejection actions for this step and send the approval
88
+ request back to the most recent approver. (Go Back 1 Step)
89
+ value: back_to_previous
90
+ description:
91
+ approval_updates_field_actions:
92
+ label: Field Update
93
+ help:
94
+ description:
95
+ approval_workflow_notifications_actions:
96
+ label: Workflow Notification
97
+ help:
98
+ description:
99
+ rejection_updates_field_actions:
100
+ label: Field Update
101
+ help:
102
+ description:
103
+ rejection_workflow_notifications_actions:
104
+ label: Workflow Notification
105
+ help:
106
+ description:
107
+ groups:
108
+ specify_step_criteria: Specify Step Criteria
109
+ select_assigned_approver: Select Assigned Approver
110
+ approval_actions: Approval Actions
111
+ rejection_actions: Rejection Actions
112
+ listviews:
113
+ all:
114
+ label: All
115
+ CustomLabels:
116
+ process_node_field_approver_options_auto_queue:
117
+ process_node_field_approver_options_role:
118
+ process_node_field_auto_approver:
119
+ process_node_field_auto_approver_$_type:
120
+ process_node_field_auto_approver_$_value:
@@ -0,0 +1,116 @@
1
+ name: process_node
2
+ label: 批准步骤
3
+ description:
4
+ fields:
5
+ name:
6
+ label: API 名称
7
+ help:
8
+ description:
9
+ label:
10
+ label: 显示名称
11
+ help:
12
+ description:
13
+ order:
14
+ label: 序号
15
+ help:
16
+ description:
17
+ description:
18
+ label: 描述
19
+ help:
20
+ description:
21
+ process_definition:
22
+ label: 批准过程
23
+ help:
24
+ description:
25
+ filtrad:
26
+ label: 所有记录都应进入此步骤
27
+ help:
28
+ description:
29
+ entry_criteria:
30
+ label: 如果满足以下条件,则进入此步骤
31
+ help:
32
+ description:
33
+ if_criteria_not_met:
34
+ label: 如果不满足条件,则
35
+ help:
36
+ options:
37
+ - label: 批准记录
38
+ value: approve
39
+ - label: 拒绝记录
40
+ value: reject
41
+ - label: 转到下一步
42
+ value: skip
43
+ description:
44
+ approver:
45
+ label: 选择批准人
46
+ help:
47
+ options:
48
+ - label: 允许提交人手动选择批准人。
49
+ value: submitter_choose
50
+ - label: 自动分配至批准人。
51
+ value: auto_assign
52
+ description:
53
+ assigned_approver_users:
54
+ label: 指定用户处理
55
+ help:
56
+ description:
57
+ assigned_approver_roles:
58
+ label: 指定审批角色
59
+ help:
60
+ description:
61
+ assigned_approver_flow_roles:
62
+ label: 指定审批岗位
63
+ help:
64
+ description:
65
+ assigned_approver_user_field:
66
+ label: 指定相关用户字段
67
+ help:
68
+ description:
69
+ when_multiple_approvers:
70
+ label: 当选择多个批准人时
71
+ help:
72
+ options:
73
+ - label: 基于 首次 回复的批准或拒绝
74
+ value: first_response
75
+ - label: 要求所有选定批准人的 一致 批准
76
+ value: unanimous
77
+ description:
78
+ reject_behavior:
79
+ label: 拒绝行为
80
+ help: 如果批准人拒绝此请求会怎样?
81
+ options:
82
+ - label: 执行此步骤的所有拒绝操作和所有最终拒绝操作。(最终拒绝)
83
+ value: reject_request
84
+ - label: 只执行此步骤的拒绝操作并将批准请求发回到最近的批准人。(返回 1 步)
85
+ value: back_to_previous
86
+ description:
87
+ approval_updates_field_actions:
88
+ label: 字段更新
89
+ help:
90
+ description:
91
+ approval_workflow_notifications_actions:
92
+ label: 工作流通知
93
+ help:
94
+ description:
95
+ rejection_updates_field_actions:
96
+ label: 字段更新
97
+ help:
98
+ description:
99
+ rejection_workflow_notifications_actions:
100
+ label: 工作流通知
101
+ help:
102
+ description:
103
+ groups:
104
+ specify_step_criteria: 指定步骤条件
105
+ select_assigned_approver: 选择分配的批准人
106
+ approval_actions: 批准操作
107
+ rejection_actions: 拒绝操作
108
+ listviews:
109
+ all:
110
+ label: 所有
111
+ CustomLabels:
112
+ process_node_field_approver_options_auto_queue: 自动分配至队列。
113
+ process_node_field_approver_options_role: 使用之前选择的用户字段自动分配
114
+ process_node_field_auto_approver: 自动分配至批准人
115
+ process_node_field_auto_approver_$_type: 类型
116
+ process_node_field_auto_approver_$_value: 值