Class FlowEngineTemplate

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.flow.FlowEngineTemplate

public class FlowEngineTemplate extends AbstractReportingTemplate
This template may be used to initialize a flow engine.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • FlowEngineTemplate

      public FlowEngineTemplate()
      Constructs the template.
    • FlowEngineTemplate

      public FlowEngineTemplate(ApplicationTemplate applicationTemplate)
      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

      protected Iterator<FlowTemplate> getFlows()
    • addFlow

      public StartNodeTemplate addFlow(String flowName)
      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

      public FlowTemplate addFlowTemplate(String flowName)
      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

      public StartNodeTemplate addInternalFlow(String flowName)
      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

      public FlowTemplate addInternalFlowTemplate(String flowName)
      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

      protected void removeFlow(String flowName)
    • 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.