1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.xml.export;
17
18 import java.util.Collections;
19 import java.util.LinkedHashMap;
20 import java.util.List;
21 import java.util.Map;
22
23 import org.kuali.rice.kew.rule.GenericWorkflowAttribute;
24
25
26
27
28
29
30
31 public class KualiOrgReviewAttribute extends GenericWorkflowAttribute {
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47 private static final long serialVersionUID = 6717444752714424385L;
48
49 private static final String FIN_COA_CD = "fin_coa_cd";
50 private static final String ORG_CD = "org_cd";
51
52 private String finCoaCode;
53 private String orgCode;
54
55
56
57
58
59
60 @Override
61 public Map<String, String> getProperties() {
62 Map<String,String> properties = new LinkedHashMap<String, String>();
63 properties.put(FIN_COA_CD, finCoaCode);
64 properties.put(ORG_CD, orgCode);
65 return properties;
66 }
67
68 public List validateRoutingData(Map paramMap) {
69 return validateInputMap(paramMap);
70 }
71
72 public List validateRuleData(Map paramMap) {
73 return validateInputMap(paramMap);
74 }
75
76 private List validateInputMap(Map paramMap) {
77 this.finCoaCode = (String) paramMap.get(FIN_COA_CD);
78 this.orgCode = (String) paramMap.get(ORG_CD);
79 return Collections.emptyList();
80 }
81
82
83
84
85 public String getFinCoaCode() {
86 return this.finCoaCode;
87 }
88
89
90
91
92 public void setFinCoaCode(String finCoaCode) {
93 this.finCoaCode = finCoaCode;
94 }
95
96
97
98
99 public String getOrgCode() {
100 return this.orgCode;
101 }
102
103
104
105
106 public void setOrgCode(String orgCode) {
107 this.orgCode = orgCode;
108 }
109
110 }