Class TaskRoutingManager


  • public final class TaskRoutingManager
    extends Object
    Loads TaskRoutingProvider SPI implementation(s) and passes requests to determine workbasketids to them.
    • Constructor Detail

      • TaskRoutingManager

        public TaskRoutingManager​(TaskanaEngine taskanaEngine)
    • Method Detail

      • determineWorkbasketId

        public String determineWorkbasketId​(Task task)
        Determines a workbasket id for a given task. Algorithm: The task that needs a workbasket id is passed to all registered TaskRoutingProviders. If they return no or more than one workbasketId, null is returned, otherwise we return the workbasketId that was returned from the TaskRoutingProviders.
        Parameters:
        task - the task for which a workbasketId is to be determined.
        Returns:
        the id of the workbasket in which the task is to be created.
      • isEnabled

        public boolean isEnabled()