Class ApplicationTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.ApplicationTemplate
- All Implemented Interfaces:
IApplicationTemplate
This class may be used to quickly initialize a model.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an application template with name "test-app".ApplicationTemplate
(String name) Construct an application template with a specific name.ApplicationTemplate
(String name, com.aquima.interactions.foundation.Version version) Construct an application template with a specific name.ApplicationTemplate
(String name, String branchName) Construct an application template with a specific name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFunctionCall
(FunctionCallTemplate functionCall) This method adds a function call.addFunctionCall
(String functionCallName, String moduleName, String flowName) protected void
addMapping
(MappingTemplate mapping) addMapping
(String name, MetaModelTemplate sourceModel, MetaModelTemplate targetModel) void
addMaskCall
(MaskCallTemplate maskCall) This method adds a mask call.void
addServiceCall
(ServiceCallTemplate serviceCall) This method adds a service call.addServiceCall
(String serviceCallName, String serviceTypeName) This method creates and adds a service call.addWebService
(String serviceName) This method adds an exposed webservice.addWebService
(String serviceName, com.aquima.interactions.project.ModuleID moduleId) This method adds a service mapping.protected static com.aquima.interactions.foundation.report.IInitializationReport
createReport
(String appName) com.aquima.interactions.foundation.ApplicationID
This method returns the ID of the application.This method returns the communication definitions.This method returns the composer of the application.This method returns the configuration of the application.This method returns the factory manager of the application.This method returns the flow engine of the application.getFunctionCall
(String functionCallName) This method returns the function call for a function call name.protected Iterator
<FunctionCallTemplate> This method returns a test case license.com.aquima.interactions.foundation.ILicenseProvider
This method returns the license provider for the test application.protected Iterator
<MappingTemplate> protected Iterator
<MaskCallTemplate> This method returns the match engine of the application.This method returns the meta model of the application.getModule
(com.aquima.interactions.project.ModuleID moduleId) com.aquima.interactions.project.ModuleID
This method returns the ID of the main module.protected Iterator
<ApplicationTemplate> getName()
This method returns the name of the application.com.aquima.interactions.portal.IPortalMessageBus
This method returns the configured portal message bus for the test application.This method returns the process engine (template) of the application.This method returns the process engine manager template.com.aquima.interactions.process.IProcessEngineSettings
This method returns the configured process engine settings for the test process moduleThis method returns the process mapping that should be used.This method returns the project template that may be used to add project wide definitions.com.aquima.interactions.portal.ds.ProjectMetadata
com.aquima.interactions.foundation.report.IInitializationReport
This method returns the initialization report for the application.This method returns the rule engine of the application.getServiceCall
(String serviceCallName) This method returns the service call for a service call name.protected Iterator
<ServiceCallTemplate> This method returns the spell engine.getTimer()
This method returns the timer.This method returns the tree engine of the application.com.aquima.interactions.userscope.dao.IUserScopeDao
This method returns the user scope dao.protected Iterator
<WebServiceTemplate> void
setLicenseKey
(String key) This method sets a license key to be user for the testcases.void
setPortalMessageBus
(com.aquima.interactions.portal.IPortalMessageBus messageBus) void
setProjectMetadata
(com.aquima.interactions.portal.ds.ProjectMetadata projectMetadata) com.aquima.interactions.portal.ds.IApplicationDS
This method converts the application template to a data-source that can be used to initialize an application.com.aquima.interactions.portal.ds.IPortalEngineDS
This method converts the application template to a data-source that can be used to initialize a portal engine.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
ApplicationTemplate
public ApplicationTemplate()Construct an application template with name "test-app". -
ApplicationTemplate
Construct an application template with a specific name.- Parameters:
name
- Name of the application template.
-
ApplicationTemplate
Construct an application template with a specific name.- Parameters:
name
- Name of the application template.branchName
- Name of the branch that is used in the application id.- Since:
- 9.0
-
ApplicationTemplate
Construct an application template with a specific name.- Parameters:
name
- Name of the application template.version
- The version of the application- Since:
- 9.0
-
-
Method Details
-
createReport
protected static com.aquima.interactions.foundation.report.IInitializationReport createReport(String appName) -
addModule
-
getCommunicationEngine
This method returns the communication definitions.- Returns:
- The communication definitions
-
getSpellEngine
This method returns the spell engine.- Returns:
- The spell engine
-
getTimer
This method returns the timer.- Returns:
- The timer template, never null.
-
getUserScopeDao
public com.aquima.interactions.userscope.dao.IUserScopeDao getUserScopeDao()This method returns the user scope dao.- Returns:
- The user scope dao, never null.
-
getName
This method returns the name of the application.- Returns:
- the name of the application.
-
setLicenseKey
This method sets a license key to be user for the testcases.- Parameters:
key
- The license key to use.
-
getLicenseKey
This method returns a test case license.- Returns:
- License key
-
getApplicationId
public com.aquima.interactions.foundation.ApplicationID getApplicationId()This method returns the ID of the application.- Specified by:
getApplicationId
in interfaceIApplicationTemplate
- Returns:
- the ID of the application.
-
getModuleId
public com.aquima.interactions.project.ModuleID getModuleId()This method returns the ID of the main module.- Returns:
- The ID of the main module.
-
getFactoryManager
This method returns the factory manager of the application.- Specified by:
getFactoryManager
in interfaceIApplicationTemplate
- Returns:
- the factory manager of the application.
-
getFlowEngine
This method returns the flow engine of the application.- Returns:
- the flow engine of the application.
-
getMetaModel
This method returns the meta model of the application.- Returns:
- the meta model of the application.
-
getRuleEngine
This method returns the rule engine of the application.- Returns:
- the rule engine of the application.
-
getTreeEngine
This method returns the tree engine of the application.- Returns:
- the tree engine of the application.
-
getMatchEngine
This method returns the match engine of the application.- Returns:
- the match engine of the application.
-
getProcessEngine
This method returns the process engine (template) of the application.- Returns:
- the process engine (template) of the application.
-
getConfiguration
This method returns the configuration of the application.- Specified by:
getConfiguration
in interfaceIApplicationTemplate
- Returns:
- the configuration of the application.
-
getReport
public com.aquima.interactions.foundation.report.IInitializationReport getReport()This method returns the initialization report for the application.- Specified by:
getReport
in interfaceIApplicationTemplate
- Returns:
- the initialization report for the application.
-
getLicenseProvider
public com.aquima.interactions.foundation.ILicenseProvider getLicenseProvider()This method returns the license provider for the test application.- Specified by:
getLicenseProvider
in interfaceIApplicationTemplate
- Returns:
- the license provider for the test application.
-
setPortalMessageBus
public void setPortalMessageBus(com.aquima.interactions.portal.IPortalMessageBus messageBus) -
getPortalMessageBus
public com.aquima.interactions.portal.IPortalMessageBus getPortalMessageBus()Description copied from interface:IApplicationTemplate
This method returns the configured portal message bus for the test application.- Specified by:
getPortalMessageBus
in interfaceIApplicationTemplate
- Returns:
-
addServiceCall
This method adds a service call.- Parameters:
serviceCall
- The service call to add.
-
addServiceCall
This method creates and adds a service call.- Parameters:
serviceCallName
- The service call name.serviceTypeName
- The service type name.- Returns:
- The created service call.
-
addFunctionCall
public FunctionCallTemplate addFunctionCall(String functionCallName, String moduleName, String flowName) -
addFunctionCall
This method adds a function call.- Parameters:
functionCall
- The function call to add.
-
addMaskCall
This method adds a mask call.- Parameters:
maskCall
- The mask call to add.
-
getServiceCalls
-
getFunctionCalls
-
getServiceCall
This method returns the service call for a service call name.- Parameters:
serviceCallName
- The service call name used for lookup (case insensitive)- Returns:
- The service call, may be null
-
getFunctionCall
This method returns the function call for a function call name.- Parameters:
functionCallName
- The function call name used for lookup (case insensitive)- Returns:
- The function call, may be null
-
getComposer
This method returns the composer of the application.- Returns:
- the composer of the application.
-
getMaskCalls
-
getProcessMapping
This method returns the process mapping that should be used. Process mappings are only relevant for applications that use a process engine.- Returns:
- Template containing the process mappings that should be used.
-
getProject
This method returns the project template that may be used to add project wide definitions.- Returns:
- The project template.
-
getProcessEngineManager
This method returns the process engine manager template. The process engine manager may be used to configure process modules.- Returns:
- the process engine manager template.
-
toDataSource
public com.aquima.interactions.portal.ds.IPortalEngineDS toDataSource()This method converts the application template to a data-source that can be used to initialize a portal engine.- Specified by:
toDataSource
in interfaceIApplicationTemplate
- Returns:
- a data-source that can be used to initialize a portal engine.
-
toAppDataSource
public com.aquima.interactions.portal.ds.IApplicationDS toAppDataSource()Description copied from interface:IApplicationTemplate
This method converts the application template to a data-source that can be used to initialize an application.- Specified by:
toAppDataSource
in interfaceIApplicationTemplate
- Returns:
- a data-source that can be used to initialize an application.
-
addMapping
public MappingTemplate addMapping(String name, MetaModelTemplate sourceModel, MetaModelTemplate targetModel) -
addMapping
-
addWebService
This method adds an exposed webservice.- Parameters:
serviceName
- The name of the exposed web service.- Returns:
- The created template
-
addWebService
public WebServiceTemplate addWebService(String serviceName, com.aquima.interactions.project.ModuleID moduleId) This method adds a service mapping.- Parameters:
serviceName
- The name of the exposed web service.moduleId
- The id of the module that contains the webservice, may be null.- Returns:
- The created template
-
getMappings
-
getModules
-
getWebServices
-
getModule
-
getProcessEngineSettings
public com.aquima.interactions.process.IProcessEngineSettings getProcessEngineSettings()Description copied from interface:IApplicationTemplate
This method returns the configured process engine settings for the test process module- Specified by:
getProcessEngineSettings
in interfaceIApplicationTemplate
- Returns:
-
getProjectMetadata
public com.aquima.interactions.portal.ds.ProjectMetadata getProjectMetadata() -
setProjectMetadata
public void setProjectMetadata(com.aquima.interactions.portal.ds.ProjectMetadata projectMetadata)
-