[MNT-14436] Sorting on Workflow custom process variables. Created: 24-Jul-15  Updated: 07-Oct-19  Resolved: 15-Mar-18

Status: Closed
Project: Service Packs and Hot Fixes
Component/s: Workflow
Affects Version/s: 4.2.4
Fix Version/s: None

Type: Improvement
Reporter: Antonio Soler-Asenci [X] (Inactive) Assignee: Closed Issues
Resolution: Won't Fix Votes: 1
Labels: Customer_Success
Remaining Estimate: 0 minutes
Time Spent: 1 hour, 5 minutes
Original Estimate: Not Specified
Environment:

4.2.4 Activiti


Issue Links:
Related
Bug Priority:
Category 4
ACT Numbers:

00435481

Premier Customer:
Yes

 Description   

Sorting is allowed when querying the workflow API

http://localhost:8080/alfresco/api/-default-/public/workflow/versions/1/processes?orderBy=variables/[variable_name]

as described in

http://dev.alfresco.com/resource/docs/java/org/alfresco/service/cmr/workflow/WorkflowTaskQuery.OrderBy.html

but seems that the list of variables that allow sorting is hardcoded on Activiti:

ActivitiWOrkflowEngine.java
on the method
private void orderQuery(TaskQuery taskQuery, OrderBy[] orderBy)

I have the requirement from a customer to allow sorting on custom variables.


Generated at Tue Aug 11 23:24:34 BST 2020 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.