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