DefOtherParam.java
10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
package com.hotent.runtime.params;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 流程定义其他参数对象
*
* @company 广州宏天软件股份有限公司
* @author zhangxianwen
* @email zhangxw@jee-soft.cn
* @date 2018年6月28日
*/
@ApiModel(value="流程定义其他参数对象")
public class DefOtherParam {
@ApiModelProperty(name="defId",notes="流程定义id",required=true)
protected String defId;
@ApiModelProperty(name="allowCopyTo",notes="是否允许抄送",allowableValues="false,true")
private Boolean allowCopyTo;
@ApiModelProperty(name="allowCopyTo",notes="可参考流程设置中的其他设置的标题规则")
protected String subjectRule;
@ApiModelProperty(name="description",notes="流程描述")
protected String description;
@ApiModelProperty(name="startNotifyType",notes="发起时通知相关人员类型,inner(内部消息),mail(邮件),sms(短信),voic(电话语音),多个之单使用英文逗号隔开",allowableValues="mail,inner,sms,voic")
protected String startNotifyType;
@ApiModelProperty(name="archiveNotifyType",notes="归档时通知类型,inner(内部消息),mail(邮件),sms(短信),voic(电话语音),多个之单使用英文逗号隔开",allowableValues="mail,inner,sms,voic")
protected String archiveNotifyType;
@ApiModelProperty(name="notifyType",notes="通知类型,inner(内部消息),mail(邮件),sms(短信),voic(电话语音),多个之单使用英文逗号隔开",allowableValues="mail,inner,sms,voic")
protected String notifyType;
@ApiModelProperty(name="skipFirstNode",notes="跳过第一个节点",allowableValues="true,false")
protected boolean skipFirstNode;
@ApiModelProperty(name="firstNodeUserAssign",notes="第一个节点用户可以选择执行人",allowableValues="false,true")
protected boolean firstNodeUserAssign;
@ApiModelProperty(name="skipSameUser",notes="两个节点相同节点执行人跳过",allowableValues="true,false")
protected boolean skipSameUser;
@ApiModelProperty(name="allowTransTo",notes="允许转办",allowableValues="false,true")
protected boolean allowTransTo;
@ApiModelProperty(name="useMainForm",notes="使用表单版本,mainVersion(表单主版本),startVersion(启动时版本),不填则表示采用全局设置",
allowableValues="mainVersion,startVersion")
protected String useMainForm;
@ApiModelProperty(name="allowReference",notes="允许参考",allowableValues="false,true")
protected boolean allowReference=false;
@ApiModelProperty(name="allowRefCounts",notes="允许参考的数量")
protected int allowRefCounts=5;
@ApiModelProperty(name="allowExecutorEmpty",notes="是否允许执行人为空",allowableValues="false,true")
protected boolean allowExecutorEmpty;
@ApiModelProperty(name="skipExecutorEmpty",notes="执行人为空时跳过此任务",allowableValues="false,true")
protected boolean skipExecutorEmpty=false;
@ApiModelProperty(name="testNotifyType",notes="测试状态通知类型",allowableValues="mail,inner")
protected String testNotifyType;
@ApiModelProperty(name="testStatus",notes="测试状态,test(测试状态),run(运营状态)",allowableValues="test,run")
protected String testStatus;
@ApiModelProperty(name="status",notes="流程状态,draft(草稿),deploy(已发布),forbidden(禁用),forbidden_instance(禁用实例),deleted(删除)",
allowableValues="draft,deploy,forbidden,forbidden_instance,deleted")
protected String status;
@ApiModelProperty(name="skipRules",notes="跳转规则,可不填,all(无条件跳过),sameUser(相同执行人跳过),approver(审批跳过),emptyUser(执行人为空跳过)",
allowableValues="all,sameUser,approver,emptyUser")
protected String skipRules;
@ApiModelProperty(name="dateType",notes="计算审批期限的类型 worktime(工作日), caltime(日历日)",
allowableValues="worktime, caltime")
private String dateType ;
@ApiModelProperty(name="dueTime",notes="节点审批期限 (分钟)")
private int dueTime;
@ApiModelProperty(name="doneDataVersion",notes="查看已办数据版本,history(历史版本),latest(最新版本)",
allowableValues="history,latest")
protected String doneDataVersion;
public String getDefId() {
return defId;
}
public void setDefId(String defId) {
this.defId = defId;
}
public Boolean getAllowCopyTo() {
return allowCopyTo;
}
public void setAllowCopyTo(Boolean allowCopyTo) {
this.allowCopyTo = allowCopyTo;
}
public String getSubjectRule() {
return subjectRule;
}
public void setSubjectRule(String subjectRule) {
this.subjectRule = subjectRule;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getStartNotifyType() {
return startNotifyType;
}
public void setStartNotifyType(String startNotifyType) {
this.startNotifyType = startNotifyType;
}
public String getArchiveNotifyType() {
return archiveNotifyType;
}
public void setArchiveNotifyType(String archiveNotifyType) {
this.archiveNotifyType = archiveNotifyType;
}
public String getNotifyType() {
return notifyType;
}
public void setNotifyType(String notifyType) {
this.notifyType = notifyType;
}
public boolean isSkipFirstNode() {
return skipFirstNode;
}
public void setSkipFirstNode(boolean skipFirstNode) {
this.skipFirstNode = skipFirstNode;
}
public boolean isFirstNodeUserAssign() {
return firstNodeUserAssign;
}
public void setFirstNodeUserAssign(boolean firstNodeUserAssign) {
this.firstNodeUserAssign = firstNodeUserAssign;
}
public boolean isSkipSameUser() {
return skipSameUser;
}
public void setSkipSameUser(boolean skipSameUser) {
this.skipSameUser = skipSameUser;
}
public boolean isAllowTransTo() {
return allowTransTo;
}
public void setAllowTransTo(boolean allowTransTo) {
this.allowTransTo = allowTransTo;
}
public String getUseMainForm() {
return useMainForm;
}
public void setUseMainForm(String useMainForm) {
this.useMainForm = useMainForm;
}
public boolean isAllowReference() {
return allowReference;
}
public void setAllowReference(boolean allowReference) {
this.allowReference = allowReference;
}
public int getAllowRefCounts() {
return allowRefCounts;
}
public void setAllowRefCounts(int allowRefCounts) {
this.allowRefCounts = allowRefCounts;
}
public boolean isAllowExecutorEmpty() {
return allowExecutorEmpty;
}
public void setAllowExecutorEmpty(boolean allowExecutorEmpty) {
this.allowExecutorEmpty = allowExecutorEmpty;
}
public boolean isSkipExecutorEmpty() {
return skipExecutorEmpty;
}
public void setSkipExecutorEmpty(boolean skipExecutorEmpty) {
this.skipExecutorEmpty = skipExecutorEmpty;
}
public String getTestNotifyType() {
return testNotifyType;
}
public void setTestNotifyType(String testNotifyType) {
this.testNotifyType = testNotifyType;
}
public String getTestStatus() {
return testStatus;
}
public void setTestStatus(String testStatus) {
this.testStatus = testStatus;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getSkipRules() {
return skipRules;
}
public void setSkipRules(String skipRules) {
this.skipRules = skipRules;
}
public String getDateType() {
return dateType;
}
public void setDateType(String dateType) {
this.dateType = dateType;
}
public int getDueTime() {
return dueTime;
}
public void setDueTime(int dueTime) {
this.dueTime = dueTime;
}
public String getDoneDataVersion() {
return doneDataVersion;
}
public void setDoneDataVersion(String doneDataVersion) {
this.doneDataVersion = doneDataVersion;
}
public String toString() {
// return new ToStringBuilder(this)
// .append("defId", this.defId)
// .append("allowCopyTo", this.allowCopyTo)
// .append("subjectRule", this.subjectRule)
// .append("description", this.description)
// .append("startNotifyType", this.startNotifyType)
// .append("archiveNotifyType", this.archiveNotifyType)
// .append("notifyType", this.notifyType)
// .append("skipFirstNode", this.skipFirstNode)
// .append("firstNodeUserAssign", this.firstNodeUserAssign)
// .append("skipSameUser", this.skipSameUser)
// .append("allowTransTo", this.allowTransTo)
// .append("useMainForm", this.useMainForm)
// .append("allowReference", this.allowReference)
// .append("allowRefCounts", this.allowRefCounts)
// .append("allowExecutorEmpty", this.allowExecutorEmpty)
// .append("skipExecutorEmpty", this.skipExecutorEmpty)
// .append("testNotifyType", this.testNotifyType)
// .append("testStatus", this.testStatus)
// .append("status", this.status)
// .append("skipRules", this.skipRules)
// .append("dateType", this.dateType)
// .append("dueTime", this.dueTime)
// .toString();
return "{"
+ "\""+"defId"+"\""+":"+"\""+this.defId+"\","
+ "\""+"allowCopyTo"+"\""+":"+"\""+this.allowCopyTo+"\","
+ "\""+"useMainForm"+"\""+":"+"\""+this.useMainForm+"\","
+ "\""+"allowTransTo"+"\""+":"+"\""+this.allowTransTo+"\","
+ "\""+"skipSameUser"+"\""+":"+"\""+this.skipSameUser+"\","
+"\""+"subjectRule"+"\""+":"+"\""+this.subjectRule+"\","
+"\""+"description"+"\""+":"+"\""+this.description+"\","
+"\""+"startNotifyType"+"\""+":"+"\""+this.startNotifyType+"\","
+"\""+"archiveNotifyType"+"\""+":"+"\""+this.archiveNotifyType+"\","
+"\""+"notifyType"+"\""+":"+"\""+this.notifyType+"\","
+"\""+"skipFirstNode"+"\""+":"+"\""+this.skipFirstNode+"\","
+"\""+"firstNodeUserAssign"+"\""+":"+"\""+this.firstNodeUserAssign+"\","
+"\""+"testStatus"+"\""+":"+"\""+this.testStatus+"\","
+"\""+"testNotifyType"+"\""+":"+"\""+this.testNotifyType+"\","
+"\""+"skipExecutorEmpty"+"\""+":"+"\""+this.skipExecutorEmpty+"\","
+"\""+"allowExecutorEmpty"+"\""+":"+"\""+this.allowExecutorEmpty+"\","
+"\""+"allowRefCounts"+"\""+":"+"\""+this.allowRefCounts+"\","
+"\""+"allowReference"+"\""+":"+"\""+this.allowReference+"\","
+"\""+"status"+"\""+":"+"\""+this.status+"\","
+"\""+"skipRules"+"\""+":"+"\""+this.skipRules+"\","
+"\""+"dateType"+"\""+":"+"\""+this.dateType+"\","
+"\""+"doneDataVersion"+"\""+":"+"\""+this.doneDataVersion+"\","
+"\""+"dueTime"+"\""+":"+"\""+this.dueTime+"\""
+ "}";
}
}