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.
Thank you for your response. I have difficulty following your instructions.
First, I looked into exposing my .StartDate in pc_assign_workbasket and pc_assign_worklist. I checked out this article: https://community1.pega.com/community/product-support/question/exposing…. It state that it is not advisable to expose a custom column and does not provides instructions for exposing a column. I was not able to find any other references for exposing a column.
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?