I need to implement an app using UiPath apps, the main process is when the user clicks on the button first it needs to add a record to an entity in entity service and secondly needs to add a queue item to a queue.
My question is how to handle the above scenario as a transactional, if either task failed the entire process (adding the record to the entity and adding queue item) should fail.
Is there any way to achieve this?
@Roshan.Manchanayake ,
not sure if your second part is clear. Are you trying to add queue transaction from apps?
No. Let me clear it up for you, there is a UiPath apps vb app the main tasks executed by the app are
- Add a queue item to a queue
- Add a record to an entity in the entity service
I need to implement this as a transaction
if adding to a queue item fails then the app should show a message without adding an entity record.
if adding a record fails after adding a queue item, the queue item should be removed from the queue.
it’s more like Transaction in SQL or C# , A transaction is a single unit of work which means either ALL or NONE .