<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Commit and rollback management in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Commit-and-rollback-management/m-p/2216792#M12656</link>
    <description>Hi Helronald,&lt;BR /&gt;First create your two jobs... Call second job in first job&lt;BR /&gt;create context variable as boolean&lt;BR /&gt;in second job... OnSubjob error - set the value of variable to false and then do rollback.&lt;BR /&gt;in main job - intPostJob read the the context variable value. If value is false --- execute roll back.&lt;BR /&gt;Same logic you can implement for multiple tables.&lt;BR /&gt;You can please put the screenshot of completed jobs, I will let you know in case if you need any further help or changes.&lt;BR /&gt;Thanks&lt;BR /&gt;Vaibhav</description>
    <pubDate>Tue, 25 Mar 2014 13:10:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-03-25T13:10:16Z</dc:date>
    <item>
      <title>Commit and rollback management</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Commit-and-rollback-management/m-p/2216789#M12653</link>
      <description>Hello everyone, 
&lt;BR /&gt;i have tow subjob: subjob1 ---OnSubjOK---&amp;gt;subjob2 and everyone affects my postgresql database by inserting or updating datas. 
&lt;BR /&gt;i want to commit if every subjob end without any problem but if subjob1 or subjob2 generate a problem i want to do a rollback to the initial state of database. 
&lt;BR /&gt;example: if subjob1 succeed to run and subjob2 generate a problem,modifications caused by subjob1 should disappear 
&lt;BR /&gt;can anyone help me plz? 
&lt;BR /&gt;thx a lot.</description>
      <pubDate>Tue, 25 Mar 2014 11:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Commit-and-rollback-management/m-p/2216789#M12653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-25T11:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Commit and rollback management</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Commit-and-rollback-management/m-p/2216790#M12654</link>
      <description>Hi Helronald,&lt;BR /&gt;There is no straight forward way to control job and subjob for rollback. &lt;BR /&gt;I can think of a work around for this. &lt;BR /&gt;Set a flag in subjob using context variable or routine (getter-setter). Use this flag as a checkpoint in main job to control the rollback.&lt;BR /&gt;eg... if your subjob failed, so you can rollback in that job. This is what you can do easily. --&amp;gt; Set flag to false&lt;BR /&gt;Once subjob execution is completed, read the flag value in tPostJob in main job. If the value is false, do rollback in main job.&lt;BR /&gt;I think you got an idea...&lt;BR /&gt;Thanks&lt;BR /&gt;Vaibhav</description>
      <pubDate>Tue, 25 Mar 2014 11:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Commit-and-rollback-management/m-p/2216790#M12654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-25T11:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Commit and rollback management</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Commit-and-rollback-management/m-p/2216791#M12655</link>
      <description>Hi sanvaibhav,&lt;BR /&gt;Thanks a lot for your reply,i understand your idea and i think it's what i really want.&lt;BR /&gt;I'm new in using talend so can u plz simplify me how to do this and thank you very much.</description>
      <pubDate>Tue, 25 Mar 2014 12:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Commit-and-rollback-management/m-p/2216791#M12655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-25T12:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Commit and rollback management</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Commit-and-rollback-management/m-p/2216792#M12656</link>
      <description>Hi Helronald,&lt;BR /&gt;First create your two jobs... Call second job in first job&lt;BR /&gt;create context variable as boolean&lt;BR /&gt;in second job... OnSubjob error - set the value of variable to false and then do rollback.&lt;BR /&gt;in main job - intPostJob read the the context variable value. If value is false --- execute roll back.&lt;BR /&gt;Same logic you can implement for multiple tables.&lt;BR /&gt;You can please put the screenshot of completed jobs, I will let you know in case if you need any further help or changes.&lt;BR /&gt;Thanks&lt;BR /&gt;Vaibhav</description>
      <pubDate>Tue, 25 Mar 2014 13:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Commit-and-rollback-management/m-p/2216792#M12656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-25T13:10:16Z</dc:date>
    </item>
  </channel>
</rss>

