Question
Web.com
IN
Last activity: 6 Feb 2024 14:32 EST
Need Pega best practice suggestion to save work object assignment(both worklist and workbasket) duration data in to table
The business needs an easy way to measure the total time of an assignment is assigned to a workbasket vs. an operator on case.
They are asking to save each individual assignment with time duration into a table. So, we designed the logic using three declare triggers.
-
First trigger is when an instance is Commit Save on "Assign-" class. (To capture assignment information when add/update)
-
Second trigger is when an instance is Commit Delete on "Assign-" class. (To capture assignment information when remove)
-
Third trigger is when an instance is Commit Save on Work class.(To capture the information when case is resolved)
Can you suggest the best practice on this requirement.