<?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 Execute Groovy validators in Job flow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Execute-Groovy-validators-in-Job-flow/m-p/2343489#M111237</link>
    <description>Hi, 
&lt;BR /&gt;The Excel files that I upload are like snowflakes, no two are alike! To speed up development time, I'd like to access our Groovy/Grails domain class validators prior to the upload of each row. 
&lt;BR /&gt;I've tried many suggestions both on this forum and outside. The most promising is to bind to the globalMap using tGroovyFile and then call it from a tJava component, but tGroovyFile throws a groovy.lang.MissingPropertyException: No such property: globalMap for class: Script1. 
&lt;BR /&gt;The example code in the Groovy file is: 
&lt;BR /&gt;globalMap.put("GroovyObject", new MyGroovyObject()) 
&lt;BR /&gt;class MyGroovyObject { 
&lt;BR /&gt;def myMethod(row) { 
&lt;BR /&gt;// Do anything you want with the row 
&lt;BR /&gt;// update the row directly like 
&lt;BR /&gt;row.counter++ 
&lt;BR /&gt;row.email = row.email + "_TEST" 
&lt;BR /&gt;}} 
&lt;BR /&gt;It errors out before even getting to the tMap. Is there something I'm missing? (I'm a Groovy noob.) Is there example code somewhere? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Eileen</description>
    <pubDate>Sat, 16 Nov 2024 12:30:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:30:30Z</dc:date>
    <item>
      <title>Execute Groovy validators in Job flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Groovy-validators-in-Job-flow/m-p/2343489#M111237</link>
      <description>Hi, 
&lt;BR /&gt;The Excel files that I upload are like snowflakes, no two are alike! To speed up development time, I'd like to access our Groovy/Grails domain class validators prior to the upload of each row. 
&lt;BR /&gt;I've tried many suggestions both on this forum and outside. The most promising is to bind to the globalMap using tGroovyFile and then call it from a tJava component, but tGroovyFile throws a groovy.lang.MissingPropertyException: No such property: globalMap for class: Script1. 
&lt;BR /&gt;The example code in the Groovy file is: 
&lt;BR /&gt;globalMap.put("GroovyObject", new MyGroovyObject()) 
&lt;BR /&gt;class MyGroovyObject { 
&lt;BR /&gt;def myMethod(row) { 
&lt;BR /&gt;// Do anything you want with the row 
&lt;BR /&gt;// update the row directly like 
&lt;BR /&gt;row.counter++ 
&lt;BR /&gt;row.email = row.email + "_TEST" 
&lt;BR /&gt;}} 
&lt;BR /&gt;It errors out before even getting to the tMap. Is there something I'm missing? (I'm a Groovy noob.) Is there example code somewhere? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Eileen</description>
      <pubDate>Sat, 16 Nov 2024 12:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Groovy-validators-in-Job-flow/m-p/2343489#M111237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Groovy validators in Job flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Groovy-validators-in-Job-flow/m-p/2343490#M111238</link>
      <description>Hi,&lt;BR /&gt;This blog post has a video that shows how to use groovy with Talend: &lt;BR /&gt;  &lt;A href="http://bekwam.blogspot.com/2011/02/tutorial-using-groovy-with-talend-open.html" rel="nofollow noopener noreferrer"&gt;http://bekwam.blogspot.com/2011/02/tutorial-using-groovy-with-talend-open.html&lt;/A&gt;&lt;BR /&gt;Here's another post that describes how to get data out of groovy (say a validator result and error messages object).  &lt;BR /&gt;  &lt;BR /&gt;  &lt;A href="http://bekwam.blogspot.com/2011/04/passing-variable-out-of-tgroovy-with.html" rel="nofollow noopener noreferrer"&gt;http://bekwam.blogspot.com/2011/04/passing-variable-out-of-tgroovy-with.html&lt;/A&gt;</description>
      <pubDate>Wed, 14 Dec 2011 20:56:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Groovy-validators-in-Job-flow/m-p/2343490#M111238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-14T20:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Groovy validators in Job flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Groovy-validators-in-Job-flow/m-p/2343491#M111239</link>
      <description>Thanks for the blog posts Carl!
&lt;BR /&gt;Best,
&lt;BR /&gt;Pcoffre.</description>
      <pubDate>Thu, 15 Dec 2011 14:23:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Groovy-validators-in-Job-flow/m-p/2343491#M111239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-15T14:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Groovy validators in Job flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Groovy-validators-in-Job-flow/m-p/2343492#M111240</link>
      <description>Hi walkerca,&lt;BR /&gt;I have seen the first link, and the issue I have is that tGroovy and tGroovyFile only run once at the beginning of the job, and the code needs to run for every row. The second link looks promising and is one I haven't seen before. I'll work with it to see if it solves my problem.  &lt;BR /&gt;Thank you for your response!&lt;BR /&gt;Eileen</description>
      <pubDate>Thu, 15 Dec 2011 16:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Groovy-validators-in-Job-flow/m-p/2343492#M111240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-15T16:41:28Z</dc:date>
    </item>
  </channel>
</rss>

