Question
2
Replies
14
Views
Posted: 1 week 5 days ago
Last activity: 1 day 14 hours ago
Update case when retrieved by getnextwork
We have a requirement to set certain flags on a case when its picked up by certain users through getnextwork.
Is there an extension point that we could use as most of the items that do the getting of the work seem to be Final internal rules (e.g. pzOpenAssignmentForGetNextWork / MoveToWorklist)
example
user1 - flag1
user2 - flag2
user3 - no flag
user1 picks up case1 and sets flag1 on case1
user2 picks up case2 and sets flag2 on case2
user3 picks up case3, no flag set
@BenP@QAC
It's been years since I touched "Get Next", but Work-.GetNextWork itself is Available and its purpose appears to be predominantly to 'wrap' the inner Final activity getNextWorkObject that does all the 'work', then to orchestrate what Pega should do next based on whether work was found to do.
If you've done the digging already and can't find an extension point from within getNextWorkObject, you could consider:
As you are cloning a Platform rule, this introduces an upgrade risk should Pega decide to evolve the implementation of GetNextWork or the 'contract' of what getNextWorkObject does (where it puts its found work item, how it broadcasts that a match was found/not found). I recommend keeping a log of specialized platform rules like this so that scenarios for them are included in regression testing of upgrades.