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

public class GetTaskInfo extends Object implements IService

Purpose
This service can be used to read task properties into the profile (for display purposes).

Context
This service can be called when a task is activated. When no task is active, an exception will be thrown. This service expects the following optional parameters (empty parameters are ignored):

  • id: entity.attribute destination for the task's id
  • assignee: entity.attribute destination for the task's user, if applicable
  • role: entity.attribute destination for the task's role, if applicable
  • team: entity.attribute destination for the task's team, if applicable
  • description: entity.attribute destination for the task's description
  • timeoutdate: entity.attribute destination for the task's timeoutdate
  • duedate: entity.attribute destination for the task's duedate
  • name: entity.attribute destination for the task's name
  • displayname: entity.attribute destination for the task's display name
  • startdate: entity.attribute destination for the task's startdate
  • status: entity.attribute destination for the task's status

Note that entity.attribute should be available (via singleton or activation) in the current context.

Result
This service does not return an event.

Since:
7.1
Author:
Jon van Leuven, Rick Fleuren
  • Field Details

  • Constructor Details

    • GetTaskInfo

      public GetTaskInfo()
  • 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.