Question

1
Replies
19
Views
liang Member since 2019 10 posts
PEGA
Posted: August 3, 2020
Last activity: August 5, 2020

How to perform rollback while save attachment to repository from activity?

Hi,

I have a question about  how to perform rollback while save attachment to repository from activity?

we are using external repository as attachment content storage in our application, so attachments which 

attached in cases will be saved in repository.

And in our activity, we are using Obj-Save(Data-WorkAttach-File Record) and Commit to actually create a attachment

record, but we observed that attachment files are created on Obj-Save step, instead of Commit step.

If attachment files are created on Commit step,then I think we can use normal approach to perform rollback, like

check StepStatusFail in jump condition, and execute rollback, but in this case, attachment file already been created

before Commit step...so besides execute rollback I think it also need to extra step to delete attachment file from repository folder... I am not sure if this approach is normal way...

Does anyone have any idea on this?

***Edited by Moderator: Pallavi to update platform capability tags***

 

 

 

 

Pega Platform 8.4.1 Data Integration Java and Activities
Share this page LinkedIn