Error handling approach when you modify work objects by bulk
Hi,
I have created a User Interface in a parent case screen where you can select and include other child cases. When submission, AddToCover Process API is called looping over child case list and things work fine, as long as child cases are not locked by anyone. If anyone is performing child case, that iteration fails, of course. However I want to avoid such situation and guarantee that these selected child cases are to be added to its parent case for sure.
I don't think this is specific to only parent / child use case, but in any situation where activity modifies work objects especially by bulk. How do people handle this situation? What is the standard approach or best practice for such exceptional case?
Thanks,
***Edited by Moderator: Pallavi to update platform capability tags***