Class NodeFactory
java.lang.Object
com.aquima.interactions.portal.model.flow.NodeFactory
- All Implemented Interfaces:
INodeDetailsFactory
INodeFactory implementation that creates portal specific flow nodes.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionNodeFactory
(IParserFactory parser, IModule appModel, IComposer composer) Constructs the node factory with the parser factory that should be used to parse conditions. -
Method Summary
Modifier and TypeMethodDescriptioncreateAction
(IActionNodeDS nodeDS, NodeID id) This method should create an action node using the provided parameters.createFlow
(IFlowDS flowDS) This method should create a flow node using the provided parameters.createResult
(INodeDS nodeDS, NodeID id) This method should create a result node using the provided parameters.protected Object
getParameter
(Map<String, Object> parameters, String key) protected IExpression
parseCondition
(String unitName, String condition, IParseListener listener) protected Parameters
parseParameters
(Object parametersObj)
-
Constructor Details
-
NodeFactory
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 callscomposer
- The composer The composer which will be used to detect exit events for a page.
-
-
Method Details
-
createFlow
Description copied from interface:INodeDetailsFactory
This method should create a flow node using the provided parameters.- Specified by:
createFlow
in interfaceINodeDetailsFactory
- Parameters:
flowDS
- Data source providing the information needed to initialize the flow node.- Returns:
- The new node for the provided parameters.
-
createAction
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 interfaceINodeDetailsFactory
- 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
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 interfaceINodeDetailsFactory
- 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
-
parseCondition
protected IExpression parseCondition(String unitName, String condition, IParseListener listener) throws RuleEngineException - Throws:
RuleEngineException
-
parseParameters
-