Class EvaluationContext
java.lang.Object
com.aquima.interactions.process.impl.EvaluationContext
- All Implemented Interfaces:
IEvaluationContext
This class holds the context information for a task that is being processed by a node handler.
- Since:
- 7.1
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EvaluationContext
(ProcessEvaluator evaluator, DateTimeValue time, IProcessNodeDefinition node, ITaskModel parentTask) -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the evaluator that may be used to evaluate expressions and request information about the current state.getNode()
This method returns the definition of the node that is currently being processed.This method returns the parent tasks of the current node.getQueue()
This method returns the current queue of tasks that need to be processed.getTime()
This method return the time the evaluation started.
-
Constructor Details
-
EvaluationContext
protected EvaluationContext(ProcessEvaluator evaluator, DateTimeValue time, IProcessNodeDefinition node, ITaskModel parentTask)
-
-
Method Details
-
getEvaluator
Description copied from interface:IEvaluationContext
This method returns the evaluator that may be used to evaluate expressions and request information about the current state.- Specified by:
getEvaluator
in interfaceIEvaluationContext
- Returns:
- The evaluator that may be used to evaluate expression.
-
getQueue
Description copied from interface:IEvaluationContext
This method returns the current queue of tasks that need to be processed. Once the queue is empty, the process evaluation is complete.- Specified by:
getQueue
in interfaceIEvaluationContext
- Returns:
- The queue containing the process tasks the need to be evaluated.
-
getNode
Description copied from interface:IEvaluationContext
This method returns the definition of the node that is currently being processed.- Specified by:
getNode
in interfaceIEvaluationContext
- Returns:
- the definition of the node that is currently being processed.
-
getParentTask
Description copied from interface:IEvaluationContext
This method returns the parent tasks of the current node. Any new tasks that are created should use this parent.- Specified by:
getParentTask
in interfaceIEvaluationContext
- Returns:
- the parent tasks of the current node.
-
getTime
Description copied from interface:IEvaluationContext
This method return the time the evaluation started.- Specified by:
getTime
in interfaceIEvaluationContext
- Returns:
- The time the evaluation started, never null.
-