1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.rice.kew.actions.asyncservices;
18
19 import java.io.Serializable;
20
21
22
23
24
25
26
27
28
29 public class ActionInvocation implements Serializable {
30
31 private static final long serialVersionUID = -3828610998370758705L;
32 private final String actionItemId;
33 private final String actionCode;
34
35 public ActionInvocation(String actionItemId, String actionCode) {
36 if (actionItemId == null) {
37 throw new IllegalArgumentException("Action Item Id cannot be null.");
38 }
39 if (org.apache.commons.lang.StringUtils.isEmpty(actionCode)) {
40 throw new IllegalArgumentException("Action Code cannot be empty.");
41 }
42 this.actionItemId = actionItemId;
43 this.actionCode = actionCode;
44 }
45
46 public String getActionCode() {
47 return actionCode;
48 }
49
50 public String getActionItemId() {
51 return actionItemId;
52 }
53
54 }