org.apache.agila.impl
Class NodeContextImpl

java.lang.Object
  extended by org.apache.agila.impl.NodeContextImpl
All Implemented Interfaces:
NodeContext

public class NodeContextImpl
extends java.lang.Object
implements NodeContext

Version:
$Id: $
Author:
Geir Magnusson Jr.

Field Summary
protected  Token currentToken
           
protected  Token nextToken
           
 
Constructor Summary
NodeContextImpl(Node node, Instance instance, TimerService timer, TaskService task, NotificationService notificationService)
           
 
Method Summary
 java.util.Map getAppData()
          Retrieves the data sent by an outside process
 java.lang.Object getBoundValue(java.lang.String name)
          Retrieves a binding value
 Token getCurrentExecutionToken()
          Returns the token for the current state of the instance
 java.util.Map getInstanceData()
           
 Token getNextExecutionToken()
          Returns the token for the next state of the instance in the event that the current step succeeds
 NotificationService getNotificationService()
           
 TaskService getTaskService()
           
 TimerService getTimerService()
           
protected  java.lang.Object jexlResolver(java.lang.String expression, java.util.Map vars)
           
 void setAppData(java.util.Map m)
           
 void setBoundValue(java.lang.String name, java.lang.Object value)
           
 void setCurrentExecutionToken(Token token)
           
 void setNextExecutionToken(Token token)
           
 void setTaskService(TaskService svc)
           
 void setTimerService(TimerService svc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentToken

protected Token currentToken

nextToken

protected Token nextToken
Constructor Detail

NodeContextImpl

public NodeContextImpl(Node node,
                       Instance instance,
                       TimerService timer,
                       TaskService task,
                       NotificationService notificationService)
Method Detail

getBoundValue

public java.lang.Object getBoundValue(java.lang.String name)
Retrieves a binding value

Specified by:
getBoundValue in interface NodeContext
Parameters:
name -
Returns:

setBoundValue

public void setBoundValue(java.lang.String name,
                          java.lang.Object value)
Specified by:
setBoundValue in interface NodeContext

setCurrentExecutionToken

public void setCurrentExecutionToken(Token token)

getCurrentExecutionToken

public Token getCurrentExecutionToken()
Description copied from interface: NodeContext
Returns the token for the current state of the instance

Specified by:
getCurrentExecutionToken in interface NodeContext

setNextExecutionToken

public void setNextExecutionToken(Token token)

getNextExecutionToken

public Token getNextExecutionToken()
Description copied from interface: NodeContext
Returns the token for the next state of the instance in the event that the current step succeeds

Specified by:
getNextExecutionToken in interface NodeContext
Returns:

setTimerService

public void setTimerService(TimerService svc)

getTimerService

public TimerService getTimerService()
Specified by:
getTimerService in interface NodeContext

setTaskService

public void setTaskService(TaskService svc)

getTaskService

public TaskService getTaskService()
Specified by:
getTaskService in interface NodeContext

getNotificationService

public NotificationService getNotificationService()
Specified by:
getNotificationService in interface NodeContext

getAppData

public java.util.Map getAppData()
Retrieves the data sent by an outside process

Specified by:
getAppData in interface NodeContext
Returns:

setAppData

public void setAppData(java.util.Map m)

getInstanceData

public java.util.Map getInstanceData()
Specified by:
getInstanceData in interface NodeContext

jexlResolver

protected java.lang.Object jexlResolver(java.lang.String expression,
                                        java.util.Map vars)
                                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.