Class InternalActionNode

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

public class InternalActionNode extends InternalNode
Internal class which represent an action node in the flow graph. The internal action node has a reference to a IActionNodeDetails object which is used in the process function to execute the desired action.
Since:
7.0
Author:
F. van der Meer
  • Constructor Details

    • InternalActionNode

      public InternalActionNode(INodeDetailsFactory factory, String flowName, INodeDS nodeDs)
      Constructs the internal action node.
      Parameters:
      factory - The node details factory to locate the action details.
      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

    • process

      public InternalEdge process(IFlowHandler handler)
      Processes the current node, and executes the action by notifying the flow-handler.
      Parameters:
      handler - The flow handler which can execute the desired action.
      Returns:
      The exit state of the action.
      Throws:
      FlowActionException - This exception may be thrown when the processing of the action node fails.
      FlowExitEventException - This exception may be thrown when exit event could not be mapped to a correct edge.
    • 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.
    • getActionId

      protected String getActionId()