org.apache.agila.example
Class LeaveApplicationTask

java.lang.Object
  extended by org.apache.agila.model.node.BaseNodeImpl
      extended by 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
           
 
Constructor Summary
LeaveApplicationTask()
           
 
Method Summary
 Connection[] doEnd(NodeContext ctx)
          End method.
 boolean doStart(NodeContext ctx)
          Start method for the activity.
 int getBar()
           
 java.lang.String getFoo()
           
 Renderer getRenderer(NodeContext ctx, java.lang.Class type)
           
 ResponseHandler getResponseHandler(NodeContext ctx, java.lang.Class type)
           
 void setBar(int bar)
           
 void setFoo(java.lang.String foo)
           
 
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
 

Field Detail

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
Constructor Detail

LeaveApplicationTask

public LeaveApplicationTask()
Method Detail

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.