Discussion

2
Replies
38
Views
GeorgeJ6156 Member since 2016 9 posts
Bank of America
Posted: 6 months ago
Last activity: 6 months 3 weeks ago

Sort on GetNextWork - seems not working

Hi Team,

I am trying to sort the work items based on a custom property (not Urgency) while doing the GetNextWork. For this I customized the GetNextWork (Assign-Workbasket ,list view) by joining with work class and mentioning the custom property under the "Get these fields" in content tab with appropriate sort (Descending). Though list view is working correctly ,GetNextWork is not pulling the work objects based on this property. On looking at tracer I found that findAssignmentInWorkbasket-->ShowView-->Process ;in Process activity the "SortView" (line number 34) is invoked only when pyAction is "Refresh"||"Sort"||""||"Run" ;when invoked from GetNextWork the value for pyAction is "Prepare". I made changes in findAssignmentInWorkbasket ,to set the pyAction as "Sort" and now it seems working. Is this the correct understanding or am I missing something ; because I thought just changing the sort order in list view should work for GetNextWork also.

Pega Academy
Share this page LinkedIn