very interesting idea. i definitely see the value. please create a jira issue for this as a feature request.
what is not yet clear to me is the best scope for the configuration of a runtime TaskPriorityHandler: jbpm-global level, process level, task level ? or maybe we should allow all three and take the TaskPriorityHandler specified at the finest level. and use the current approach if no TaskPriorityHandler is specified...
Dynamic priorities sounds great but keep the following in mind
- people want to take processvariables into account as well
- the possibility should exist to manually override priorities and not loose this if it dynamically calculated again
- real-time could put a load on the system. I'd like the option to have this done via a scheduler
- start on the process level