Posted: 1 Aug 2018 23:57 EDT Last activity: 5 Aug 2018 10:44 EDT
Making "Get Next" to pull a case from work queue based on urgency determined by property value
I'm new to Pega and I'm currently working with Personal Edition 7.4. An event application I'm working on has following requirements: 1. A group of executives shall pull a case without cherry-picking. 2. The case with earlier start date shall be pulled and assigned to an executive before other cases with later start date regardless of when the cases were created.
One of the properties defined in the case is an event start date (DateTime). To satisfy my first requirement, I created a work queue specifically for the executives. I modified the case worker portal that executives have access to to display "Get Next" button as soon as they log on. I route my case to the executive work queue and when the executive clicks "Get Next", it pulls a case from the work queue and assigns the case to the executive.
I'm not able to figure out how to configure the work queue so it checks the start date property and set an urgency based on the start date OR somehow sort the cases in the work queue by the start date.
For this one approach suggested is to expose your StartDate column in table pc_assign_workbasket and pc_assign_worklist, create property StartDate in Assign- class and there is an activity Assign- NewDefaults in that set start date from your work page to assign page. And after there are list views with name "GetNextWork"in Assign-Worklist and Assign-Workbasket. Add your property Start Date and give it a sort order.
But this approach is recommended if you are having similar functionality for other work types i.e., the assignments which are being created as part of your application.
I skipped exposing the column in the tables and tried to modify NewDefaults and I'm still working on it. When I looked in Assign-Worklist and Assign-Workbasket classes, I did not find a list named "GetNextWork".
Is there a more detailed guide on how to accomplish each step?