Customizing GetNextWork
We have a requirement to modify the GetNextWork functionality for a certain workgroup in our application. They have a number of workbaskets with different SLA:s, and one particular workbasket which needs to have priority above all others. Like this:
WB X
WB Y
WB Z
As long as there are any tasks in WB X, these need to be picked first in GetNextWork. If WB X is empty, GetNextWork should pick tasks as per the existing priority logic (OOTB).
There are also other workgroups already using GetNextWork, so any changes we do can not affect these.
Any suggestions for a solution approach?