Class InternalConditionNode
java.lang.Object
com.aquima.interactions.flow.model.InternalNode
com.aquima.interactions.flow.model.InternalConditionNode
Internal class which represent an condition node in the flow graph.
- Since:
- 7.0
- Author:
- F. van der Meer, O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionInternalConditionNode
(String flowName, INodeDS nodeDS) Constructs a condition node by using the data source. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addEdge
(InternalEdge internalEdge) evaluate
(IFlowHandler handler) This function evaluates the condition node and returns the corresponding edge which is used to choose the next node in the flow graph.Returns a very short descriptive text.protected String
Methods inherited from class com.aquima.interactions.flow.model.InternalNode
getDefaultEdge, getDetails, getEdges, getExceptionEdge, getId, getTargetId, getType, locateEdge, setDetails, sortEdges
-
Constructor Details
-
InternalConditionNode
Constructs a condition node by using the data source.- Parameters:
flowName
- The flow name this node is part of.nodeDS
- The data source for node specific data.- Throws:
InitializationException
- This exception is thrown when the node could not be initialized.
-
-
Method Details
-
addEdge
- Overrides:
addEdge
in classInternalNode
- Throws:
InitializationException
-
evaluate
This function evaluates the condition node and returns the corresponding edge which is used to choose the next node in the flow graph.- Parameters:
handler
- The flow handler which is used to evaluate an expression.- Returns:
- The edge which is used to evaluate to the next node in the graph.
- Throws:
FlowConditionException
- When the evaluate of the condition failed.
-
getExpression
-
getDescription
Description copied from class:InternalNode
Returns a very short descriptive text.- Specified by:
getDescription
in classInternalNode
-