<?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: Using context variable in a mediation route (ESB 6.3) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-a-mediation-route-ESB-6-3/m-p/2266096#M45426</link>
    <description>I'm not very familiar with Talend ESB, but with no connection between the subjobs, I'm guessing they run simultaneously. If that's true, the execution order will be unpredictable.</description>
    <pubDate>Fri, 09 Jun 2017 00:39:07 GMT</pubDate>
    <dc:creator>cterenzi</dc:creator>
    <dc:date>2017-06-09T00:39:07Z</dc:date>
    <item>
      <title>Using context variable in a mediation route (ESB 6.3)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-a-mediation-route-ESB-6-3/m-p/2266095#M45425</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;I have a weird problem while using context variables in mediation routes with Talend ESB 6.3.1&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have no idea how to join the .zip of my route in here, but you can reproduce very easily :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;cTimer -&amp;gt; cDirect (setVar) -&amp;gt; cLog (output message : context.var)&lt;/P&gt; 
&lt;P&gt;cDirect (setVar) -&amp;gt; cProcessor (context.var = "Fixed") -&amp;gt; cLog (output message : context.var)&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 948px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ltpp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132945iD4E9EEA1199851F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ltpp.png" alt="0683p000009Ltpp.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My route is a bit more complex because I also tried to System.out.println the context variable, and use it in the "When" link of a message Router. Result is shown below :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 395px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu51.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145601iC6421FCF62B9B0F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu51.png" alt="0683p000009Lu51.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here it is, in the cProcessor called "setting context var", I print it, the fix it to "fixed", then print it again : it works.&lt;/P&gt; 
&lt;P&gt;Then, the cLog2 prints it, but it shows the default value, not "fixed". Why ?&lt;/P&gt; 
&lt;P&gt;Same for the cLog1 in the first route, it shows "default", however the cProcessor shows the value "fixed" right after cLog1!&lt;/P&gt; 
&lt;P&gt;Without any surprise, this context variable in the message router has the "default" value instead of "fixed".&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Why does it behave like this ? Is there something I missed somewhere ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance&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:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-a-mediation-route-ESB-6-3/m-p/2266095#M45425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using context variable in a mediation route (ESB 6.3)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-a-mediation-route-ESB-6-3/m-p/2266096#M45426</link>
      <description>I'm not very familiar with Talend ESB, but with no connection between the subjobs, I'm guessing they run simultaneously. If that's true, the execution order will be unpredictable.</description>
      <pubDate>Fri, 09 Jun 2017 00:39:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-a-mediation-route-ESB-6-3/m-p/2266096#M45426</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-06-09T00:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using context variable in a mediation route (ESB 6.3)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-a-mediation-route-ESB-6-3/m-p/2266097#M45427</link>
      <description>&lt;P&gt;as&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLooAAG"&gt;@cterenzi&lt;/A&gt;&amp;nbsp;suggest - need to check how the routes executed, You can run it in debug mode&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;generally - it work, for example - below part of job, which catch exceptions from real-time flow, but send email not more often than 1 per 30 minutes&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-06-09 at 2.42.30 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuZT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140768iF1E5BF86606B38C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuZT.png" alt="0683p000009LuZT.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Other part of this Job use variables as well, but I never mix them between parts&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 03:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-a-mediation-route-ESB-6-3/m-p/2266097#M45427</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-06-09T03:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using context variable in a mediation route (ESB 6.3)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-a-mediation-route-ESB-6-3/m-p/2266098#M45428</link>
      <description>&lt;P&gt;Has anyone got solution for this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 07:11:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-a-mediation-route-ESB-6-3/m-p/2266098#M45428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-16T07:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using context variable in a mediation route (ESB 6.3)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-a-mediation-route-ESB-6-3/m-p/2266099#M45429</link>
      <description>I'm not quite sure what you're trying to achieve, but I'm picking up on the fact that you are thinking about routes in the wrong way. Context variables in Data Integration can be manipulated easily. You only need to account for timing of rows and the knowledge that 1 row will follow another. Routes are slightly different in that you are dealing with the lifespan of a message. You cannot guarantee the transit or order of the messages, so you need to tie variables to the message. Context variables in routes are really not that useful unless you are using them to define endpoints in different environments. What you need to use here are headers. You can set headers on your messages using the csetheader component ( 
&lt;A href="https://help.talend.com/reader/_kirWdGiwNgvHlXUtw8vGA/PJMBt6~g0wBzv97ZUwEpUw" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/_kirWdGiwNgvHlXUtw8vGA/PJMBt6~g0wBzv97ZUwEpUw&lt;/A&gt;).</description>
      <pubDate>Fri, 16 Mar 2018 08:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-context-variable-in-a-mediation-route-ESB-6-3/m-p/2266099#M45429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-16T08:31:24Z</dc:date>
    </item>
  </channel>
</rss>

