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
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
package org.jeecg.modules.approval.model.vo;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.activiti.engine.history.HistoricTaskInstance;
 
import java.util.Date;
import java.util.Map;
 
/**
 * 任务VO
 *
 * @author LEN
 * @since 2019/6/15 15:19
 */
@Data
public class HistoryTaskVO {
    /**
     * 任务id
     */
    private String id;
 
    /**
     * 审批名称
     */
    private String approveName;
 
    /**
     * 任务节点名称
     */
    private String taskNodeName;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
 
    /**
     * 代理人
     */
    private String assignee;
    /**
     * 流程实例id
     */
    private String processInstanceId;
    /**
     * 流程定义id
     */
    private String processDefinitionId;
 
    /**
     * 流程定义key
     */
    private String processDefinitionKey;
    /**
     * 流程定义key
     */
    private String processDefinitionName;
 
    /**
     * 描述
     */
    private String description;
    /**
     * 命令空间
     */
    private String category;
 
    /**
     * 用户名
     */
    private String userName;
    /**
     * 理由
     */
    private String remarks;
    /**
     * 地址
     */
    private String taskUrl;
 
    /**
     * 审批结果 0拒绝 1同意 2进行中,3已取消
     *
     */
    private String result;
 
    private String resultStr;
 
    /**
     * 流程是否结束 true结束,false未结束
     */
    private Boolean finished;
 
    /**
     * 其他参数
     */
    private Map<String,Object> param;
 
    public HistoryTaskVO() {
    }
 
    public HistoryTaskVO(HistoricTaskInstance t) {
            this.id = t.getId();
            this.taskNodeName = t.getName();
            this.createTime = t.getCreateTime();
            this.assignee = t.getAssignee();
            this.processInstanceId = t.getProcessInstanceId();
            this.processDefinitionId = t.getProcessDefinitionId();
            this.description = t.getDescription();
            this.category = t.getCategory();
    }
}