TaskTransParamObject.java
5 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
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 TaskTransParamObject {
@ApiModelProperty(name="instanceId",notes="流程实例")
private String instanceId;
@ApiModelProperty(name="taskId",notes="任务ID",required=true)
private String taskId;
@ApiModelProperty(name="action",notes="完成后的操作,submit(提交),back(返回)",allowableValues="submit,back")
private String action;
@ApiModelProperty(name="decideType",notes="计票策略,agree(同意票)refuse(否决票)",allowableValues="agree,refuse")
private String decideType;
@ApiModelProperty(name="voteType",notes="投票类型,amount(绝对票),percent(百分比)",allowableValues="percent,amount")
private String voteType;
@ApiModelProperty(name="radioVote",notes="任务通过规则 1-全票通过,2-一票否决,3-一票同意,4-自定义")
private String radioVote;
@ApiModelProperty(name="voteAmount",notes="票数")
private Short voteAmount;
@ApiModelProperty(name="signType",notes="会签类型,parallel(并行),seq(串行)",allowableValues="parallel,seq")
private String signType;
@ApiModelProperty(name="notifyType",notes="通知类型,inner(内部消息),mail(邮件),sms(短信),多个之单使用英文逗号隔开",allowableValues="inner,mail,sms")
private String notifyType;
@ApiModelProperty(name="opinion",notes="通知内容",required=true)
private String opinion;
@ApiModelProperty(name="userIds",notes="流转人员id,多个用英文逗号隔开",required=true)
private String userIds;
@ApiModelProperty(name="data",notes="表单数据",required=false)
private String data;
protected String files = ""; /* 附件 */
@ApiModelProperty(name="inquType",notes="流转类型,direct(直接返回),step(逐级返回)",allowableValues="direct,step")
private String inquType;
public String getFiles() {
return files;
}
public void setFiles(String files) {
this.files = files;
}
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
public String getTaskId() {
return taskId;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
public String getDecideType() {
return decideType;
}
public void setDecideType(String decideType) {
this.decideType = decideType;
}
public String getVoteType() {
return voteType;
}
public void setVoteType(String voteType) {
this.voteType = voteType;
}
public Short getVoteAmount() {
return voteAmount;
}
public void setVoteAmount(Short voteAmount) {
this.voteAmount = voteAmount;
}
public String getSignType() {
return signType;
}
public void setSignType(String signType) {
this.signType = signType;
}
public String getNotifyType() {
return notifyType;
}
public void setNotifyType(String notifyType) {
this.notifyType = notifyType;
}
public String getOpinion() {
return opinion;
}
public void setOpinion(String opinion) {
this.opinion = opinion;
}
public String getUserIds() {
return userIds;
}
public void setUserIds(String userIds) {
this.userIds = userIds;
}
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
public String getInquType() {
return inquType;
}
public void setInquType(String inquType) {
this.inquType = inquType;
}
public String getRadioVote() {
return radioVote;
}
public void setRadioVote(String radioVote) {
this.radioVote = radioVote;
}
public String toString() {
// return new ToStringBuilder(this)
// .append("instanceId", this.instanceId)
// .append("taskId", this.taskId)
// .append("action", this.action)
// .append("decideType", this.decideType)
// .append("voteType", this.voteType)
// .append("voteAmount", this.voteAmount)
// .append("signType", this.signType)
// .append("notifyType", this.notifyType)
// .append("opinion", this.opinion)
// .append("userIds", this.userIds)
// .toString();
return "{"
+ "\""+"instanceId"+"\""+":"+"\""+this.instanceId+"\","
+ "\""+"taskId"+"\""+":"+"\""+this.taskId+"\","
+"\""+"action"+"\""+":"+"\""+this.action+"\","
+"\""+"decideType"+"\""+":"+"\""+this.decideType+"\","
+"\""+"voteType"+"\""+":"+"\""+this.voteType+"\","
+"\""+"voteAmount"+"\""+":"+"\""+this.voteAmount+"\","
+"\""+"signType"+"\""+":"+"\""+this.signType+"\","
+"\""+"notifyType"+"\""+":"+"\""+this.notifyType+"\","
//+"\""+"opinion"+"\""+":"+"\""+this.opinion+"\","
+"\""+"userIds"+"\""+":"+"\""+this.userIds+"\","
+"\""+"inquType"+"\""+":"+"\""+this.inquType+"\""
+ "}";
}
}