01: package org.jbpm.graph.log;
02:
03: import java.util.Date;
04:
05: import org.jbpm.graph.def.Node;
06: import org.jbpm.graph.exe.ProcessInstance;
07:
08: public class ProcessStateLog extends NodeLog {
09:
10: private static final long serialVersionUID = 1L;
11:
12: ProcessInstance subProcessInstance;
13:
14: public ProcessStateLog() {
15: }
16:
17: public ProcessStateLog(Node node, Date nodeEnter, Date date,
18: ProcessInstance subProcessInstance) {
19: super (node, nodeEnter, date);
20: this .subProcessInstance = subProcessInstance;
21: }
22:
23: public String toString() {
24: return "sub-process[" + subProcessInstance.getId() + "]";
25: }
26:
27: public ProcessInstance getSubProcessInstance() {
28: return subProcessInstance;
29: }
30:
31: public void setSubProcessInstance(ProcessInstance subProcessInstance) {
32: this.subProcessInstance = subProcessInstance;
33: }
34: }
|