Skip to content

Commit 07202e6

Browse files
committed
add audit bug
1 parent 4d80f7c commit 07202e6

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ public class FlowContent {
2525
*/
2626
private long recordId;
2727

28+
/**
29+
* 流程id
30+
* 每一次流程启动时生成,直到流程结束
31+
*/
32+
private String processId;
33+
2834
/**
2935
* 流程编号
3036
*/
@@ -135,6 +141,7 @@ public void pushWorkflow(Workflow workflow) {
135141

136142
public void pushRecords(FlowRecord record, List<FlowRecord> mergeRecords) {
137143
this.recordId = record.getId();
144+
this.processId = record.getProcessId();
138145
this.createOperator = new FlowOperator(record.getCreateOperatorId(), record.getCreateOperatorName());
139146
this.mergeable = record.isMergeable();
140147
this.flowState = record.getFlowState();

frontend/apps/app-pc/src/pages/todo.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ const TodoPage: React.FC = () => {
2525
dataIndex: 'recordId',
2626
title: '编号',
2727
},
28+
{
29+
dataIndex: 'processId',
30+
title: '流程编码',
31+
},
2832
{
2933
dataIndex: 'title',
3034
title: '流程名称',

frontend/packages/flow-types/src/types/flow-approval.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,10 @@ export interface FlowContent {
176176
// 记录id
177177
recordId:number;
178178
// 流程id
179+
processId:string;
180+
// 流程设计id
179181
workId:string;
180-
// 流程编码
182+
// 流程设计编码
181183
workCode:string;
182184
// 节点id
183185
nodeId:string;

0 commit comments

Comments
 (0)