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