Package pro.taskana.spi.routing.internal
Class TaskRoutingManager
- java.lang.Object
-
- pro.taskana.spi.routing.internal.TaskRoutingManager
-
public final class TaskRoutingManager extends Object
Loads TaskRoutingProvider SPI implementation(s) and passes requests to determine workbasketids to them.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdetermineWorkbasketId(Task task)Determines a workbasket id for a given task.static TaskRoutingManagergetInstance(TaskanaEngine taskanaEngine)static booleanisTaskRoutingEnabled()
-
-
-
Method Detail
-
getInstance
public static TaskRoutingManager getInstance(TaskanaEngine taskanaEngine)
-
isTaskRoutingEnabled
public static boolean isTaskRoutingEnabled()
-
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.
-
-