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.
-
-
Constructor Summary
Constructors Constructor Description TaskRoutingManager(TaskanaEngine taskanaEngine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdetermineWorkbasketId(Task task)Determines a workbasket id for a given task.booleanisEnabled()
-
-
-
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()
-
-