<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Commit the transaction half way through the code and continue the execution from there.</title><link>https://www.aras.com/community/f/development/36242/commit-the-transaction-half-way-through-the-code-and-continue-the-execution-from-there</link><description>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</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Commit the transaction half way through the code and continue the execution from there.</title><link>https://www.aras.com/community/thread/6143?ContentTypeID=1</link><pubDate>Wed, 23 Dec 2020 11:32:22 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:3d0c862a-aaac-468b-8d36-b5194b84bbe8</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;For long running resource consuming tasks you could use the Conversion Server. There is a community project that shows how to run a task in the background.&lt;/p&gt;
&lt;p&gt;If your task is does not need a lot of server resources, you could use&amp;nbsp;async/await or promise call from a Javascript Method. E.g. a button click starts the JS Method. It can then call the various server Methods asynchronously . I used this approach in one of my previous customization and it worked pretty well. You can also react on errors and result.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I never used CommitTransaction() so far, so I cannot tell you if this would be a preferable approach.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>