Package pro.taskana.spi.routing.internal
Class TaskRoutingManager
java.lang.Object
pro.taskana.spi.routing.internal.TaskRoutingManager
Loads TaskRoutingProvider SPI implementation(s) and passes requests to determine workbasketids to
them.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetermineWorkbasketId(Task task) Determines a workbasket id for a given task.boolean
-
Constructor Details
-
TaskRoutingManager
-
-
Method Details
-
determineWorkbasketId
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()
-