<?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: Running a Subjob From Job Conductor in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Running-a-Subjob-From-Job-Conductor/m-p/2291010#M64239</link>
    <description>Can you try printing the context parameters in tJava Component?
&lt;BR /&gt;
&lt;BR /&gt;System.out.println(context.Subjob_A_Run);
&lt;BR /&gt;System.out.println(context.Subjob_B_Run);
&lt;BR /&gt;
&lt;BR /&gt;Also use 'equals' method instead of '==' in conditions:
&lt;BR /&gt;context.Subjob_A_Run.equals("SubjobARun")
&lt;BR /&gt;context.Subjob_B_Run.equals.("SubjobBRun")</description>
    <pubDate>Fri, 13 Oct 2017 15:36:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-13T15:36:24Z</dc:date>
    <item>
      <title>Running a Subjob From Job Conductor</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Running-a-Subjob-From-Job-Conductor/m-p/2291006#M64235</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Scenario:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;Talend MDM DI job with 10 subjobs that each move data into staging tables.&lt;/P&gt; 
&lt;P&gt;One of the 10,&amp;nbsp; subjob #9, fails.&lt;/P&gt; 
&lt;P&gt;Re-run subjob #9 from TAC Job Conductor.&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;What I Think I Know:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;I can add a Context Parameter in Job Conductor such as "RunSubjobNumber9"&lt;/P&gt; 
&lt;P&gt;A runif trigger can likely reference a Context Parameter.&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;How can I reference the "RunSubjobNumber9" Context Parameter in that is part of the job run process kicked&amp;nbsp; off in Job Conductor? The runif trigger is where I want to reference this Job Conductor passed Context Parameter.&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Alternate:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;Is there another way to accomplish this task: Single out a subjob within a DI job to run it without opening Talend Studio.&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Allen&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Running-a-Subjob-From-Job-Conductor/m-p/2291006#M64235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Running a Subjob From Job Conductor</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Running-a-Subjob-From-Job-Conductor/m-p/2291007#M64236</link>
      <description>You can reffer it as usual contexts for example: context.RunSubJobNumber9 
&lt;BR /&gt; 
&lt;BR /&gt;No matter how n where do you pass it as long as it is a context variable/parameter</description>
      <pubDate>Wed, 11 Oct 2017 15:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Running-a-Subjob-From-Job-Conductor/m-p/2291007#M64236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-11T15:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Running a Subjob From Job Conductor</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Running-a-Subjob-From-Job-Conductor/m-p/2291008#M64237</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Goal:&lt;/STRONG&gt; Run a Subjob within a job using Job Conductor&lt;BR /&gt;&lt;STRONG&gt;Test:&lt;/STRONG&gt; Put context parameters in Job Conductor&lt;BR /&gt;for a job Exection Task. One of the context&lt;BR /&gt;parameters is empty and the other has a value.&lt;BR /&gt;Test to see if the one with the value causes&lt;BR /&gt;a Subjob to run.&lt;BR /&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt;&lt;BR /&gt;&lt;U&gt;Job Conductor&lt;/U&gt;&lt;BR /&gt;Project in Talend Job Conductor in Ready to Run Status.&lt;BR /&gt;Job Exection Task created which Deploys and Runs without error.&lt;BR /&gt;Two Context Parameters set that reference SubJobs in the Job.&lt;BR /&gt;Context parameter Value&lt;BR /&gt;Subjob_A_Run "" -- Value ommitted for the test&lt;BR /&gt;Subjob_B_Run "SubjobBRun"&lt;BR /&gt;&lt;BR /&gt;Talend MDM Platform (6.31)&lt;BR /&gt;&lt;STRONG&gt;Job Flow:&lt;/STRONG&gt;&lt;BR /&gt;tPreJob-&amp;gt;OnComponentOK-&amp;gt;tJava_1 (Code: String foo = "bar")&lt;BR /&gt;tJava_1-&amp;gt;RunIf #1 (Condition: context.Subjob_A_Run=="SubjobARun")-&amp;gt;tMSSqlInputSubjobA&lt;BR /&gt;tJava_1-&amp;gt;RunIf #2 (Condition: context.Subjob_B_Run=="SubjobBRun")-&amp;gt;tMSSqlInputSubjobB&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;BR /&gt;In this real scenario, nothing happens. I expected SubjobB to run, but it did not. I feel like I am missing a step. If there is a better method for running a Subjob within a job, I am open to all solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 15:00:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Running-a-Subjob-From-Job-Conductor/m-p/2291008#M64237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-12T15:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Running a Subjob From Job Conductor</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Running-a-Subjob-From-Job-Conductor/m-p/2291009#M64238</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Goal:&lt;/STRONG&gt; Run a Subjob within a job using Job Conductor&lt;BR /&gt;&lt;STRONG&gt;Test:&lt;/STRONG&gt; Put context parameters in Job Conductor&lt;BR /&gt;for a job Exection Task. One of the context&lt;BR /&gt;parameters is empty and the other has a value.&lt;BR /&gt;Test to see if the one with the value causes&lt;BR /&gt;a Subjob to run.&lt;BR /&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt;&lt;BR /&gt;&lt;U&gt;Job Conductor&lt;/U&gt;&lt;BR /&gt;Project in Talend Job Conductor in Ready to Run Status.&lt;BR /&gt;Job Exection Task created which Deploys and Runs without error.&lt;BR /&gt;Two Context Parameters set that reference SubJobs in the Job.&lt;BR /&gt;Context parameter Value&lt;BR /&gt;Subjob_A_Run "" -- Value ommitted for the test&lt;BR /&gt;Subjob_B_Run "SubjobBRun"&lt;BR /&gt;&lt;BR /&gt;Talend MDM Platform (6.31)&lt;BR /&gt;&lt;STRONG&gt;Job Flow:&lt;/STRONG&gt;&lt;BR /&gt;tPreJob-&amp;gt;OnComponentOK-&amp;gt;tJava_1 (Code: String foo = "bar")&lt;BR /&gt;tJava_1-&amp;gt;RunIf #1 (Condition: context.Subjob_A_Run=="SubjobARun")-&amp;gt;tMSSqlInputSubjobA&lt;BR /&gt;tJava_1-&amp;gt;RunIf #2 (Condition: context.Subjob_B_Run=="SubjobBRun")-&amp;gt;tMSSqlInputSubjobB&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;BR /&gt;In this real scenario, nothing happens. I expected SubjobB to run, but it did not. I feel like I am missing a step. If there is a better method for running a Subjob within a job, I am open to all solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 15:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Running-a-Subjob-From-Job-Conductor/m-p/2291009#M64238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-12T15:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Running a Subjob From Job Conductor</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Running-a-Subjob-From-Job-Conductor/m-p/2291010#M64239</link>
      <description>Can you try printing the context parameters in tJava Component?
&lt;BR /&gt;
&lt;BR /&gt;System.out.println(context.Subjob_A_Run);
&lt;BR /&gt;System.out.println(context.Subjob_B_Run);
&lt;BR /&gt;
&lt;BR /&gt;Also use 'equals' method instead of '==' in conditions:
&lt;BR /&gt;context.Subjob_A_Run.equals("SubjobARun")
&lt;BR /&gt;context.Subjob_B_Run.equals.("SubjobBRun")</description>
      <pubDate>Fri, 13 Oct 2017 15:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Running-a-Subjob-From-Job-Conductor/m-p/2291010#M64239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-13T15:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Running a Subjob From Job Conductor</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Running-a-Subjob-From-Job-Conductor/m-p/2291011#M64240</link>
      <description>&lt;P&gt;Here is the tested solution.&lt;/P&gt;
&lt;P&gt;1. Each subjob must have a uniquely named context with type Boolean and context value set to &lt;STRONG&gt;false.&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Each subjob&amp;nbsp;needs a Run If trigger with this condition:&amp;nbsp;context.RunSubJob1==&lt;STRONG&gt;true. &lt;/STRONG&gt;I use&amp;nbsp;one default tJava component to run Run If triggers to each subjob.&lt;/P&gt;
&lt;P&gt;3. Once the job is published and the TAC Job Conductor Execution task's Context parameters can be seen...&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;Set the Context Paramater for this Execution Task.
  &lt;UL&gt;
   &lt;LI&gt;RunSubjob1's Original Value should be set to&amp;nbsp;&lt;STRONG&gt;false&lt;/STRONG&gt;&lt;/LI&gt;
   &lt;LI&gt;Select the Custom Value's radio button and set the Value to &lt;STRONG&gt;true&lt;/STRONG&gt;&lt;/LI&gt;
   &lt;LI&gt;Save the Context Parameters&lt;/LI&gt;
  &lt;/UL&gt;&lt;/LI&gt;
 &lt;LI&gt;Deploy run the job. Only SubJob1 should run as long as its Custom Value Context Parameter is set to &lt;STRONG&gt;true.&amp;nbsp;&lt;/STRONG&gt;Click the Original Value's radio button (set to &lt;STRONG&gt;false&lt;/STRONG&gt; from your job) and save it. Then this Subjob will not run.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 17:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Running-a-Subjob-From-Job-Conductor/m-p/2291011#M64240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-13T17:03:41Z</dc:date>
    </item>
  </channel>
</rss>

