ny
昨天 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
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
package jnpf.flowable.model.task;
 
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import jnpf.base.UserInfo;
import jnpf.flowable.entity.*;
import jnpf.flowable.enums.EventEnum;
import jnpf.flowable.enums.OpTypeEnum;
import jnpf.flowable.enums.TaskStatusEnum;
import jnpf.flowable.model.operator.AddSignModel;
import jnpf.flowable.model.templatejson.TemplateJsonInfoVO;
import jnpf.flowable.model.templatenode.FlowErrorModel;
import jnpf.flowable.model.templatenode.TaskNodeModel;
import jnpf.flowable.model.templatenode.nodejson.NodeModel;
import jnpf.flowable.model.util.FlowNature;
import lombok.Data;
 
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
/**
 * @author JNPF开发平台组
 * @version V3.1.0
 * @copyright 引迈信息技术有限公司
 * @date 2021/3/15 9:17
 */
@Data
@JsonInclude
public class FlowModel extends FlowHandleModel {
    /**
     * 判断新增
     **/
    @Schema(description = "判断新增")
    private String id;
    /**
     * 版本ID
     **/
    @Schema(description = "版本ID")
    private String flowId;
    /**
     * 部署id
     **/
    @Schema(description = "部署id")
    private String deploymentId;
 
    private TemplateJsonEntity jsonEntity;
    private TaskEntity taskEntity = new TaskEntity();
    private List<TemplateNodeEntity> nodeEntityList = new ArrayList<>();
    private Map<String, NodeModel> nodes = new HashMap<>();
    private String flowableTaskId;
    private TemplateNodeEntity nodeEntity = new TemplateNodeEntity();
    /**
     * 加签参数
     */
    private AddSignModel addSignParameter = new AddSignModel();
    /**
     * 审批处理标识,0.拒绝  1.同意
     */
    private Integer handleStatus = FlowNature.AuditCompletion;
    /**
     * 任务详情类型
     * -1-我发起的新建/编辑
     * 0-我发起的详情
     * 1-待签事宜
     * 2-待办事宜
     * 3-在办事宜
     * 4-已办事宜
     * 5-抄送事宜
     * 6-流程监控
     */
    private String opType = OpTypeEnum.LaunchCreate.getType();
 
    private TemplateJsonInfoVO jsonInfoVO = new TemplateJsonInfoVO();
    private OperatorEntity operatorEntity = new OperatorEntity();
    private RecordEntity recordEntity = new RecordEntity();
    private List<TaskEntity> taskList = new ArrayList<>();
    private TemplateEntity templateEntity = new TemplateEntity();
 
    /**
     * 判断撤回的标识  1.发起撤回  2.审批撤回
     */
    private Integer flag = FlowNature.InitiateFlag;
    /**
     * 事件状态
     */
    private Integer eventStatus = EventEnum.None.getStatus();
    /**
     * 判断撤回时,为true会抛出异常
     */
    private Boolean isException = false;
    /**
     * 判断是否校验发起人权限
     */
    private Boolean hasPermission = false;
    /**
     * 下一级节点编码
     */
    private List<String> nextCodes = new ArrayList<>();
 
    /**
     * 挂起,0.全部  1.仅主流程
     */
    private Integer pause = 0;
    /**
     * 流程结束是否更新为结束节点
     */
    private Boolean finishFlag = true;
 
    /**
     * 子流程节点编码
     */
    private String subCode;
    /**
     * 子流程参数
     */
    private SubParameterModel subParameter;
    /**
     * 流程详情节点
     */
    private List<TaskNodeModel> nodeList = new ArrayList<>();
    /**
     * 是否流程,0-菜单 1-发起
     */
    private Integer isFlow = 0;
    /**
     * 签名主键
     */
    private String signId;
    /**
     * 下次继续使用此签名
     */
    private Boolean useSignNext = false;
    /**
     * 触发动作,1同意 2拒绝 3退回 4办理
     */
    private Integer action;
    /**
     * 拒绝直接结束的触发标识
     */
    private Boolean rejectTrigger = false;
    /**
     * 退回id,任务流程为退回触发时,获取最后一个执行节点的id用于退回
     */
    private String backId;
    /**
     * 紧急程度
     */
    @Schema(description = "紧急程度")
    private Integer flowUrgent = 1;
    /**
     * 0.保存 1.提交
     **/
    @Schema(description = "类型")
    private Integer status = TaskStatusEnum.TO_BE_SUBMIT.getCode();
    /**
     * 子流程
     **/
    @Schema(description = "子流程")
    private String parentId = FlowNature.ParentId;
    /**
     * 创建人
     **/
    @Schema(description = "创建人")
    private String userId;
    /**
     * 被委托人
     */
    @Schema(description = "被委托人")
    private String delegateUser;
    /**
     * 当前经办id
     **/
    @Schema(description = "当前经办id")
    private String operatorId;
    /**
     * 任务主键
     */
    @Schema(description = "任务主键")
    private String taskId;
    /**
     * 子流程,是否异步
     **/
    private Integer isAsync = FlowNature.ChildSync;
    /**
     * 用户信息
     */
    private UserInfo userInfo;
 
    /**
     * 抄送消息标识
     */
    private Boolean copyMsgFlag = true;
    /**
     * 自动转审,走指派方法的标识
     */
    private Boolean autoTransferFlag = false;
    /**
     * 是否自动审批
     */
    private Boolean autoAudit = false;
    /**
     * 子流程是否暂存标识
     */
    private Boolean subFlow = false;
 
    private List<FlowErrorModel> errorList = new ArrayList<>();
 
    /**
     * 流程模板id
     */
    private String templateId;
    /**
     * 发起人
     */
    private List<String> userIds = new ArrayList<>();
    /**
     * 表单数据集合
     */
    private List<Map<String, Object>> formDataList = new ArrayList<>();
}