<?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: In-Memory processing variables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/In-Memory-processing-variables/m-p/2377735#M139546</link>
    <description>&lt;P&gt;No response from anyone?&lt;/P&gt;&lt;P&gt;I will approach this in another way.&lt;/P&gt;&lt;P&gt;tMemorizeRows wasn't helpful, but now that I know it exists and what it is for, I do have other uses for it.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Feb 2022 16:38:03 GMT</pubDate>
    <dc:creator>McDon</dc:creator>
    <dc:date>2022-02-09T16:38:03Z</dc:date>
    <item>
      <title>In-Memory processing variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/In-Memory-processing-variables/m-p/2377732#M139543</link>
      <description>&lt;P&gt;Talend Studio 7.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking to define and update a list of processing variables.&lt;/P&gt;&lt;P&gt;My list would have the fields: source, destination, last updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to read the source and then only connect to, and update the destination if the source.lastUpdate is &amp;gt; destination.lastUpdate.&lt;/P&gt;&lt;P&gt;This is important as I can cut out connecting to the source and querying it by simply saving this information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my thinking is:&lt;/P&gt;&lt;P&gt;1 - read source&lt;/P&gt;&lt;P&gt;2 - if source.lastUpdate &amp;lt;= destination.lastUpdate OR destination.lastUpdate is null then...&lt;/P&gt;&lt;P&gt;3 - connect to destination&lt;/P&gt;&lt;P&gt;4 - update destination&lt;/P&gt;&lt;P&gt;5 - update destination.lastUpdate in memory&lt;/P&gt;&lt;P&gt;6 - sleep for interval&lt;/P&gt;&lt;P&gt;7 - repeat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is obviously a significantly simplified representation.  Connecting to the destination and querying it is bigger than what I've outlined, but this is what I'm trying to accomplish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have a tFixedFlowInput -&amp;gt; tFlowToIterate -&amp;gt; [connect to source]....&lt;/P&gt;&lt;P&gt;But I don't not know how to update the value in my tFixedFlowInput or something similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts would be helpful&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/In-Memory-processing-variables/m-p/2377732#M139543</guid>
      <dc:creator>McDon</dc:creator>
      <dc:date>2024-11-15T23:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory processing variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/In-Memory-processing-variables/m-p/2377733#M139544</link>
      <description>&lt;P&gt;So I thought I would try this:&lt;/P&gt;&lt;P&gt;tSetGlobalvar1.lastLoadDate = 1/1/1900&lt;/P&gt;&lt;P&gt;-&amp;gt; tInfiniteLoop&lt;/P&gt;&lt;P&gt;-&amp;gt; tRest&lt;/P&gt;&lt;P&gt;-&amp;gt; tExtractJsonFields -&lt;/P&gt;&lt;P&gt;-&amp;gt; tFilterRow.lastLoadDate &amp;lt; tRest.response.modifiedDate&lt;/P&gt;&lt;P&gt;--filter--&amp;gt; tSetGlobalVar2.lastLoadDate = tRest.response.modifiedDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is when I try and add the lastLoadDate to the filter,&lt;/P&gt;&lt;P&gt;it looks as if there are two instances of lastLoadDate&lt;I&gt; (per the attached screenshot)&lt;/I&gt;.&lt;/P&gt;&lt;P&gt;One instance defined within the scope of tSetGlobalVar1&lt;/P&gt;&lt;P&gt;and another entirely different instance of tSetGlobalVar2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This defies the "Global" portion of the name of the component.&lt;/P&gt;&lt;P&gt;Have I done something wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to update one instance of lastLoadDate and use it in the comparison.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N3FvZAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152262i29C07F3A3E4F96BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N3FvZAAV.png" alt="0695b00000N3FvZAAV.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 23:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/In-Memory-processing-variables/m-p/2377733#M139544</guid>
      <dc:creator>McDon</dc:creator>
      <dc:date>2022-01-25T23:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory processing variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/In-Memory-processing-variables/m-p/2377734#M139545</link>
      <description>&lt;P&gt;nothing on this?&lt;/P&gt;&lt;P&gt;I tMemorizeRows has some potential?&lt;/P&gt;&lt;P&gt;Struggling to see how I could get it into a loop to update a lastUpdatedDateTime in each iteration and compare that with the received lastModifiedDate in the JSON response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have any examples?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 01:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/In-Memory-processing-variables/m-p/2377734#M139545</guid>
      <dc:creator>McDon</dc:creator>
      <dc:date>2022-02-08T01:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory processing variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/In-Memory-processing-variables/m-p/2377735#M139546</link>
      <description>&lt;P&gt;No response from anyone?&lt;/P&gt;&lt;P&gt;I will approach this in another way.&lt;/P&gt;&lt;P&gt;tMemorizeRows wasn't helpful, but now that I know it exists and what it is for, I do have other uses for it.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 16:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/In-Memory-processing-variables/m-p/2377735#M139546</guid>
      <dc:creator>McDon</dc:creator>
      <dc:date>2022-02-09T16:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory processing variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/In-Memory-processing-variables/m-p/2377736#M139547</link>
      <description>&lt;P&gt;hi, to get the value of  a global variable :&lt;/P&gt;&lt;P&gt;(type of your object variable)globalMap.get("variable name")&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt; (String)globalMap.get("hello")&lt;/P&gt;&lt;P&gt; (int)globalMap.get("age")&lt;/P&gt;&lt;P&gt;to set it &lt;/P&gt;&lt;P&gt;globalMap.put("variable name", new variable value)&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;globalMap.put("hello","my name is jeremy")&lt;/P&gt;&lt;P&gt;globalMap.put("age",35)&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 13:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/In-Memory-processing-variables/m-p/2377736#M139547</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-02-11T13:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: In-Memory processing variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/In-Memory-processing-variables/m-p/2377737#M139548</link>
      <description>&lt;P&gt;Thank @guenneguez jeremy​&amp;nbsp;for your response.&lt;/P&gt;&lt;P&gt;I am currently using that method for a single variable.&lt;/P&gt;&lt;P&gt;However, in this particular case, I am doing &lt;/P&gt;&lt;P&gt;tFixedFlowInput -&amp;gt; tInfiniteLoop -&amp;gt; tFlowToIterate -&amp;gt; ... all sorts of processing stuff...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My tFixedFlowInput contains a list to operate on and processing parameters for each.&lt;/P&gt;&lt;P&gt;These are IDs that need to be used in a RESTAPI call along with other processing parameters that vary for each entry.&lt;/P&gt;&lt;P&gt;My goal is to make my flow based on an input list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the things I want to accomplish is storing that last time I loaded that specific entry to my database.&lt;/P&gt;&lt;P&gt;Each call I make checks the last modified date, if the source data has not change, I terminate - no need to incur processing costs or time.&lt;/P&gt;&lt;P&gt;When I do load new data, I want to update my last load date ONLY FOR THAT ENTRY.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I can successfully read the tFixedFlow input data.&lt;/P&gt;&lt;P&gt;How do I update it for the next iteration of the loop?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I do not need to update the static entry defined in tFixedFlow input.&lt;/P&gt;&lt;P&gt;I &lt;B&gt;only&lt;/B&gt; want to update the in-memory copy.&lt;/P&gt;&lt;P&gt;When the flow is terminated and restarted, I will begin again with whatever was originally defined in the tFixedFlowInput.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would prefer to not use a database control table as that somewhat defeats the purpose.  I want to check every 5 minutes and don't want to query my database 4 times (1 for each tFixedFlowInput entry) every 5 minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using a Webhook is not an option right now.  My project does not have the web infrastructure to support that yet and I cannot hold up this implementation for that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for the interest and to anyone who gives this a look.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 17:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/In-Memory-processing-variables/m-p/2377737#M139548</guid>
      <dc:creator>McDon</dc:creator>
      <dc:date>2022-02-11T17:41:05Z</dc:date>
    </item>
  </channel>
</rss>

