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
63
64
65
66
67
package org.jeecg.common.base.vo;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.activiti.engine.history.HistoricProcessInstance;
 
import java.util.Date;
 
/**
 * @author pmc
 */
@Data
public class HistoricProcessInsVo {
 
    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 procDefId;
 
    private String tenantId;
 
    private String deployId;
 
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
 
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
 
    private Long duration;
 
    private String routeName;
 
    private String applyer;
 
    private Integer result;
 
    private String deleteReason;
 
    public HistoricProcessInsVo(HistoricProcessInstance 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.procDefId = pi.getProcessDefinitionId();
        this.tenantId = pi.getTenantId();
        this.deployId = pi.getDeploymentId();
        this.startTime = pi.getStartTime();
        this.endTime = pi.getEndTime();
        this.duration = pi.getDurationInMillis();
        this.deleteReason = pi.getDeleteReason();
    }
}