Class ServiceCallTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.ServiceCallTemplate
Template that can be used to initialize a service call definition.
- Since:
- 6.4
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionServiceCallTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, String callName, String typeName) Constructs the service call template with the required arguments. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExitEvent
(String exitEvent) This method adds a possible exit event for the service call.void
addExitEvent
(String typeName, String label) This method adds a possible exit event for the service call.addParameter
(String key, com.aquima.interactions.foundation.IValue value) This method adds a parameter to the service call template.addParameter
(String key, String strValue) This method adds a parameter to the service call template.This method returns the call name of the service call.protected com.aquima.interactions.foundation.utility.Pair<String>[]
This method returns the parameters of the service call.This method returns the type name of the service call.void
setParameter
(ParametersTemplate parameters) This method set the parameters to the service call template.com.aquima.interactions.portal.ds.IServiceCallDS
This method converts the template to a data source that can be used to initialize a service call definition.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
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
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
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
This method returns the call name of the service call.- Returns:
- The call name, never null
-
getTypeName
This method returns the type name of the service call.- Returns:
- The type name, never null
-
getParameters
This method returns the parameters of the service call.- Returns:
- The parameters, never null
-
addExitEvent
This method adds a possible exit event for the service call.- Parameters:
typeName
- The exit event typelabel
- The exit event label
-
addExitEvent
This method adds a possible exit event for the service call.- Parameters:
exitEvent
- The exit event
-
getExitEvents
-