CloseDefaults called multiple times
When using "Get Most Urgent" from the Work User Portal, you observe the PreClose activity is not called but in some cases CloseDefaults is called multiple times.
Steps to Reproduce
- Turn on tracer
- Ask another user open the most urgent work item associated to your profile
- Click on "Get Most Urgent"
- Observe CloseDefaults called multiple times.
During the course of opening the next most urgent work item, the system will load onto the clipboard the contents of the most urgent item then check if its lock is available. If the lock is not available the system will call closedefaults on said item. So depending on the lock availability of workitems CloseDefaults can be called multiple times.
This issue is resolved through the following local change:
Add a when condition to the CloseDefaults activity to guard around auditing on workitems on which the lock is not held.
0% found this useful