@steedos/standard-process-approval 2.3.1 → 2.3.2-beta.3
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/main/default/objectTranslations/workflow_outbound_messages.en/workflow_outbound_messages.en.objectTranslation.yml +38 -0
- package/main/default/objectTranslations/workflow_outbound_messages.zh-CN/workflow_outbound_messages.zh-CN.objectTranslation.yml +38 -0
- package/main/default/objectTranslations/workflow_rule.en/workflow_rule.en.objectTranslation.yml +23 -0
- package/main/default/objectTranslations/workflow_rule.zh-CN/workflow_rule.zh-CN.objectTranslation.yml +19 -0
- package/main/default/objects/workflow-actions/workflow_notifications.object.yml +1 -0
- package/main/default/objects/workflow-actions/workflow_outbound_messages/fields/description.field.yml +5 -0
- package/main/default/objects/workflow-actions/workflow_outbound_messages/fields/endpoint_url.field.yml +6 -0
- package/main/default/objects/workflow-actions/workflow_outbound_messages/fields/label.field.yml +8 -0
- package/main/default/objects/workflow-actions/workflow_outbound_messages/fields/name.field.yml +7 -0
- package/main/default/objects/workflow-actions/workflow_outbound_messages/fields/object_fields_to_send.field.yml +18 -0
- package/main/default/objects/workflow-actions/workflow_outbound_messages/fields/object_name.field.yml +11 -0
- package/main/default/objects/workflow-actions/workflow_outbound_messages/fields/user_to_send_as.field.yml +5 -0
- package/main/default/objects/workflow-actions/workflow_outbound_messages/listviews/all.listview.yml +16 -0
- package/main/default/objects/workflow-actions/workflow_outbound_messages/permissions/admin.permission.yml +14 -0
- package/main/default/objects/workflow-actions/workflow_outbound_messages/permissions/user.permission.yml +14 -0
- package/main/default/objects/workflow-actions/workflow_outbound_messages/workflow_outbound_messages.object.yml +7 -0
- package/main/default/objects/workflow-actions/workflow_rule.object.yml +116 -1
- package/package.json +2 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: workflow_outbound_messages
|
|
2
|
+
label: Outbound Message Actions
|
|
3
|
+
description:
|
|
4
|
+
fields:
|
|
5
|
+
name:
|
|
6
|
+
label: API Name
|
|
7
|
+
help:
|
|
8
|
+
description:
|
|
9
|
+
label:
|
|
10
|
+
label: Label
|
|
11
|
+
help:
|
|
12
|
+
description:
|
|
13
|
+
object_name:
|
|
14
|
+
label: Object
|
|
15
|
+
help:
|
|
16
|
+
description:
|
|
17
|
+
description:
|
|
18
|
+
label: Description
|
|
19
|
+
help:
|
|
20
|
+
description:
|
|
21
|
+
endpoint_url:
|
|
22
|
+
label: Endpoint URL
|
|
23
|
+
help:
|
|
24
|
+
description:
|
|
25
|
+
user_to_send_as:
|
|
26
|
+
label: User to send as
|
|
27
|
+
help:
|
|
28
|
+
description:
|
|
29
|
+
object_fields_to_send:
|
|
30
|
+
label: Object fields to send
|
|
31
|
+
help:
|
|
32
|
+
description:
|
|
33
|
+
listviews:
|
|
34
|
+
all:
|
|
35
|
+
label: All
|
|
36
|
+
actions:
|
|
37
|
+
customize:
|
|
38
|
+
label: Customize
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: workflow_outbound_messages
|
|
2
|
+
label: 出站消息
|
|
3
|
+
description:
|
|
4
|
+
fields:
|
|
5
|
+
name:
|
|
6
|
+
label: API 名称
|
|
7
|
+
help: API 名称只能包含小写字母、数字,必须以字母开头,不能以下划线字符结尾或包含两个连续的下划线字符
|
|
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
|
+
endpoint_url:
|
|
22
|
+
label: 端点 URL
|
|
23
|
+
help:
|
|
24
|
+
description:
|
|
25
|
+
user_to_send_as:
|
|
26
|
+
label: 发送方用户
|
|
27
|
+
help:
|
|
28
|
+
description:
|
|
29
|
+
object_fields_to_send:
|
|
30
|
+
label: 要发送的字段
|
|
31
|
+
help:
|
|
32
|
+
description:
|
|
33
|
+
listviews:
|
|
34
|
+
all:
|
|
35
|
+
label: 所有
|
|
36
|
+
actions:
|
|
37
|
+
customize:
|
|
38
|
+
label: 自定义
|
package/main/default/objectTranslations/workflow_rule.en/workflow_rule.en.objectTranslation.yml
CHANGED
|
@@ -37,13 +37,36 @@ fields:
|
|
|
37
37
|
label: Field Update
|
|
38
38
|
help:
|
|
39
39
|
description:
|
|
40
|
+
workflow_notifications_actions:
|
|
41
|
+
label: Notification
|
|
42
|
+
help:
|
|
43
|
+
description:
|
|
40
44
|
description:
|
|
41
45
|
label:
|
|
42
46
|
help:
|
|
43
47
|
description:
|
|
48
|
+
time_triggers:
|
|
49
|
+
label: Time Triggers
|
|
50
|
+
time_triggers.$:
|
|
51
|
+
label: Field
|
|
52
|
+
time_triggers.$.number:
|
|
53
|
+
label: Number
|
|
54
|
+
time_triggers.$.unit:
|
|
55
|
+
label: Unit
|
|
56
|
+
time_triggers.$.type:
|
|
57
|
+
label: Type
|
|
58
|
+
time_triggers.$.date_field:
|
|
59
|
+
label: Date Field
|
|
60
|
+
time_triggers.$.updates_field_actions:
|
|
61
|
+
label: Field Update
|
|
62
|
+
time_triggers.$.workflow_notifications_actions:
|
|
63
|
+
label: Notification
|
|
64
|
+
time_triggers.$.workflow_outbound_messages_actions:
|
|
65
|
+
label: Outbound Message Actions
|
|
44
66
|
groups:
|
|
45
67
|
rule_criteria: Rule Criteria
|
|
46
68
|
immediate_actions: Immediate Actions
|
|
69
|
+
time_triggers: Time-Dependent Action
|
|
47
70
|
listviews:
|
|
48
71
|
all:
|
|
49
72
|
label: All
|
|
@@ -45,9 +45,28 @@ fields:
|
|
|
45
45
|
label: 描述
|
|
46
46
|
help:
|
|
47
47
|
description:
|
|
48
|
+
time_triggers:
|
|
49
|
+
label: 时间触发器
|
|
50
|
+
time_triggers.$:
|
|
51
|
+
label: Field
|
|
52
|
+
time_triggers.$.number:
|
|
53
|
+
label: 数值
|
|
54
|
+
time_triggers.$.unit:
|
|
55
|
+
label: 单位
|
|
56
|
+
time_triggers.$.type:
|
|
57
|
+
label: 类型
|
|
58
|
+
time_triggers.$.date_field:
|
|
59
|
+
label: 日期字段
|
|
60
|
+
time_triggers.$.updates_field_actions:
|
|
61
|
+
label: 工作流操作:字段更新
|
|
62
|
+
time_triggers.$.workflow_notifications_actions:
|
|
63
|
+
label: 工作流操作:工作流通知
|
|
64
|
+
time_triggers.$.workflow_outbound_messages_actions:
|
|
65
|
+
label: 工作流操作:出站消息
|
|
48
66
|
groups:
|
|
49
67
|
rule_criteria: 规则条件
|
|
50
68
|
immediate_actions: 即时操作
|
|
69
|
+
time_triggers: 依赖于时间的工作流操作
|
|
51
70
|
listviews:
|
|
52
71
|
all:
|
|
53
72
|
label: 所有
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: object_fields_to_send
|
|
2
|
+
label: 要发送的字段
|
|
3
|
+
type: lookup
|
|
4
|
+
multiple: true
|
|
5
|
+
is_wide: true
|
|
6
|
+
depend_on:
|
|
7
|
+
- object_name
|
|
8
|
+
optionsFunction: !<tag:yaml.org,2002:js/function> |-
|
|
9
|
+
function (values) {
|
|
10
|
+
if (!(values != null ? values.object_name : void 0)) {
|
|
11
|
+
values.object_name = Session.get("object_name");
|
|
12
|
+
}
|
|
13
|
+
if(values.object_name && !_.isString(values.object_name)){
|
|
14
|
+
values.object_name = values.object_name.name
|
|
15
|
+
}
|
|
16
|
+
return Creator.getObjectFieldOptions(values != null ? values.object_name : void 0);
|
|
17
|
+
}
|
|
18
|
+
sort_no: 70
|
package/main/default/objects/workflow-actions/workflow_outbound_messages/listviews/all.listview.yml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
name: all
|
|
2
|
+
columns:
|
|
3
|
+
- field: object_name
|
|
4
|
+
- field: label
|
|
5
|
+
- field: name
|
|
6
|
+
- field: description
|
|
7
|
+
- field: endpoint_url
|
|
8
|
+
- field: modified
|
|
9
|
+
filter_scope: space
|
|
10
|
+
filters: []
|
|
11
|
+
label: 所有
|
|
12
|
+
mobile_columns: []
|
|
13
|
+
scrolling_mode: standard
|
|
14
|
+
shared: true
|
|
15
|
+
sort_no: 100
|
|
16
|
+
type: grid
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
name: 出站消息.管理员
|
|
2
|
+
allowCreate: true
|
|
3
|
+
allowCreateFiles: true
|
|
4
|
+
allowDelete: true
|
|
5
|
+
allowDeleteFiles: true
|
|
6
|
+
allowEdit: true
|
|
7
|
+
allowEditFiles: true
|
|
8
|
+
allowRead: true
|
|
9
|
+
allowReadFiles: true
|
|
10
|
+
modifyAllFiles: true
|
|
11
|
+
modifyAllRecords: true
|
|
12
|
+
permission_set_id: admin
|
|
13
|
+
viewAllFiles: true
|
|
14
|
+
viewAllRecords: true
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
name: 出站消息.用户
|
|
2
|
+
allowCreate: false
|
|
3
|
+
allowCreateFiles: false
|
|
4
|
+
allowDelete: false
|
|
5
|
+
allowDeleteFiles: false
|
|
6
|
+
allowEdit: false
|
|
7
|
+
allowEditFiles: false
|
|
8
|
+
allowRead: true
|
|
9
|
+
allowReadFiles: true
|
|
10
|
+
modifyAllRecords: false
|
|
11
|
+
permission_set_id: user
|
|
12
|
+
viewAllFiles: true
|
|
13
|
+
viewAllRecords: true
|
|
14
|
+
viewCompanyRecords: true
|
|
@@ -75,7 +75,122 @@ fields:
|
|
|
75
75
|
# type: text
|
|
76
76
|
# criteria: # TODO 暂不支持
|
|
77
77
|
# type: textarea
|
|
78
|
-
|
|
78
|
+
filters:
|
|
79
|
+
label: 过滤条件
|
|
80
|
+
type: code
|
|
81
|
+
is_wide: true
|
|
82
|
+
hidden: false
|
|
83
|
+
readonly: false
|
|
84
|
+
# visible_on: "{{global.mode ==='read' ? true : false}}"
|
|
85
|
+
depend_on:
|
|
86
|
+
- object_name
|
|
87
|
+
group: 依赖于时间的工作流操作
|
|
88
|
+
time_triggers:
|
|
89
|
+
type: grid
|
|
90
|
+
label: 时间触发器
|
|
91
|
+
is_wide: true
|
|
92
|
+
required: false
|
|
93
|
+
group: 依赖于时间的工作流操作
|
|
94
|
+
time_triggers.$:
|
|
95
|
+
label: Field
|
|
96
|
+
blackbox: true
|
|
97
|
+
type: object
|
|
98
|
+
time_triggers.$.number:
|
|
99
|
+
label: 数值
|
|
100
|
+
type: number
|
|
101
|
+
scale: 0
|
|
102
|
+
required: true
|
|
103
|
+
time_triggers.$.unit:
|
|
104
|
+
label: 单位
|
|
105
|
+
type: select
|
|
106
|
+
options:
|
|
107
|
+
- label: 小时
|
|
108
|
+
value: hour
|
|
109
|
+
- label: 天
|
|
110
|
+
value: day
|
|
111
|
+
required: true
|
|
112
|
+
time_triggers.$.type:
|
|
113
|
+
label: 类型
|
|
114
|
+
type: select
|
|
115
|
+
options:
|
|
116
|
+
- label: 早于
|
|
117
|
+
value: earlier_than
|
|
118
|
+
- label: 晚于
|
|
119
|
+
value: later_than
|
|
120
|
+
required: true
|
|
121
|
+
time_triggers.$.date_field:
|
|
122
|
+
label: 日期字段
|
|
123
|
+
type: select
|
|
124
|
+
depend_on:
|
|
125
|
+
- object_name
|
|
126
|
+
optionsFunction: !!js/function |
|
|
127
|
+
function (values) {
|
|
128
|
+
console.log('values: ', values);
|
|
129
|
+
const object_name = values.object_name;
|
|
130
|
+
const options = [];
|
|
131
|
+
if (object_name) {
|
|
132
|
+
var object = Creator.getObject(object_name);
|
|
133
|
+
var objectLabel = object.label;
|
|
134
|
+
var fields = object.fields;
|
|
135
|
+
for(const key in fields) {
|
|
136
|
+
if (Object.hasOwnProperty.call(fields, key)) {
|
|
137
|
+
const f = fields[key]
|
|
138
|
+
if (!f.hidden && (f.type == 'datetime' || f.type == 'date')) {
|
|
139
|
+
options.push({
|
|
140
|
+
label: objectLabel + ': ' + f.label,
|
|
141
|
+
value: f.name
|
|
142
|
+
})
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
return options
|
|
148
|
+
}
|
|
149
|
+
time_triggers.$.updates_field_actions:
|
|
150
|
+
type: lookup
|
|
151
|
+
multiple: true
|
|
152
|
+
label: 工作流操作:字段更新
|
|
153
|
+
is_wide: true
|
|
154
|
+
reference_to: action_field_updates
|
|
155
|
+
reference_to_field: name
|
|
156
|
+
depend_on:
|
|
157
|
+
- object_name
|
|
158
|
+
filtersFunction: !!js/function |
|
|
159
|
+
function (filters, dependValues) {
|
|
160
|
+
if(dependValues && dependValues.object_name){
|
|
161
|
+
return "object_name eq '" + dependValues.object_name + "'";
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
time_triggers.$.workflow_notifications_actions:
|
|
165
|
+
type: lookup
|
|
166
|
+
multiple: true
|
|
167
|
+
label: 工作流操作:工作流通知
|
|
168
|
+
is_wide: true
|
|
169
|
+
reference_to: workflow_notifications
|
|
170
|
+
reference_to_field: name
|
|
171
|
+
depend_on:
|
|
172
|
+
- object_name
|
|
173
|
+
filtersFunction: !!js/function |
|
|
174
|
+
function (filters, dependValues) {
|
|
175
|
+
if(dependValues && dependValues.object_name){
|
|
176
|
+
return "object_name eq '" + dependValues.object_name + "'";
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
time_triggers.$.workflow_outbound_messages_actions:
|
|
180
|
+
type: lookup
|
|
181
|
+
multiple: true
|
|
182
|
+
label: 工作流操作:出站消息
|
|
183
|
+
is_wide: true
|
|
184
|
+
reference_to: workflow_outbound_messages
|
|
185
|
+
reference_to_field: name
|
|
186
|
+
depend_on:
|
|
187
|
+
- object_name
|
|
188
|
+
filtersFunction: !!js/function |
|
|
189
|
+
function (filters, dependValues) {
|
|
190
|
+
if(dependValues && dependValues.object_name){
|
|
191
|
+
return "object_name eq '" + dependValues.object_name + "'";
|
|
192
|
+
}
|
|
193
|
+
}
|
|
79
194
|
description:
|
|
80
195
|
type: textarea
|
|
81
196
|
is_wide: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-process-approval",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2-beta.3",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"repository": {},
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "1f337e8da176f1c75a8596b29ec7889eca996dc1"
|
|
16
16
|
}
|