ActEntity.java
1.05 KB
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
/**
* Copyright © 2015-2018 ODM All rights reserved.
*/
package com.thinkgem.jeesite.common.persistence;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlTransient;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.thinkgem.jeesite.modules.act.entity.Act;
/**
* Activiti Entity类
* @author ThinkGem
* @version 2013-05-28
*/
public abstract class ActEntity<T> extends DataEntity<T> implements Serializable {
private static final long serialVersionUID = 1L;
protected Act act; // 流程任务对象
public ActEntity() {
super();
}
public ActEntity(String id) {
super(id);
}
@XmlTransient
@JsonIgnore
public Act getAct() {
if (act == null){
act = new Act();
}
return act;
}
public void setAct(Act act) {
this.act = act;
}
/**
* 获取流程实例ID
* @return
*/
public String getProcInsId() {
return this.getAct().getProcInsId();
}
/**
* 设置流程实例ID
* @param procInsId
*/
public void setProcInsId(String procInsId) {
this.getAct().setProcInsId(procInsId);
}
}