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 public class EngineState implements Serializable {
31
32 private static final long serialVersionUID = 2405363802483005090L;
33
34 private static int currentSimulationId = -10;
35
36 private RouteNodeInstance transitioningFrom;
37 private RouteNodeInstance transitioningTo;
38 private List completeNodeInstances = new ArrayList();
39 private List generatedRequests = new ArrayList();
40
41 public List getCompleteNodeInstances() {
42 return completeNodeInstances;
43 }
44 public void setCompleteNodeInstances(List completeNodeInstances) {
45 this.completeNodeInstances = completeNodeInstances;
46 }
47 public RouteNodeInstance getTransitioningFrom() {
48 return transitioningFrom;
49 }
50 public void setTransitioningFrom(RouteNodeInstance transitioningFrom) {
51 this.transitioningFrom = transitioningFrom;
52 }
53 public RouteNodeInstance getTransitioningTo() {
54 return transitioningTo;
55 }
56 public void setTransitioningTo(RouteNodeInstance transitioningTo) {
57 this.transitioningTo = transitioningTo;
58 }
59 public List getGeneratedRequests() {
60 return generatedRequests;
61 }
62 public void setGeneratedRequests(List generatedRequests) {
63 this.generatedRequests = generatedRequests;
64 }
65
66
67
68
69
70
71 public String getNextSimulationId() {
72 synchronized (EngineState.class) {
73 return String.valueOf(currentSimulationId--);
74 }
75 }
76
77 }