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 | 0 | boolean simulation = false; |
37 | 0 | boolean activateRequests = false; |
38 | 0 | List<ActionTakenValue> simulatedActionsTaken = new ArrayList<ActionTakenValue>(); |
39 | 0 | List<ActionItem> generatedActionItems = new ArrayList<ActionItem>(); |
40 | |
|
41 | |
|
42 | |
public ActivationContext(boolean simulation) { |
43 | 0 | super(); |
44 | 0 | this.simulation = simulation; |
45 | 0 | } |
46 | |
|
47 | |
public ActivationContext(boolean simulation, List<ActionTakenValue> simulatedActionsTaken) { |
48 | 0 | super(); |
49 | 0 | this.simulation = simulation; |
50 | 0 | this.simulatedActionsTaken = simulatedActionsTaken; |
51 | 0 | } |
52 | |
|
53 | |
public boolean isActivateRequests() { |
54 | 0 | return this.activateRequests; |
55 | |
} |
56 | |
|
57 | |
public void setActivateRequests(boolean activateRequests) { |
58 | 0 | this.activateRequests = activateRequests; |
59 | 0 | } |
60 | |
|
61 | |
public List<ActionItem> getGeneratedActionItems() { |
62 | 0 | return generatedActionItems; |
63 | |
} |
64 | |
|
65 | |
public void setGeneratedActionItems(List<ActionItem> generatedActionItems) { |
66 | 0 | this.generatedActionItems = generatedActionItems; |
67 | 0 | } |
68 | |
|
69 | |
public List<ActionTakenValue> getSimulatedActionsTaken() { |
70 | 0 | return simulatedActionsTaken; |
71 | |
} |
72 | |
|
73 | |
public void setSimulatedActionsTaken(List<ActionTakenValue> simulatedActionsTaken) { |
74 | 0 | this.simulatedActionsTaken = simulatedActionsTaken; |
75 | 0 | } |
76 | |
|
77 | |
public boolean isSimulation() { |
78 | 0 | return simulation; |
79 | |
} |
80 | |
|
81 | |
public void setSimulation(boolean simulation) { |
82 | 0 | this.simulation = simulation; |
83 | 0 | } |
84 | |
|
85 | |
} |