How to customize Get Next Work in pega

We can customize GetNextWork (GNW) logic in pega to meet our business requirements. Pega will follow default GNW logic to prioritize and get the assignment for the user to work on. Sometimes we will have a requirement to change the prioritization work, simply we can adjust the assignment urgency value (pyUrgencyAssignAdjust this is being used in declare expression), we can manually adjust the assignment urgency.