Unable to reopen work object from Rejected stage
A work object does not resume correctly when reopening it from the Rejected stage.
Message in Tracer:
Warning: The work page pyWorkPage has unexpectedly been reverted to an older version.
Steps to Reproduce
- Create a case.
- Complete a step.
- Change to the Rejected stage and reject.
- Click Reopen.
According to the Tracer details, the reopen process was routing to the correct stage and starting the flow; however, the DeleteAttachment was called by an activity. When DeleteAttachment was executed, it opened an older version of the work object from the database.
Perform the following local-change such that the Obj-Open-By-Handle step in DeleteAttachment opens the work object from the deferred list:
Add a deferred Obj-Save before calling DeleteAttachment.