1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.rice.kew.engine; |
18 | |
|
19 | |
import java.io.Serializable; |
20 | |
import java.util.ArrayList; |
21 | |
import java.util.List; |
22 | |
|
23 | |
import org.kuali.rice.kew.engine.node.RouteNodeInstance; |
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | 0 | public class EngineState implements Serializable { |
32 | |
|
33 | |
private static final long serialVersionUID = 2405363802483005090L; |
34 | |
|
35 | 0 | private static int currentSimulationId = -10; |
36 | |
|
37 | |
private RouteNodeInstance transitioningFrom; |
38 | |
private RouteNodeInstance transitioningTo; |
39 | 0 | private List completeNodeInstances = new ArrayList(); |
40 | 0 | private List generatedRequests = new ArrayList(); |
41 | |
|
42 | |
public List getCompleteNodeInstances() { |
43 | 0 | return completeNodeInstances; |
44 | |
} |
45 | |
public void setCompleteNodeInstances(List completeNodeInstances) { |
46 | 0 | this.completeNodeInstances = completeNodeInstances; |
47 | 0 | } |
48 | |
public RouteNodeInstance getTransitioningFrom() { |
49 | 0 | return transitioningFrom; |
50 | |
} |
51 | |
public void setTransitioningFrom(RouteNodeInstance transitioningFrom) { |
52 | 0 | this.transitioningFrom = transitioningFrom; |
53 | 0 | } |
54 | |
public RouteNodeInstance getTransitioningTo() { |
55 | 0 | return transitioningTo; |
56 | |
} |
57 | |
public void setTransitioningTo(RouteNodeInstance transitioningTo) { |
58 | 0 | this.transitioningTo = transitioningTo; |
59 | 0 | } |
60 | |
public List getGeneratedRequests() { |
61 | 0 | return generatedRequests; |
62 | |
} |
63 | |
public void setGeneratedRequests(List generatedRequests) { |
64 | 0 | this.generatedRequests = generatedRequests; |
65 | 0 | } |
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
public Long getNextSimulationId() { |
73 | 0 | synchronized (EngineState.class) { |
74 | 0 | return new Long(currentSimulationId--); |
75 | 0 | } |
76 | |
} |
77 | |
|
78 | |
} |