Commit the transaction half way through the code and continue the execution from there.
Hi Team, We have a scenario where we want to commit the transaction half way through the code and continue the execution from there. For example : 1. We are working on Background tasks implementation 2. Where we want to change the status [property] of the task from "new" to "in progress" at the beginning of the execution of task. 3. After that we execute some business logic. 4. Later we change the status of task from "in progress" to "done"/"failed" based on the result from 3rd step. What we have observed is Aras considers step 2-4 as a single transaction and commits that at once. But we want to see the change in status of task from new -> in progress [step 2] -> done/failed. [This change of status is must.] We found an reference from Aras Community, where we can use the "CCO.DB.InnDatabase.CommitTransaction();", to commit the transaction half way and continue from there. Questions : 1. Are there any repercussions/issues by using the solution that we have found ? 2. Is there any other way to achieve this ? Thanks !2.7KViews0likes1CommentSave item transaction
Hello I have a certain Item1 and on after save event of this item I trigger another item2 (custom item we created) save. In case first one fails the second wont trigger. But the otherway around obviously doesnt work. This is handled client side. Is it possible to create transaction scope and add two transactions for saving those two items so if either fails we roll back. Each transaction would be executing applyAML (i guess) How would you approach this? Best regardsSolved11KViews0likes7CommentsTransaction boundary support in aras
Hi , Does aras innovator provides transaction boundary support ? Use case : consider I want to create a BOM of 10 Parts. Now I inserted 7 parts and for 8th part it failed to insert. So can we rollback the complete transaction ? Thanks for reply! -Ketan1.9KViews0likes2Comments