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 org.kuali.rice.kew.actionitem.ActionItem;
20 import org.kuali.rice.kew.actiontaken.ActionTakenValue;
21
22 import java.io.Serializable;
23 import java.util.ArrayList;
24 import java.util.List;
25
26
27
28
29
30
31 public class ActivationContext implements Serializable {
32 private static final long serialVersionUID = 5063689034941122774L;
33
34 public static final boolean CONTEXT_IS_SIMULATION = true;
35
36 boolean simulation = false;
37 boolean activateRequests = false;
38 List<ActionTakenValue> simulatedActionsTaken = new ArrayList<ActionTakenValue>();
39 List<ActionItem> generatedActionItems = new ArrayList<ActionItem>();
40
41
42 public ActivationContext(boolean simulation) {
43 super();
44 this.simulation = simulation;
45 }
46
47 public ActivationContext(boolean simulation, List<ActionTakenValue> simulatedActionsTaken) {
48 super();
49 this.simulation = simulation;
50 this.simulatedActionsTaken = simulatedActionsTaken;
51 }
52
53 public boolean isActivateRequests() {
54 return this.activateRequests;
55 }
56
57 public void setActivateRequests(boolean activateRequests) {
58 this.activateRequests = activateRequests;
59 }
60
61 public List<ActionItem> getGeneratedActionItems() {
62 return generatedActionItems;
63 }
64
65 public void setGeneratedActionItems(List<ActionItem> generatedActionItems) {
66 this.generatedActionItems = generatedActionItems;
67 }
68
69 public List<ActionTakenValue> getSimulatedActionsTaken() {
70 return simulatedActionsTaken;
71 }
72
73 public void setSimulatedActionsTaken(List<ActionTakenValue> simulatedActionsTaken) {
74 this.simulatedActionsTaken = simulatedActionsTaken;
75 }
76
77 public boolean isSimulation() {
78 return simulation;
79 }
80
81 public void setSimulation(boolean simulation) {
82 this.simulation = simulation;
83 }
84
85 }