3 Replies Latest reply on Oct 6, 2005 12:38 PM by brittm

    PriorityHandler idea

    brittm

      I'd like to see the ability to use a custom class associated with a Task in the process definition to calculate a real time priority number for a taskInstance (like for use in a user's task list.) (I know the priority= attribute is up for fixing :) Maybe this would be the same "priority" or maybe a different property. Perhaps the calculation would only be made when the developer calls a taskInstance.getCalculatedPriority() method.

      The use of a custom class on the TaskInstance to calculate the priority value would allow tasks in a queue to be prioritized according to dynamic business factors (ie. age of the process, not just age of the task; number of trouble tickets currently open against a customer; VIP status; etc.)

      This type of prioritized view is important for queue and task driven environments where users do all their work off of their queues.

      What do you all think?

      Thanks,
      Britt

        • 1. Re: PriorityHandler idea
          tom.baeyens

          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...

          regards, tom.

          • 2. Re: PriorityHandler idea
            kukeltje

            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

            • 3. Re: PriorityHandler idea
              brittm