Class FlowEngineTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.flow.FlowEngineTemplate
This template may be used to initialize a flow engine.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs the template.FlowEngineTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, ApplicationTemplate applicationTemplate) Constructs the template with the provided initialization report.FlowEngineTemplate
(ApplicationTemplate applicationTemplate) Constructs the template with a new initialization report. -
Method Summary
Modifier and TypeMethodDescriptionThis method may be used to add a flow definition.addFlowTemplate
(String flowName) This method may be used to add a flow definition.addInternalFlow
(String flowName) This method may be used to add an internal flow definition.addInternalFlowTemplate
(String flowName) This method may be used to add an internal flow definition.protected Iterator
<FlowTemplate> getFlows()
protected void
removeFlow
(String flowName) com.aquima.interactions.flow.ds.IFlowEngineDS
This method converts the template to a data source that can be used to initialize a flow engine.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
FlowEngineTemplate
public FlowEngineTemplate()Constructs the template. -
FlowEngineTemplate
Constructs the template with a new initialization report.- Parameters:
applicationTemplate
- The application used for servicecalls/roles/channel information.
-
FlowEngineTemplate
public FlowEngineTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, ApplicationTemplate applicationTemplate) Constructs the template with the provided initialization report.- Parameters:
report
- The initialization report that should be used to add error and warnings to.applicationTemplate
- The application used for servicecalls/roles/channel information.
-
-
Method Details
-
getFlows
-
addFlow
This method may be used to add a flow definition. The method will invoke the addFlowTemplate method, and return the start node of the added template.- Parameters:
flowName
- The name of the flow that should be added.- Returns:
- The start node of the added flow.
-
addFlowTemplate
This method may be used to add a flow definition.- Parameters:
flowName
- The name of the flow that should be added.- Returns:
- Flow template representing the added flow.
-
addInternalFlow
This method may be used to add an internal flow definition.- Parameters:
flowName
- The name of the flow that should be added.- Returns:
- Flow template representing the added flow.
-
addInternalFlowTemplate
This method may be used to add an internal flow definition.- Parameters:
flowName
- The name of the flow that should be added.- Returns:
- Flow template representing the added flow.
-
removeFlow
-
toDataSource
public com.aquima.interactions.flow.ds.IFlowEngineDS toDataSource()This method converts the template to a data source that can be used to initialize a flow engine.- Returns:
- a data source that can be used to initialize a flow engine.
-