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