1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package edu.sampleu.travel.workflow; |
17 | |
|
18 | |
import org.kuali.rice.kew.api.action.ActionItem; |
19 | |
import org.kuali.rice.kew.actionlist.CustomActionListAttribute; |
20 | |
import org.kuali.rice.kew.api.action.ActionSet; |
21 | |
import org.kuali.rice.kew.api.actionlist.DisplayParameters; |
22 | |
|
23 | |
|
24 | 0 | public class CustomActionListAttributeImpl implements CustomActionListAttribute { |
25 | |
|
26 | |
private static final long serialVersionUID = 6129615406164385616L; |
27 | |
|
28 | |
@Override |
29 | |
public DisplayParameters getDocHandlerDisplayParameters(String principalId, ActionItem actionItem) throws Exception { |
30 | 0 | return DisplayParameters.Builder.create(new Integer(400)).build(); |
31 | |
} |
32 | |
|
33 | |
@Override |
34 | |
public ActionSet getLegalActions(String principalId, ActionItem actionItem) throws Exception { |
35 | 0 | ActionSet actionSet = ActionSet.Builder.create().build(); |
36 | 0 | actionSet.addAcknowledge(); |
37 | 0 | actionSet.addApprove(); |
38 | 0 | actionSet.addFyi(); |
39 | 0 | actionSet.addComplete(); |
40 | 0 | return actionSet; |
41 | |
} |
42 | |
|
43 | |
} |