1 | |
package org.kuali.rice.krms.framework.engine; |
2 | |
|
3 | |
import java.util.Collections; |
4 | |
import java.util.Map; |
5 | |
|
6 | |
public class PropositionResult { |
7 | |
|
8 | |
final boolean result; |
9 | |
Map<String,?> executionDetails; |
10 | |
|
11 | |
public PropositionResult(boolean result) { |
12 | 38 | this(result, null); |
13 | 38 | } |
14 | |
|
15 | 38 | public PropositionResult(boolean result, Map<String,?> executionDetails) { |
16 | 38 | this.result = result; |
17 | |
|
18 | 38 | if (executionDetails == null) { |
19 | 38 | this.executionDetails = Collections.emptyMap(); |
20 | |
} else { |
21 | 0 | this.executionDetails = Collections.unmodifiableMap(executionDetails); |
22 | |
} |
23 | 38 | } |
24 | |
|
25 | |
public boolean getResult() { |
26 | 43 | return result; |
27 | |
} |
28 | |
|
29 | |
public Map<String,?> getExecutionDetails() { |
30 | 3 | return executionDetails; |
31 | |
} |
32 | |
|
33 | |
} |