Class NodeFactory

java.lang.Object
com.aquima.interactions.portal.model.flow.NodeFactory
All Implemented Interfaces:
INodeDetailsFactory

public class NodeFactory extends Object implements INodeDetailsFactory
INodeFactory implementation that creates portal specific flow nodes.
Since:
5.0
Author:
O. Kerpershoek
  • Constructor Details

    • NodeFactory

      public NodeFactory(IParserFactory parser, IModule appModel, IComposer composer)
      Constructs the node factory with the parser factory that should be used to parse conditions.
      Parameters:
      parser - the parser factory that should be used to parse conditions.
      appModel - The available service calls
      composer - The composer The composer which will be used to detect exit events for a page.
  • Method Details

    • createFlow

      public IFlowDetails createFlow(IFlowDS flowDS)
      Description copied from interface: INodeDetailsFactory
      This method should create a flow node using the provided parameters.
      Specified by:
      createFlow in interface INodeDetailsFactory
      Parameters:
      flowDS - Data source providing the information needed to initialize the flow node.
      Returns:
      The new node for the provided parameters.
    • createAction

      public IActionNodeDetails createAction(IActionNodeDS nodeDS, NodeID id)
      Description copied from interface: INodeDetailsFactory
      This method should create an action node using the provided parameters. This is usually a node representing a service call.
      Specified by:
      createAction in interface INodeDetailsFactory
      Parameters:
      nodeDS - Data source providing the information needed to initialize the node.
      id - The ID that should be assigned to the new node.
      Returns:
      The new node for the provided parameters.
    • createResult

      public IResultNodeDetails createResult(INodeDS nodeDS, NodeID id)
      Description copied from interface: INodeDetailsFactory
      This method should create a result node using the provided parameters. This node usually represents a page.
      Specified by:
      createResult in interface INodeDetailsFactory
      Parameters:
      nodeDS - Data source providing the information needed to initialize the node.
      id - The ID that should be assigned to the new node.
      Returns:
      The new node for the provided parameters.
    • getParameter

      protected Object getParameter(Map<String,Object> parameters, String key)
    • parseCondition

      protected IExpression parseCondition(String unitName, String condition, IParseListener listener)
    • parseParameters

      protected Parameters parseParameters(Object parametersObj)