Class FunctionCallTemplate

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.project.FunctionCallTemplate

public class FunctionCallTemplate extends AbstractReportingTemplate
Template that can be used to initialize a function call definition
Since:
10.3
Author:
T. van der Griend
  • Constructor Details

    • FunctionCallTemplate

      public FunctionCallTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, String callName, String moduleName, String flowName)
      Constructs the function call template with the required arguments.
      Parameters:
      report - Report that should be used to add error and warnings to.
      moduleName - The moduleName of the function.
      flowName - The flowName of the function.
  • Method Details

    • addInputParameter

      public FunctionCallInputParameterTemplate addInputParameter(String parameterName, String expression)
      This method adds an input parameter to the function call template.
      Parameters:
      parameterName - The parameter name of the input parameter.
      expression - The expression of the input parameter.
    • addOutputParameter

      public FunctionCallOutputParameterTemplate addOutputParameter(String parameterName, String outputAttribute)
      This method adds an output parameter to the function call template.
      Parameters:
      parameterName - The parameter name of the ouput parameter.
      outputAttribute - The output attribute of the output parameter.
    • toDataSource

      public com.aquima.interactions.portal.ds.IFunctionCallDS toDataSource()
      This method converts the template to a data source that can be used to initialize a function call definition.
      Returns:
      a data source that can be used to initialize a function call definition.
    • getName

      public String getName()
      This method returns the name of the function call.
      Returns:
      The function call name.
    • getFlowReference

      public com.aquima.interactions.portal.ds.FlowReference getFlowReference()
      This method returns the flow reference used for executing the function call.
      Returns:
      The flow reference.
    • getInputParameters

      public List<FunctionCallInputParameterTemplate> getInputParameters()
      This method returns the input parameters of the function call.
      Returns:
      The a list of FunctionCallInputParameterTemplate.
    • getOutputParameters

      public List<FunctionCallOutputParameterTemplate> getOutputParameters()
      This method returns the input parameters of the function call.
      Returns:
      The a list of FunctionCallOutputParameterTemplate.