<?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: Accessing a context variable in a &amp;quot;Run If&amp;quot; connection in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Accessing-a-context-variable-in-a-quot-Run-If-quot-connection/m-p/2372930#M135711</link>
    <description>&lt;P&gt;Thank you Shong.&lt;/P&gt;&lt;P&gt;When I did ctrl-space and selected that context variable the first time it only returned varName so I thought in that component that was expected.  Thought I tried your suggestion prior but just tried it again and it seems to work - thank you for the incredibly quick turn-around&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2021 02:02:15 GMT</pubDate>
    <dc:creator>McDon</dc:creator>
    <dc:date>2021-10-27T02:02:15Z</dc:date>
    <item>
      <title>Accessing a context variable in a "Run If" connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Accessing-a-context-variable-in-a-quot-Run-If-quot-connection/m-p/2372928#M135709</link>
      <description>&lt;P&gt;My scenario is that I have a "Run If" connection that I want to access a context variable as part of the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The overall goal: Define a path from a tLoop that will only execute if the iteration limit was exceeded (telling me that it did not find anything)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the job with the Run If connection&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000KCZurAAH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153093i05E36B89781039B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000KCZurAAH.png" alt="0695b00000KCZurAAH.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My condition logic is &lt;/P&gt;&lt;P&gt;&amp;nbsp;((Integer)globalMap.get("tLoop_1_CURRENT_ITERATION")) == ( (Integer)maxIterations )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which generates this error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000KCZw9AAH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158096iE660E42DAE6D1C93/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000KCZw9AAH.png" alt="0695b00000KCZw9AAH.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Originally I used 'Ctrl+Space' to select the context variable&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000KCZtBAAX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143924iA24AE04373F02A76/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000KCZtBAAX.png" alt="0695b00000KCZtBAAX.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However with just the context variable name&lt;/P&gt;&lt;P&gt;&amp;nbsp;((Integer)globalMap.get("tLoop_1_CURRENT_ITERATION")) == &lt;B&gt;maxIterations&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which produced the same exact error above.&lt;/P&gt;&lt;P&gt;Removing the "Run If" connection and related tWarn allows me to run the job successfully&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000KCZzDAAX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153050i461C911835E48056/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000KCZzDAAX.png" alt="0695b00000KCZzDAAX.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I access a context variable in a "Run If" connection?&lt;/P&gt;&lt;P&gt;I tried globalMap but that defeats the purpose.  I would have to access it to put it out there.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Accessing-a-context-variable-in-a-quot-Run-If-quot-connection/m-p/2372928#M135709</guid>
      <dc:creator>McDon</dc:creator>
      <dc:date>2024-11-15T23:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a context variable in a "Run If" connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Accessing-a-context-variable-in-a-quot-Run-If-quot-connection/m-p/2372929#M135710</link>
      <description>&lt;P&gt;To use context variable, the expression is: context.varName, so, try &lt;/P&gt;&lt;P&gt;context.maxIterations&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 01:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Accessing-a-context-variable-in-a-quot-Run-If-quot-connection/m-p/2372929#M135710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-27T01:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a context variable in a "Run If" connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Accessing-a-context-variable-in-a-quot-Run-If-quot-connection/m-p/2372930#M135711</link>
      <description>&lt;P&gt;Thank you Shong.&lt;/P&gt;&lt;P&gt;When I did ctrl-space and selected that context variable the first time it only returned varName so I thought in that component that was expected.  Thought I tried your suggestion prior but just tried it again and it seems to work - thank you for the incredibly quick turn-around&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 02:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Accessing-a-context-variable-in-a-quot-Run-If-quot-connection/m-p/2372930#M135711</guid>
      <dc:creator>McDon</dc:creator>
      <dc:date>2021-10-27T02:02:15Z</dc:date>
    </item>
  </channel>
</rss>

