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.actionitem.ActionItem; |
19 | |
import org.kuali.rice.kew.actionlist.CustomActionListAttribute; |
20 | |
import org.kuali.rice.kew.actionlist.DisplayParameters; |
21 | |
import org.kuali.rice.kew.actions.ActionSet; |
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 new DisplayParameters(new Integer(400)); |
31 | |
} |
32 | |
|
33 | |
@Override |
34 | |
public ActionSet getLegalActions(String principalId, ActionItem actionItem) throws Exception { |
35 | 0 | ActionSet actionSet = new ActionSet(); |
36 | 0 | actionSet.addAcknowledge(); |
37 | 0 | actionSet.addApprove(); |
38 | 0 | actionSet.addFyi(); |
39 | 0 | actionSet.addComplete(); |
40 | 0 | return actionSet; |
41 | |
} |
42 | |
|
43 | |
} |