Class InternalConditionNode

java.lang.Object
com.aquima.interactions.flow.model.InternalNode
com.aquima.interactions.flow.model.InternalConditionNode

public class InternalConditionNode extends InternalNode
Internal class which represent a condition node in the flow graph.
Since:
7.0
Author:
F. van der Meer, O. Kerpershoek
  • Constructor Details

    • InternalConditionNode

      public InternalConditionNode(String flowName, INodeDS nodeDS)
      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

      protected void addEdge(InternalEdge internalEdge)
      Overrides:
      addEdge in class InternalNode
    • evaluate

      public 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.
      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

      protected String getExpression()
    • getDescription

      public String getDescription()
      Description copied from class: InternalNode
      Returns a very short descriptive text.
      Specified by:
      getDescription in class InternalNode
      Returns:
      a very short descriptive text.