Interface IParametrableUnitSelection


public interface IParametrableUnitSelection
Parametrable config for unit selection
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    select(int nIdResource, String strResourceType, jakarta.servlet.http.HttpServletRequest request, fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
    Selects the unit the resource will be assigned to.
  • Method Details

    • select

      int select(int nIdResource, String strResourceType, jakarta.servlet.http.HttpServletRequest request, fr.paris.lutece.plugins.workflowcore.service.task.ITask task) throws AssignmentNotPossibleException

      Selects the unit the resource will be assigned to.

      This method is not responsible of storing the assignment. The store is done by the workflow task itself.

      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
      request - the request containing information to select the unit. WARNING : if the unit selection is automatic, the request is null.
      task - the task associated to the unit selection
      Returns:
      the id of the target unit
      Throws:
      AssignmentNotPossibleException - if the assignment is not possible