Attachment data clears when SendSimpleEmail is triggered
Attached files clear when user calls OnSend Email activity using Optimistic Locking.
Steps to Reproduce
- Enable Optimistic Locking for the case type
- Add the attachment screen
- Capture the Attachment name, Type, Attached by user information in a pagelist that is embedded in the work object pyWorkPage
An issue in the custom application code or rules. After adding an attachment to trigger the notification, the SendSimpleEmail activity is called from Pega-ProcessEngine Ruleset. This triggers the OnSend activity where the work object lock is checked. If the work object lock is not locked, the WorkLock activity is called. This uses the Obj-Refresh-Lock method where the work object is reloaded and the attached data is lost. The Obj-Refresh-Lock during the Email Send action clears the changes since no lock is held on the work object for changes in the attachment due to the Optimistic Locking.
Perform the following local-change:
Change the code to send the mail during the FinishAssignment.
0% found this useful