@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,69 @@
1
+ name: action_field_updates
2
+ label: Field Updates
3
+ description:
4
+ fields:
5
+ name:
6
+ label:
7
+ help:
8
+ description:
9
+ label:
10
+ label:
11
+ help:
12
+ description:
13
+ object_name:
14
+ label: Object Name
15
+ help:
16
+ description:
17
+ target_object:
18
+ label: Object to Update
19
+ help:
20
+ description:
21
+ field_name:
22
+ label: Field to Update
23
+ help:
24
+ description:
25
+ operation:
26
+ label:
27
+ help:
28
+ description:
29
+ formula:
30
+ label:
31
+ help:
32
+ description:
33
+ literal_value:
34
+ label: Literal value
35
+ help:
36
+ description:
37
+ notify_assignee:
38
+ label: 通知被分配人(仅修改拥有者时由此选项)
39
+ help:
40
+ description:
41
+ description:
42
+ label: Description
43
+ help:
44
+ description:
45
+ reevaluate_on_change:
46
+ label: Re-evaluate Workflow Rules after Field Change
47
+ help: If this field update changes the field's value, all workflow rules on the associated object are re-evaluated. Any workflow rules whose criteria are met as a result of the field update will be triggered.
48
+ description: This check box only identifies whether or not the workflow rules for the object with which the field update is associated are reevaluated. For field updates across objects, these workflow rules are never reevaluated, and all workflow rules for the object to which they are to be updated are always reevaluated.
49
+ listviews:
50
+ all:
51
+ label: All
52
+ CustomLabels:
53
+ action_field_updates_field_operation_options_null: A blank value (null)
54
+ action_field_updates_field_operation_options_formula: Use a formula to set the new value
55
+ action_field_updates_field_operation_options_literal: A specific value
56
+ action_field_updates_field_field_new_value:
57
+ action_field_updates_field_process_definition:
58
+ action_field_updates_field_process_node:
59
+ action_field_updates_field_when:
60
+ action_field_updates_field_when_options_final_approval:
61
+ action_field_updates_field_when_options_final_rejection:
62
+ action_field_updates_field_when_options_recall:
63
+ action_field_updates_field_when_options_rejection:
64
+ action_field_updates_field_when_options_approval:
65
+ action_field_updates_field_when_options_initial_submission:
66
+ action_field_updates_field__error_reevaluate_parent: Re-evaluate Workflow Rules after Field Change cannot be specified for a parent field update.
67
+ action_field_updates_field__error_process_node_process_definition_required: Please select "Approval Process" for this Approval Step and then create "Field Update"!
68
+ action_field_updates_field__error_process_definition_object_required: Please select "Object" for this Approval Process and then create "Field Update"!
69
+ action_field_updates_field__error_workflow_rule_object_required: Please select "Object" for this Workflow Rule and then create "Field Update"!
@@ -0,0 +1,72 @@
1
+ name: action_field_updates
2
+ label: 字段更新
3
+ description:
4
+ fields:
5
+ name:
6
+ label: API 名称
7
+ help:
8
+ description:
9
+ label:
10
+ label: 显示名称
11
+ help:
12
+ description:
13
+ object_name:
14
+ label: 对象
15
+ help:
16
+ description:
17
+ target_object:
18
+ label: 要更新的对象
19
+ help:
20
+ description: 如果要更新的是本对象,则这里保存的是对象名称;如果是跨对象的字段更新,零代码配置界面上这里给用户看到的选项会是要更新的对象的显示名称(label),但是实际保存的却是关联字段名,低代码配置时应该配置为关联字段名而不是要更新的对象名。
21
+ field_name:
22
+ label: 要更新的字段
23
+ help:
24
+ description:
25
+ operation:
26
+ label: 新字段值类型
27
+ help:
28
+ description:
29
+ formula:
30
+ label: 公式
31
+ help:
32
+ description:
33
+ literal_value:
34
+ label: 指定新字段值
35
+ help:
36
+ description:
37
+ notify_assignee:
38
+ label: 通知被分配人(仅修改拥有者时由此选项)
39
+ help:
40
+ description:
41
+ description:
42
+ label: 描述
43
+ help:
44
+ description:
45
+ reevaluate_on_change:
46
+ label: 字段更改后重新评估工作流规则
47
+ help: 如果此字段更新改变字段的值,关联对象的所有工作流规则要重新评估。任何工作流规则条件得到满足将触发字段更新。
48
+ description: 该勾选框只标识是否重新评估字段更新所关联的对象的工作流规则,对于跨对象的字段更新,始终不会重新评估这些工作流规则,且始终会重新评估其要更新的对象的所有工作流规则。
49
+ listviews:
50
+ all:
51
+ label: 所有
52
+ CustomLabels:
53
+ action_field_updates_field_operation_options_null: 空值 (null)
54
+ action_field_updates_field_operation_options_formula: 使用公式设置新值
55
+ action_field_updates_field_operation_options_literal: 特定值
56
+ action_field_updates_field_field_new_value: 值
57
+ action_field_updates_field_process_definition: 批准过程
58
+ action_field_updates_field_process_node: 批准步骤
59
+ action_field_updates_field_when: 运行时
60
+ action_field_updates_field_when_options_final_approval: 最终批准操作
61
+ action_field_updates_field_when_options_final_rejection: 最终拒绝操作
62
+ action_field_updates_field_when_options_recall: 取消申请操作
63
+ action_field_updates_field_when_options_rejection: 拒绝操作
64
+ action_field_updates_field_when_options_approval: 批准操作
65
+ action_field_updates_field_when_options_initial_submission: 首次提交
66
+ action_field_updates_field__error_reevaluate_parent: 无法为父字段更新指定字段更改后重新评估工作流规则。
67
+ action_field_updates_field__error_process_node_process_definition_required: 请先选择该批准步骤的“批准过程”然后再新建字段更新!
68
+ action_field_updates_field__error_process_definition_object_required: 请先选择该批准过程的“对象”然后再新建字段更新!
69
+ action_field_updates_field__error_workflow_rule_object_required: 请先选择该工作流规则的“对象”然后再新建字段更新!
70
+ actions:
71
+ customize:
72
+ label: 自定义
@@ -0,0 +1,150 @@
1
+ name: process_definition
2
+ label: Approval Processes
3
+ description:
4
+ fields:
5
+ name:
6
+ label:
7
+ help:
8
+ description:
9
+ label:
10
+ label:
11
+ help:
12
+ description:
13
+ object_name:
14
+ label:
15
+ help:
16
+ description:
17
+ description:
18
+ label: Description
19
+ help:
20
+ description:
21
+ order:
22
+ label:
23
+ help:
24
+ description:
25
+ active:
26
+ label: Active
27
+ help:
28
+ description:
29
+ entry_criteria:
30
+ label: Specify Entry Criteria
31
+ help: >-
32
+ If only certain types of records should enter this approval process, enter
33
+ that criteria below. For example, only expense reports from employees at
34
+ headquarters should use this approval process.
35
+ description:
36
+ record_editability:
37
+ label: Record Editability Properties
38
+ help: >-
39
+ When a record is submitted for approval, it’s locked to prevent users from
40
+ editing it during the approval process. Use the record editability
41
+ properties to determine who can edit records that are locked in this
42
+ approval process.
43
+ options:
44
+ - label: Administrators ONLY can edit records during the approval process
45
+ value: admin_only
46
+ description:
47
+ allow_recall:
48
+ label: Allow submitters to recall approval requests
49
+ help:
50
+ description:
51
+ initial_submission_record_lock:
52
+ label: Record Lock
53
+ help:
54
+ options:
55
+ - label: Lock the record from being edited
56
+ value: lock
57
+ - label: Unlock the record for editing
58
+ value: unlock
59
+ description:
60
+ initial_submission_updates_field_actions:
61
+ label: Field Update
62
+ help:
63
+ description:
64
+ initial_submission_workflow_notifications_actions:
65
+ label:
66
+ help:
67
+ description:
68
+ final_approval_record_lock:
69
+ label: Record Lock
70
+ help:
71
+ options:
72
+ - label: Lock the record from being edited
73
+ value: lock
74
+ - label: Unlock the record for editing
75
+ value: unlock
76
+ description:
77
+ final_approval_updates_field_actions:
78
+ label: Field Update
79
+ help:
80
+ description:
81
+ final_approval_workflow_notifications_actions:
82
+ label:
83
+ help:
84
+ description:
85
+ final_rejection_record_lock:
86
+ label: Record Lock
87
+ help:
88
+ options:
89
+ - label: Lock the record from being edited
90
+ value: lock
91
+ - label: Unlock the record for editing
92
+ value: unlock
93
+ description:
94
+ final_rejection_updates_field_actions:
95
+ label: Field Update
96
+ help:
97
+ description:
98
+ final_rejection_workflow_notifications_actions:
99
+ label:
100
+ help:
101
+ description:
102
+ recall_record_lock:
103
+ label: Record Lock
104
+ help:
105
+ options:
106
+ - label: Lock the record from being edited
107
+ value: lock
108
+ - label: Unlock the record for editing
109
+ value: unlock
110
+ description:
111
+ recall_updates_field_actions:
112
+ label: Field Update
113
+ help:
114
+ description:
115
+ recall_workflow_notifications_actions:
116
+ label:
117
+ help:
118
+ description:
119
+ groups:
120
+ initial_submission_actions: Initial Submission Actions
121
+ final_approval_actions: Final Approval Actions
122
+ final_rejection_actions: Final Rejection Actions
123
+ recall_actions: Recall Actions
124
+ listviews:
125
+ all:
126
+ label: All
127
+ actions:
128
+ enable:
129
+ label: Enable
130
+ disable:
131
+ label: Disable
132
+ copy:
133
+ label: Copy
134
+ CustomLabels:
135
+ process_definition_field_approval_page_fields:
136
+ process_definition_field_approval_page_fields_inlineHelpText:
137
+ process_definition_field_show_approval_history:
138
+ process_definition_group_specify_entry_criteria:
139
+ process_definition_field_record_editability_inlineHelpText-TODO:
140
+ process_definition_field_record_editability_options_admin_or_current_approver:
141
+ process_definition_field_user_hierarchy_field:
142
+ process_definition_group_next_automated_approver:
143
+ process_definition_field_user_hierarchy_field_inlineHelpText:
144
+ process_definition_field_use_approver_field_of_record_owner:
145
+ process_definition_field_allowed_submitters:
146
+ process_definition_field_allowed_submitters_inlineHelpText:
147
+ process_definition_group_approval_page_fields:
148
+ process_definition_group_select_field_used_for_automated_approval_routing:
149
+ process_definition_group_record_lock:
150
+ menu_process_definition:
@@ -0,0 +1,145 @@
1
+ name: process_definition
2
+ label: 批准过程
3
+ description:
4
+ fields:
5
+ name:
6
+ label: API 名称
7
+ help:
8
+ description:
9
+ label:
10
+ label: 显示名称
11
+ help:
12
+ description:
13
+ object_name:
14
+ label: 对象
15
+ help:
16
+ description:
17
+ description:
18
+ label: 描述
19
+ help:
20
+ description:
21
+ order:
22
+ label: 序号
23
+ help:
24
+ description:
25
+ active:
26
+ label: 启用
27
+ help:
28
+ description:
29
+ entry_criteria:
30
+ label: 指定条目条件
31
+ help: 如果只有某些类型的记录能够进入此批准过程,请在下面输入条件。例如,只有总部员工的费用报表应该使用此批准过程。
32
+ description:
33
+ record_editability:
34
+ label: 记录可编辑性属性
35
+ help: 当记录在批准过程中时,它总是锁定的 -- 只有管理员可以对其进行编辑
36
+ options:
37
+ - label: 仅管理员可在批准过程中编辑记录。
38
+ value: admin_only
39
+ description:
40
+ allow_recall:
41
+ label: 允许提交人取消申请
42
+ help:
43
+ description:
44
+ initial_submission_record_lock:
45
+ label: 锁定记录
46
+ help:
47
+ options:
48
+ - label: 锁定记录以免进行编辑
49
+ value: lock
50
+ - label: 取消锁定可以进行编辑
51
+ value: unlock
52
+ description:
53
+ initial_submission_updates_field_actions:
54
+ label: 字段更新
55
+ help:
56
+ description:
57
+ initial_submission_workflow_notifications_actions:
58
+ label: 工作流通知
59
+ help:
60
+ description:
61
+ final_approval_record_lock:
62
+ label: 锁定记录
63
+ help:
64
+ options:
65
+ - label: 锁定记录以免进行编辑
66
+ value: lock
67
+ - label: 取消锁定可以进行编辑
68
+ value: unlock
69
+ description:
70
+ final_approval_updates_field_actions:
71
+ label: 字段更新
72
+ help:
73
+ description:
74
+ final_approval_workflow_notifications_actions:
75
+ label: 工作流通知
76
+ help:
77
+ description:
78
+ final_rejection_record_lock:
79
+ label: 锁定记录
80
+ help:
81
+ options:
82
+ - label: 锁定记录以免进行编辑
83
+ value: lock
84
+ - label: 取消锁定可以进行编辑
85
+ value: unlock
86
+ description:
87
+ final_rejection_updates_field_actions:
88
+ label: 字段更新
89
+ help:
90
+ description:
91
+ final_rejection_workflow_notifications_actions:
92
+ label: 工作流通知
93
+ help:
94
+ description:
95
+ recall_record_lock:
96
+ label: 锁定记录
97
+ help:
98
+ options:
99
+ - label: 锁定记录以免进行编辑
100
+ value: lock
101
+ - label: 取消锁定可以进行编辑
102
+ value: unlock
103
+ description:
104
+ recall_updates_field_actions:
105
+ label: 字段更新
106
+ help:
107
+ description:
108
+ recall_workflow_notifications_actions:
109
+ label: 工作流通知
110
+ help:
111
+ description:
112
+ groups:
113
+ initial_submission_actions: 初始提交操作
114
+ final_approval_actions: 最终批准操作
115
+ final_rejection_actions: 最终拒绝操作
116
+ recall_actions: 取消申请操作
117
+ listviews:
118
+ all:
119
+ label: 所有
120
+ actions:
121
+ enable:
122
+ label: 启用
123
+ disable:
124
+ label: 停用
125
+ copy:
126
+ label: 复制
127
+ customize:
128
+ label: 自定义
129
+ CustomLabels:
130
+ process_definition_field_approval_page_fields: 批准页面字段
131
+ process_definition_field_approval_page_fields_inlineHelpText: 批准页面是批准人实际批准或拒绝请求的地方。使用下面的选项,选择要在此页面上显示的字段。
132
+ process_definition_field_show_approval_history: 除以上所选取字段以外,也显示批准历史信息。
133
+ process_definition_group_specify_entry_criteria: 指定条目条件
134
+ process_definition_field_record_editability_inlineHelpText-TODO: 当记录在批准过程中时,它总是锁定的 -- 只有管理员可以对其进行编辑。但是,您也可以选择允许当前分配的批准人来编辑该记录。
135
+ process_definition_field_record_editability_options_admin_or_current_approver: 管理员或当前分配的批准人可在批准过程中编辑记录。
136
+ process_definition_field_user_hierarchy_field: 下一个批准人的自动确定方式
137
+ process_definition_group_next_automated_approver: 选择用于自动传送批准的字段 TODO
138
+ process_definition_field_user_hierarchy_field_inlineHelpText: 可选项为审批岗位?
139
+ process_definition_field_use_approver_field_of_record_owner: 使用记录所有人的批准人字段
140
+ process_definition_field_allowed_submitters: 初始提交人
141
+ process_definition_field_allowed_submitters_inlineHelpText: 对象上的人员字段及角色
142
+ process_definition_group_approval_page_fields: 批准页面字段 TODO
143
+ process_definition_group_select_field_used_for_automated_approval_routing: 指定批准人字段和记录可编辑性属性 TODO
144
+ process_definition_group_record_lock: 锁定记录
145
+ menu_process_definition: 批准过程
@@ -0,0 +1,41 @@
1
+ name: process_flows
2
+ label: process_flows
3
+ description:
4
+ fields:
5
+ name:
6
+ label:
7
+ help:
8
+ description:
9
+ object_name:
10
+ label:
11
+ help:
12
+ description:
13
+ when:
14
+ label: The process starts when
15
+ help:
16
+ options:
17
+ - label: record_changes
18
+ value: record_changes
19
+ description:
20
+ start:
21
+ label:
22
+ help:
23
+ options:
24
+ - label: only when a record is created
25
+ value: create
26
+ - label: when a record is created or edited
27
+ value: changes
28
+ description:
29
+ enable_recursion_check:
30
+ label: >-
31
+ Recursion - Allow process to evaluate a record multiple times in a single
32
+ save operation?
33
+ help:
34
+ description:
35
+ description:
36
+ label: description
37
+ help:
38
+ description:
39
+ listviews:
40
+ all:
41
+ label: All
@@ -0,0 +1,41 @@
1
+ name: process_flows
2
+ label: process_flows
3
+ description:
4
+ fields:
5
+ name:
6
+ label:
7
+ help:
8
+ description:
9
+ object_name:
10
+ label:
11
+ help:
12
+ description:
13
+ when:
14
+ label: The process starts when
15
+ help:
16
+ options:
17
+ - label: record_changes
18
+ value: record_changes
19
+ description:
20
+ start:
21
+ label:
22
+ help:
23
+ options:
24
+ - label: only when a record is created
25
+ value: create
26
+ - label: when a record is created or edited
27
+ value: changes
28
+ description:
29
+ enable_recursion_check:
30
+ label: >-
31
+ Recursion - Allow process to evaluate a record multiple times in a single
32
+ save operation?
33
+ help:
34
+ description:
35
+ description:
36
+ label: description
37
+ help:
38
+ description:
39
+ listviews:
40
+ all:
41
+ label: All
@@ -0,0 +1,38 @@
1
+ name: process_flows_criteria
2
+ label: process_flows_criteria
3
+ description:
4
+ fields:
5
+ process_flow:
6
+ label:
7
+ help:
8
+ description:
9
+ name:
10
+ label:
11
+ help:
12
+ description:
13
+ executing_actions:
14
+ label:
15
+ help:
16
+ options:
17
+ - label: Conditions are met
18
+ value: criteria
19
+ - label: No criteria—just execute the actions!
20
+ value: always
21
+ description:
22
+ criteria:
23
+ label: Conditions
24
+ help:
25
+ description:
26
+ update_once:
27
+ label: >-
28
+ Do you want to execute the actions only when specified changes are made to
29
+ the record?
30
+ help: >-
31
+ When you select yes, the actions are executed only if the record meets the
32
+ criteria now but the values that the record had immediately before it was
33
+ saved didn't meet criteria. This means that these actions won't be
34
+ executed when irrelevant changes are made.
35
+ description:
36
+ listviews:
37
+ all:
38
+ label: All
@@ -0,0 +1,38 @@
1
+ name: process_flows_criteria
2
+ label: process_flows_criteria
3
+ description:
4
+ fields:
5
+ process_flow:
6
+ label:
7
+ help:
8
+ description:
9
+ name:
10
+ label:
11
+ help:
12
+ description:
13
+ executing_actions:
14
+ label:
15
+ help:
16
+ options:
17
+ - label: Conditions are met
18
+ value: criteria
19
+ - label: No criteria—just execute the actions!
20
+ value: always
21
+ description:
22
+ criteria:
23
+ label: Conditions
24
+ help:
25
+ description:
26
+ update_once:
27
+ label: >-
28
+ Do you want to execute the actions only when specified changes are made to
29
+ the record?
30
+ help: >-
31
+ When you select yes, the actions are executed only if the record meets the
32
+ criteria now but the values that the record had immediately before it was
33
+ saved didn't meet criteria. This means that these actions won't be
34
+ executed when irrelevant changes are made.
35
+ description:
36
+ listviews:
37
+ all:
38
+ label: All
@@ -0,0 +1,47 @@
1
+ name: process_flows_criteria_action
2
+ label: process_flows_criteria_action
3
+ description:
4
+ fields:
5
+ criteria:
6
+ label:
7
+ help:
8
+ description:
9
+ name:
10
+ label:
11
+ help:
12
+ description:
13
+ type:
14
+ label:
15
+ help:
16
+ options:
17
+ - label: Submit for Approval
18
+ value: submit
19
+ description:
20
+ process_definition:
21
+ label: Approval Process
22
+ help:
23
+ description:
24
+ skip_entry_criteria:
25
+ label: Skip the entry criteria for this process?
26
+ help: >-
27
+ If selected, the record is submitted to the specified approval process,
28
+ regardless of the entry criteria.
29
+ description:
30
+ submitter:
31
+ label:
32
+ help:
33
+ options:
34
+ - label: Current User
35
+ value: current_user
36
+ - label: User Field from a Record
37
+ value: reference
38
+ - label: Other User
39
+ value: user
40
+ description:
41
+ user_field:
42
+ label: User Field
43
+ help:
44
+ description:
45
+ listviews:
46
+ all:
47
+ label: All
@@ -0,0 +1,47 @@
1
+ name: process_flows_criteria_action
2
+ label: process_flows_criteria_action
3
+ description:
4
+ fields:
5
+ criteria:
6
+ label:
7
+ help:
8
+ description:
9
+ name:
10
+ label:
11
+ help:
12
+ description:
13
+ type:
14
+ label:
15
+ help:
16
+ options:
17
+ - label: Submit for Approval
18
+ value: submit
19
+ description:
20
+ process_definition:
21
+ label: Approval Process
22
+ help:
23
+ description:
24
+ skip_entry_criteria:
25
+ label: Skip the entry criteria for this process?
26
+ help: >-
27
+ If selected, the record is submitted to the specified approval process,
28
+ regardless of the entry criteria.
29
+ description:
30
+ submitter:
31
+ label:
32
+ help:
33
+ options:
34
+ - label: Current User
35
+ value: current_user
36
+ - label: User Field from a Record
37
+ value: reference
38
+ - label: Other User
39
+ value: user
40
+ description:
41
+ user_field:
42
+ label: User Field
43
+ help:
44
+ description:
45
+ listviews:
46
+ all:
47
+ label: All