Skip to content

Commit 16f7018

Browse files
committed
fix done detail
1 parent 4097dc7 commit 16f7018

2 files changed

Lines changed: 44 additions & 3 deletions

File tree

flow-engine-framework/src/main/java/com/codingapi/flow/pojo/response/FlowContent.java

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ public class FlowContent {
3737
*/
3838
private String workId;
3939

40+
/**
41+
* 流程设计名称
42+
*/
43+
private String workTitle;
44+
4045
/**
4146
* 流程编码
4247
*/
@@ -194,21 +199,28 @@ public void pushRecords(FlowRecord record, List<FlowRecord> mergeRecords) {
194199
this.recordId = record.getId();
195200
this.processId = record.getProcessId();
196201
this.createOperator = new FlowOperator(record.getCreateOperatorId(), record.getCreateOperatorName());
197-
this.mergeable = record.isMergeable();
202+
this.mergeable = record.isTodo() && record.isMergeable();
198203
this.flowState = record.getFlowState();
199204
this.recordState = record.getRecordState();
200205
this.title = record.getTitle();
206+
this.workTitle = record.getWorkTitle();
201207

202208
this.todos = new ArrayList<>();
203209
for (FlowRecord item : mergeRecords) {
204210
Body body = new Body();
205211
body.setRecordId(item.getId());
212+
body.setProcessId(item.getProcessId());
213+
body.setWorkTitle(item.getWorkTitle());
214+
body.setNodeId(item.getNodeId());
215+
body.setNodeName(item.getNodeName());
216+
body.setNodeType(item.getNodeType());
206217
body.setSubmitOperator(new FlowOperator(item.getSubmitOperatorId(),item.getSubmitOperatorName()));
207218
body.setCreatedOperator(new FlowOperator(record.getCreateOperatorId(),record.getCreateOperatorName()));
208219
body.setTitle(item.getTitle());
209220
body.setData(item.getFormData());
210221
body.setRecordState(item.getRecordState());
211222
body.setFlowState(item.getFlowState());
223+
body.setCreateTime(item.getCreateTime());
212224
this.todos.add(body);
213225
}
214226
}
@@ -289,6 +301,32 @@ public static class Body {
289301
* 流程记录编号
290302
*/
291303
private long recordId;
304+
305+
/**
306+
* 流程id
307+
* 每一次流程启动时生成,直到流程结束
308+
*/
309+
private String processId;
310+
311+
/**
312+
* 流程设计名称
313+
*/
314+
private String workTitle;
315+
316+
/**
317+
* 节点Id
318+
*/
319+
private String nodeId;
320+
321+
/**
322+
* 节点名称
323+
*/
324+
private String nodeName;
325+
326+
/**
327+
* 节点类型
328+
*/
329+
private String nodeType;
292330
/**
293331
* 流程标题
294332
*/
@@ -300,12 +338,15 @@ public static class Body {
300338
private FlowOperator submitOperator;
301339

302340

303-
304341
/**
305342
* 流程创建者
306343
*/
307344
private FlowOperator createdOperator;
308345

346+
/**
347+
* 流程创建时间
348+
*/
349+
private long createTime;
309350

310351
/**
311352
* 表单数据

0 commit comments

Comments
 (0)