We need to sort Task by a priority value assigned to it and it’s Due date.
Is it any way to implement this in flowable Tasks ?
I think a simplier solution that is filter tasks by a Variable ‘priority’ value but it is not as useful as having as an order.
Currently only one order property is supported. But you could use the createNativeTaskQuery method on TaskService to write your own query to return Task instances. We could also have a look to support multiple order properties via the Task API.
Sorry I was wrong, you can just concatenate multiple order properties to the Task Query, so something like orderByPriority.desc().orderByDueDate.asc();