org.apache.agila.example
Class LeaveApplicationTask
java.lang.Object
org.apache.agila.model.node.BaseNodeImpl
org.apache.agila.example.LeaveApplicationTask
- All Implemented Interfaces:
- Node, TaskActivity
public class LeaveApplicationTask
- extends BaseNodeImpl
- implements TaskActivity
Task to get data from user about their leave. It needs no input, but
will put two values out to the app data, 'numdays', and 'reason'
Field Summary |
protected static java.lang.String |
NUMDAYS
|
protected static java.lang.String |
REASON
|
Methods inherited from class org.apache.agila.model.node.BaseNodeImpl |
addActor, addBinding, addInboundConnection, addOutboundConnection, getActors, getBindings, getDisplayName, getInboundConnections, getNodeId, getOutboundConnections, setDisplayName, setInboundConnections, setNodeId, setOutboundConnections |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NUMDAYS
protected static final java.lang.String NUMDAYS
- See Also:
- Constant Field Values
REASON
protected static final java.lang.String REASON
- See Also:
- Constant Field Values
LeaveApplicationTask
public LeaveApplicationTask()
getBar
public int getBar()
setBar
public void setBar(int bar)
getFoo
public java.lang.String getFoo()
setFoo
public void setFoo(java.lang.String foo)
doStart
public boolean doStart(NodeContext ctx)
- Start method for the activity. Sets up a tast for the user
- Specified by:
doStart
in interface Node
- Overrides:
doStart
in class BaseNodeImpl
- Parameters:
ctx
-
- Returns:
doEnd
public Connection[] doEnd(NodeContext ctx)
- End method. Gets the data from the context's app data, and writes to
instance variables through the bindings
- Specified by:
doEnd
in interface Node
- Parameters:
ctx
-
- Returns:
getRenderer
public Renderer getRenderer(NodeContext ctx,
java.lang.Class type)
- Specified by:
getRenderer
in interface TaskActivity
getResponseHandler
public ResponseHandler getResponseHandler(NodeContext ctx,
java.lang.Class type)
- Specified by:
getResponseHandler
in interface TaskActivity
Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.