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
package org.jeecg.common.base.vo;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.activiti.engine.task.Task;
 
import java.util.Date;
import java.util.Map;
 
/**
 * @author pmc
 */
@Data
public class TaskVo {
 
    private String id;
 
    private String name;
 
    private String key;
 
    private String description;
 
    private String executionId;
 
    private String assignee;
 
    private String owner;
 
    private String procDefId;
 
    private String procInstId;
 
    private String applyer;
 
    private String category;
 
    private Integer priority;
 
    private Boolean isSuspended;
 
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
 
    private String processName;
    private String title;
 
    private String routeName;
 
    private String businessKey;
 
    private String tableId;
    private String tableName;
    private Integer status;
    private Integer result;
    private Map dataMap;
    public TaskVo(Task task){
        this.id = task.getId();
        this.name = task.getName();
        this.key = task.getTaskDefinitionKey();
        this.description = task.getDescription();
        this.executionId = task.getExecutionId();
        this.assignee = task.getAssignee();
        this.owner = task.getOwner();
        this.procDefId = task.getProcessDefinitionId();
        this.procInstId = task.getProcessInstanceId();
        this.priority = task.getPriority();
        this.isSuspended = task.isSuspended();
        this.category = task.getCategory();
        this.createTime = task.getCreateTime();
    }
}