on 07-14-2020 10:09 AM
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?
Hi Feng,
sending the original content will not delete new objects.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.