GetNextWorkCriteria - How to include additional business logic based on a property which is residing on the Work object or may be on the parent case in GetNextWorkCriteria decision tree
I have a requirement where an account ID can have a primary card and an additional card .Dispute cases created for the primary card and secondary card can not be pulled by the same operator ,when clicked on GetNextWork button .What changes should be done in GetNextWork logic to implement this .
Have another WHEN rule (say "CanAccessAccount") in GetNextWorkCriteria and since GetNextWorkCriteria is iterated on each assignment, the key of the WO is present on each assingment. Use Data page (say D_Account[.pxRefObjectKey].CanAccess which uses "Data Transform" as the source) in the WHEN rule and pass the WO reference to data page. You can put your logic in the data transform and at the end, set true or false to CanAccess property depending on your logic.