Class AssignTask

  • All Implemented Interfaces:
    IService

    public class AssignTask
    extends Object
    implements IService

    Purpose
    This service can be used to assign a task to specific users or a combination of teams and roles.

    Context
    This service can be called when a task is activated. When no task is active, an exception will be thrown. One of the following parameters is expected:

    • Users: expression for the value of user(s) the task will be assigned to.
    • Teams: expression for the value of team(s) the task will be assigned to.
    • Roles: expression for the value of role(s) the task will be assigned to.

    Result
    This service does not return an event.

    Since:
    9.1
    Author:
    Nicky van Noorloos
    • Constructor Detail

      • AssignTask

        public AssignTask()
    • Method Detail

      • 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:
        ServiceException - When an expected exception occurs and the portal should display certain messages.
        Exception - When an unexpected exception occurs and the portal should display a standard message.