cancel
Showing results for 
Search instead for 
Did you mean: 

Process Management API: Rollback

richard_kaspar
Discoverer
0 Kudos

https://wiki.scn.sap.com/wiki/display/SM/Process+Management+API

When changing brach content with BranchContentImporterSet and the result is an error, it could happen that some changes are made.

Is there an easy way to roll back all changes?

Accepted Solutions (0)

Answers (2)

Answers (2)

richard_kaspar
Discoverer
0 Kudos

Hi Feng,


sending the original content will not delete new objects.

https://wiki.scn.sap.com/wiki/display/SM/Process+Management+API#ProcessManagementAPI-BranchContentIm...

The method to change the branch content. The requested JSON data 
should contains changed elements of the branch. Elements to be deleted 
shall be explicitly flagged with deleted = X.

...

2) Deletion of element (e.g 
Process Original) which has a reference  will not be performed. It is 
strongly recommended to check that all the references should be deleted 
first.

Regards,

Richard

0 Kudos

Hi richard.kaspar,

With Process Management API, it will be a little bit complicated.

1) Read Content

2) Write Request

3) If error happens, Read Content, check differences and set delete flag for new elements. You can do the deletion of original and references in one put request. But note that references should appear in the "NODES" section firstly.

If you have access to the soldoc UI, then you can revert all the changes which you made in command "Discard Changes".

Regards,

Feng

0 Kudos

Hi Richard,

the Process Management API was initially developed as an API only for ARIS to read and write content from solution documentation. So it meets only the requirement for one customer. Complex using scenarios like rollback are not considered.

however you can check this blog https://blogs.sap.com/2021/08/22/process-management-api-branch-content-timeout/ to reduce your read content.

In your write request only the modifications should be contained. If error happens, you can send the original content which you read out as rollback.

Regards,

Feng