cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting process instances by process instance variable

partizano
Champ in-the-making
Champ in-the-making
Hi, Activiti Team!

As I think, there is no ability to sort process instances by custom process instance variable in Activiti.
Would this feature developed in future?
6 REPLIES 6

partizano
Champ in-the-making
Champ in-the-making
Is my question clear?

partizano
Champ in-the-making
Champ in-the-making
I'll try to rephrase the question.

ACTIVITI-API has ability to sort process instances by processInstanceId: ProcessInstanceQuery.orderByProcessInstanceId().
Have you plans to do something like ProcessInstanceQuery.orderByProcessInstanceVariable(String processInstanceVariableName)?

trademak
Star Contributor
Star Contributor
Hi,

We already have the queries where you can set variables values, so it shouldn't be too hard to add ordering as well.
Did you check if there's already a JIRA for this?

Best regards,

partizano
Champ in-the-making
Champ in-the-making
Hi,

I haven't found JIRA issue for this, I have created it - http://jira.codehaus.org/browse/ACT-1044

mohammadarifkha
Champ in-the-making
Champ in-the-making
Hi, Activiti Team!

can we sort the task list on the basis of process variable.
something like ProcessInstanceQuery.orderByProcessInstanceVariable(String processInstanceVariableName)?

jbarrez
Star Contributor
Star Contributor
No, that's currently not supported, you'd have to use a native query to do that.

(or send us a Pull Request 😉