zhuguifei
2025-04-28 442928123f63ee497d766f9a7a14f0a6ee067e25
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
package org.jeecg.common.base.vo;
 
import lombok.Data;
import org.activiti.engine.runtime.ProcessInstance;
 
/**
 * @author pmc
 */
@Data
public class ProcessInsVo {
 
    private String id;
 
    private String name;
 
    private String key;
 
    private Integer version;
 
    private String description;
 
    private String businessKey;
 
    private String tableId;
    private String tableName;
 
    private String parentId;
 
    private String procDefId;
 
    private String procInstId;
 
    private String actId;
 
    private Boolean isSuspended;
 
    private String tenantId;
 
    private String deployId;
 
    private String currTaskName;
 
    private String routeName;
 
    private String applyer;
 
    public ProcessInsVo(ProcessInstance pi){
        this.id = pi.getId();
        this.name = pi.getName();
        this.key = pi.getProcessDefinitionKey();
        this.version = pi.getProcessDefinitionVersion();
        this.description = pi.getDescription();
        this.businessKey = pi.getBusinessKey();
        this.parentId = pi.getParentId();
        this.procDefId = pi.getProcessDefinitionId();
        this.procInstId = pi.getProcessInstanceId();
        this.actId = pi.getActivityId();
        this.isSuspended = pi.isSuspended();
        this.tenantId = pi.getTenantId();
        this.deployId = pi.getDeploymentId();
    }
}