Close popover
George Jacob (GeorgeJ6156)
Bank of America

Bank of America
GeorgeJ6156 Member since 2016 11 posts
Bank of America
Posted: February 24, 2020
Last activity: February 24, 2020

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
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.