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 | |
import org.kuali.rice.kew.web.session.UserSession; |
23 | |
|
24 | |
|
25 | 0 | public class CustomActionListAttributeImpl implements CustomActionListAttribute { |
26 | |
|
27 | |
private static final long serialVersionUID = 6129615406164385616L; |
28 | |
|
29 | |
public DisplayParameters getDocHandlerDisplayParameters(UserSession userSession, ActionItem actionItem) throws Exception { |
30 | 0 | return new DisplayParameters(new Integer(400)); |
31 | |
} |
32 | |
|
33 | |
public ActionSet getLegalActions(UserSession userSession, ActionItem actionItem) throws Exception { |
34 | 0 | ActionSet actionSet = new ActionSet(); |
35 | 0 | actionSet.addAcknowledge(); |
36 | 0 | actionSet.addApprove(); |
37 | 0 | actionSet.addFyi(); |
38 | 0 | actionSet.addComplete(); |
39 | 0 | return actionSet; |
40 | |
} |
41 | |
|
42 | |
} |