We’ve implemented a webservice that works as a Façade (https://en.wikipedia.org/wiki/Facade_pattern) to OpenText. It exposes an UpdateDocument action, that is able to call many CWS methods to update different aspects of a document, in a single integration transaction.
Among these methods, we are using CWS’ UpdateNode to rename a document. In some situations, the same document (same node) can be renamed twice, within a short time frame. The transaction sequence could appear something like this:
1) initial node name: “Document 1.docx”;
2) first update comes, trying to rename it to “Document 1 – version 2.docx”;
3) 1 second later, second update comes, trying to rename it to “Document 1 – version 3.docx”;
All updates are apparently successful (as no exception is thrown), but the document remains as “Document 1.docx”, because neither update achieves the desired outcome.
If the gap between the renames is larger e.g. 10 seconds instead of 1, the updates are successful as the renaming occurs as expected.
Is there any way of detecting a "failure" when executing the UpdateNode transaction