shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
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
114
115
116
117
118
119
120
121
122
123
124
125
126
package com.iplatform.core.workflow;
 
import com.iplatform.core.SimpleVariable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
 
/**
 * 抽象的流程上下文对象。<p></p>
 * 由于目前只简单集成<code>Activiti7</code>,因此该上下文对象仅针对任务环节的环境构造。
 * @author 时克英
 * @date 2023-03-28
 */
public abstract class AbstractContext implements Context{
 
    protected final transient Logger logger = LoggerFactory.getLogger(getClass());
 
    @Override
    public String getProcessDefinitionId() {
        return this.processDefinitionId;
    }
 
    @Override
    public SimpleVariable getVariable(String key) {
        return null;
    }
 
    public void setProcessDefinitionId(String processDefinitionId) {
        this.processDefinitionId = processDefinitionId;
    }
 
    @Override
    public String getProcessInstanceId() {
        return processInstanceId;
    }
 
    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }
 
    @Override
    public String getTaskDefinitionId() {
        return taskDefinitionId;
    }
 
    public void setTaskDefinitionId(String taskDefinitionId) {
        this.taskDefinitionId = taskDefinitionId;
    }
 
    @Override
    public String getTaskInstanceId() {
        return taskInstanceId;
    }
 
    @Override
    public Actorable getActor() {
        return this.actorable;
    }
 
    @Override
    public String getCreator() {
        return this.creator;
    }
 
    public void setTaskInstanceId(String taskInstanceId) {
        this.taskInstanceId = taskInstanceId;
    }
 
    public void setCreator(String creator) {
        this.creator = creator;
    }
 
//    public Actorable getActorable() {
//        return actorable;
//    }
 
    public void setActor(Actorable actorable) {
        this.actorable = actorable;
    }
 
    @Override
    public String getBusinessKey() {
        return businessKey;
    }
 
    public void setBusinessKey(String businessKey) {
        this.businessKey = businessKey;
    }
 
    @Override
    public String getActorValue() {
        return actorValue;
    }
 
    public void setActorValue(String actorValue) {
        this.actorValue = actorValue;
    }
 
    @Override
    public String getProcessDefinitionKey() {
        return processDefinitionKey;
    }
 
    public void setProcessDefinitionKey(String processDefinitionKey) {
        this.processDefinitionKey = processDefinitionKey;
    }
 
    @Override
    public WorkflowForm getWorkflowForm() {
        return workflowForm;
    }
 
    public void setWorkflowForm(WorkflowForm workflowForm) {
        this.workflowForm = workflowForm;
    }
 
    private WorkflowForm workflowForm;
    private String processDefinitionKey;
    private String actorValue;
    private String businessKey;
    private Actorable actorable;
    private String creator;
    private String processDefinitionId;
    private String processInstanceId;
    private String taskDefinitionId;
    private String taskInstanceId;
}