What is the use of Priority in user task

what is the use of Priority in user task.
I have read about it here: Camunda BPMN Extension Attributes | docs.camunda.org
But not sure what it is doing,

I created 3 user tasks which are shown/executed after passing though parallel gateway,
And i gave different priority number to each user task.

but as expected all are coming in tasklist at same time due to parallel gateway, but what functionality is affected due to priority here.

Hi @teja_polisetty,

It is just a field to identify the priority of a task as a numeric value which could be helpful in so many ways.

For example:

You can create a tasklist filter named as “High Priority Tasks” and set the criteria to something as Priority equals to 100.

Or to generate a report for tasks considered of low priority (maxPriority = 30) using REST API query for tasks request.

3 Likes

Hi! is it possible to set the priority of a task using the value of a variable derived from a business rule table?

Hi @edcapulong,

Yes, a process variable can be used as follow
${priorityVariable}

1 Like

Thank you so much!