01: /*
02: * Copyright 2005-2007 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package edu.iu.uis.eden.engine;
18:
19: import java.io.Serializable;
20: import java.util.ArrayList;
21: import java.util.List;
22:
23: /**
24: * Represents the current Activation context of the workflow engine
25: *
26: * @author delyea
27: */
28: public class ActivationContext implements Serializable {
29: private static final long serialVersionUID = 5063689034941122774L;
30:
31: public static final boolean CONTEXT_IS_SIMULATION = true;
32:
33: boolean simulation = !CONTEXT_IS_SIMULATION;
34: boolean actionsToPerform = false;
35: List simulatedActionsTaken = new ArrayList();
36: List generatedActionItems = new ArrayList();
37:
38: public ActivationContext(boolean simulation) {
39: super ();
40: this .simulation = simulation;
41: }
42:
43: public ActivationContext(boolean simulation,
44: List simulatedActionsTaken) {
45: super ();
46: this .simulation = simulation;
47: this .simulatedActionsTaken = simulatedActionsTaken;
48: }
49:
50: public boolean isActionsToPerform() {
51: return actionsToPerform;
52: }
53:
54: public void setActionsToPerform(boolean actionsToPerform) {
55: this .actionsToPerform = actionsToPerform;
56: }
57:
58: public List getGeneratedActionItems() {
59: return generatedActionItems;
60: }
61:
62: public void setGeneratedActionItems(List generatedActionItems) {
63: this .generatedActionItems = generatedActionItems;
64: }
65:
66: public List getSimulatedActionsTaken() {
67: return simulatedActionsTaken;
68: }
69:
70: public void setSimulatedActionsTaken(List simulatedActionsTaken) {
71: this .simulatedActionsTaken = simulatedActionsTaken;
72: }
73:
74: public boolean isSimulation() {
75: return simulation;
76: }
77:
78: public void setSimulation(boolean simulation) {
79: this.simulation = simulation;
80: }
81:
82: }
|