Interface ICacheableParametersObjectService<T>

All Superinterfaces:
IService
All Known Implementing Classes:
InstanceCreateService, InstanceUpdateService

public interface ICacheableParametersObjectService<T> extends IService
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 Type
    Method
    Description
    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.

    Methods inherited from interface com.aquima.interactions.portal.IService

    handle
  • Method Details

    • handle

      IServiceResult handle(IServiceContext context, T parameters) throws Exception
      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

      T getParametersObject(IServiceContext context)
      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