Package pro.taskana.spi.priority.api
Interface PriorityServiceProvider
-
public interface PriorityServiceProviderThis SPI enables the computation of Task priorities depending on individual preferences.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Integer>calculatePriority(TaskSummary taskSummary)
-
-
-
Method Detail
-
calculatePriority
Optional<Integer> calculatePriority(TaskSummary taskSummary)
Calculates the priority of a certain Task.The implemented method must calculate the priority efficiently. There can be a huge amount of Tasks the SPI has to handle.
- Parameters:
taskSummary- the TaskSummary to compute the priority for- Returns:
- the computed priority
-
-