Class ServiceCallTemplate

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.ServiceCallTemplate

public class ServiceCallTemplate extends AbstractReportingTemplate
Template that can be used to initialize a service call definition.
Since:
6.4
Author:
Jon van Leuven
  • Constructor Details

    • ServiceCallTemplate

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

    • addParameter

      public ServiceCallTemplate addParameter(String key, String strValue)
      This method adds a parameter to the service call template.
      Parameters:
      key - The key of the parameter.
      strValue - The value of the parameter.
    • addParameter

      public ServiceCallTemplate addParameter(String key, com.aquima.interactions.foundation.IValue value)
      This method adds a parameter to the service call template.
      Parameters:
      key - The key of the parameter.
      value - The value of the parameter.
    • setParameter

      public void setParameter(ParametersTemplate parameters)
      This method set the parameters to the service call template.
      Parameters:
      parameters - The parameters.
    • toDataSource

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

      public String getCallName()
      This method returns the call name of the service call.
      Returns:
      The call name, never null
    • getTypeName

      public String getTypeName()
      This method returns the type name of the service call.
      Returns:
      The type name, never null
    • getParameters

      public ParametersTemplate getParameters()
      This method returns the parameters of the service call.
      Returns:
      The parameters, never null
    • addExitEvent

      public void addExitEvent(String typeName, String label)
      This method adds a possible exit event for the service call.
      Parameters:
      typeName - The exit event type
      label - The exit event label
    • addExitEvent

      public void addExitEvent(String exitEvent)
      This method adds a possible exit event for the service call.
      Parameters:
      exitEvent - The exit event
    • getExitEvents

      protected com.aquima.interactions.foundation.utility.Pair<String>[] getExitEvents()