org.apache.agila.example
Class LeaveApprovalTask

java.lang.Object
  extended by org.apache.agila.model.node.BaseNodeImpl
      extended by org.apache.agila.example.LeaveApprovalTask
All Implemented Interfaces:
Node, TaskActivity

public class LeaveApprovalTask
extends BaseNodeImpl
implements TaskActivity


Constructor Summary
LeaveApprovalTask()
           
 
Method Summary
 Connection[] doEnd(NodeContext ctx)
          Second 'work method' for a node, called after doStart().
 boolean doStart(NodeContext ctx)
          Default implementation of doStart() - just returns true to allow the processing to continue
 Renderer getRenderer(NodeContext ctx, java.lang.Class type)
           
 ResponseHandler getResponseHandler(NodeContext ctx, java.lang.Class type)
           
 
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
 

Constructor Detail

LeaveApprovalTask

public LeaveApprovalTask()
Method Detail

doStart

public boolean doStart(NodeContext ctx)
Description copied from class: BaseNodeImpl
Default implementation of doStart() - just returns true to allow the processing to continue

Specified by:
doStart in interface Node
Overrides:
doStart in class BaseNodeImpl
Parameters:
ctx - execution context for this node
Returns:
true if MessageProcess automatically continues exection of the instance, or false if not

doEnd

public Connection[] doEnd(NodeContext ctx)
Description copied from interface: Node
Second 'work method' for a node, called after doStart(). This method should do any post action (task, timer, etc) cleanup and then make a decision among the possible connections which connection (or connections, in the case of a node that forks) should be transversed.

Specified by:
doEnd in interface Node
Returns:
one or more connections to transverse, or null if processing for this instance should stop

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.