Class NextTasksForCase

java.lang.Object
com.aquima.interactions.framework.service.task.NextTasksForCase
All Implemented Interfaces:
IService

public class NextTasksForCase extends Object implements IService

Purpose
This service can be used to act on the number of tasks available for the current active case.

Context
This service can be called when a case is activated. When no case is active, an exception will be thrown.

Result
This service activates the task when only one is available for the active case and returns the events:

  • 'One': when there is one task available for the active case.
  • 'None': when there is no task available for the active case.
  • 'Multiple': when there are more than one tasks available for the active case.
Since:
7.1
Author:
Jon van Leuven
  • Field Details

  • Constructor Details

    • NextTasksForCase

      public NextTasksForCase()
  • Method Details

    • handle

      public IServiceResult handle(IServiceContext context) throws Exception
      Description copied from interface: IService
      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.
      Specified by:
      handle in interface IService
      Parameters:
      context - the context in which the service is called and allowed to make changes.
      Returns:
      The result of this service, may be null.
      Throws:
      Exception - When an unexpected exception occurs and the portal should display a standard message.