Package com.aquima.interactions.portal
Interface ICacheableParametersObjectService<T>
- All Superinterfaces:
IService
- All Known Implementing Classes:
InstanceCreateService
,InstanceUpdateService
The service interface for use within flows. This service adds a
getParametersObject(IServiceContext)
function that results in a cacheable object. The getParametersObject(IServiceContext)
function returns an
object that is cached and the handle(IServiceContext, T)
is called instead of
theIService.handle(IServiceContext)
- Since:
- 10.7
- Author:
- V. Jansen
-
Method Summary
Modifier and TypeMethodDescriptiongetParametersObject
(IServiceContext context) Parse the parameters into a cacheable object.handle
(IServiceContext context, T parameters) The handle method of the service is allowed to make changes to the interfaces passed along with the IServiceContext.
-
Method Details
-
handle
The handle method of the service is allowed to make changes to the interfaces passed along with the IServiceContext. This means the service context is changed accordingly.- Parameters:
context
- the context in which the service is called and allowed to make changes.parameters
- cached object that contain parameters- Returns:
- The result of this service, may be null.
- Throws:
Exception
- When an unexpected exception occurs and the portal should display a standard message.
-
getParametersObject
Parse the parameters into a cacheable object. Do NOT parse expressions as these can change in other invocations of the handle- Parameters:
context
- the context in which the service is called and allowed to make changes.- Returns:
- a cacheable object that is not null
-