<?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: Get job version in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-job-version/m-p/2335745#M104271</link>
    <description>&lt;PRE&gt;	private final String jobVersion = "0.1";&lt;BR /&gt;	private final String jobName = "deduplicate_customers";&lt;BR /&gt;	private final String projectName = "INTERNALPROJECTS";&lt;/PRE&gt;&lt;BR /&gt;You're right Arno, I can't believe I never saw that!&lt;BR /&gt;Well guymage, you have your answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Tue, 21 Feb 2012 15:32:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-02-21T15:32:05Z</dc:date>
    <item>
      <title>Get job version</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-job-version/m-p/2335740#M104266</link>
      <description>Hello,&lt;BR /&gt;For some reasons, I need to display the job version during its execution.&lt;BR /&gt;Is it possible to get it ? (maybe in the globalMap ?)&lt;BR /&gt;I'm using TOS 4.2.0 with Java&lt;BR /&gt;Thanks</description>
      <pubDate>Sat, 16 Nov 2024 12:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-job-version/m-p/2335740#M104266</guid>
      <dc:creator>guymage</dc:creator>
      <dc:date>2024-11-16T12:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get job version</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-job-version/m-p/2335741#M104267</link>
      <description>Hi,&lt;BR /&gt;I know you can get the job name and project name with the jobName and projectName variables, but I don't think there's anything that allows you to get the job version.&lt;BR /&gt;One tricky solution would be to have your job go through the workspace to find the files corresponding to the jobs.&lt;BR /&gt;In Talend each version of a job has its own file, for example:&lt;BR /&gt;Job1_0.1.item&lt;BR /&gt;Job1_0.1.properties&lt;BR /&gt;Job1_0.2.item&lt;BR /&gt;Job1_0.2.properties&lt;BR /&gt;If you get the job Name with the "jobName" variable, you can then use a tFileList component to gets the files that are in the process folder of the workspace (where the jobs are), and use the jobName as the filter for the files returned by the tFileList.&lt;BR /&gt;Then you can extract the versions available for this job, and keep only the max one.&lt;BR /&gt;I can't think of another solution.</description>
      <pubDate>Mon, 20 Feb 2012 23:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-job-version/m-p/2335741#M104267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-20T23:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get job version</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-job-version/m-p/2335742#M104268</link>
      <description>Sure it is tricky ! &lt;BR /&gt;I was hoping for a cleaner solution.&lt;BR /&gt;Thank you</description>
      <pubDate>Tue, 21 Feb 2012 01:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-job-version/m-p/2335742#M104268</guid>
      <dc:creator>guymage</dc:creator>
      <dc:date>2012-02-21T01:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get job version</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-job-version/m-p/2335743#M104269</link>
      <description>I want almost the same functionality; I want to log the SVN revision number in a table. Anyone some suggestions?</description>
      <pubDate>Tue, 21 Feb 2012 08:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-job-version/m-p/2335743#M104269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-21T08:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get job version</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-job-version/m-p/2335744#M104270</link>
      <description>Hi, 
&lt;BR /&gt;I think this is very easy, but correct me if I'm wrong. 
&lt;BR /&gt;As seen in the source produced by Talend the job version is in a variable named jobVersion 
&lt;BR /&gt;It's somewhere in the beginning of the generated code, near jobName and projectName variable. 
&lt;BR /&gt;I think you can reference this variable from anywhere inside the job. 
&lt;BR /&gt;For the SVN revision number Rogier asks about, I don't think this is directly inside the source. 
&lt;BR /&gt;Hope this helps. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Arno</description>
      <pubDate>Tue, 21 Feb 2012 11:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-job-version/m-p/2335744#M104270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-21T11:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get job version</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-job-version/m-p/2335745#M104271</link>
      <description>&lt;PRE&gt;	private final String jobVersion = "0.1";&lt;BR /&gt;	private final String jobName = "deduplicate_customers";&lt;BR /&gt;	private final String projectName = "INTERNALPROJECTS";&lt;/PRE&gt;&lt;BR /&gt;You're right Arno, I can't believe I never saw that!&lt;BR /&gt;Well guymage, you have your answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 21 Feb 2012 15:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-job-version/m-p/2335745#M104271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-21T15:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get job version</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-job-version/m-p/2335746#M104272</link>
      <description>Sorry, I haven't seen this message before. 
&lt;BR /&gt;Thank you for the answer, it works 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 27 Mar 2012 23:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-job-version/m-p/2335746#M104272</guid>
      <dc:creator>guymage</dc:creator>
      <dc:date>2012-03-27T23:38:47Z</dc:date>
    </item>
  </channel>
</rss>

