1 package org.apache.fulcrum.osworkflow.example.modules.actions;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 import org.apache.turbine.modules.actions.VelocityAction;
25 import org.apache.turbine.util.RunData;
26 import org.apache.velocity.context.Context;
27
28 /***
29 * This method is called by default when you load up the example webapp. It redirects the
30 * user to the Index.vm template.
31 *
32 * @author <a href="mailto:epugh@upstate.com">Eric Pugh</a>
33 */
34 public class Index extends VelocityAction
35 {
36
37 /***
38 * Default action is to load up the default screen (Index.vm) and list out the locations to go to:
39 * <ol>
40 * <li>Inventory Add Request</li>
41 * <li>Inventory Delete Request</li>
42 * <li>General Admin of Request</li>
43 * </ol>
44 *
45 * @param data Current RunData information
46 * @param context Context to populate
47 * @exception Exception Thrown on error
48 */
49 public void doPerform(RunData data, Context context) throws Exception
50 {
51
52 log.debug("doPerform action event called");
53 data.setScreenTemplate("Index.vm");
54
55 }
56
57 }