<?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>question Re: Is it possible to reference parameters within the ExecuteScript processor? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-reference-parameters-within-the/m-p/373202#M241527</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103072"&gt;@Carson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Like &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105558"&gt;@joseomjr&lt;/a&gt; wrote (but did not gave the entire link by mistake), you should take a look at the following Article as it describes exactly what you need --&amp;gt;&amp;nbsp; &lt;A href="https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-3/ta-p/249148" target="_blank"&gt;https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-3/ta-p/249148&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, you add the property in your NiFi Processor and reference it to your parameter value and afterwards you call it in your script:&lt;/P&gt;&lt;PRE&gt;myValue1 = myProperty1.getValue()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 07:02:38 GMT</pubDate>
    <dc:creator>cotopaul</dc:creator>
    <dc:date>2023-06-26T07:02:38Z</dc:date>
    <item>
      <title>Is it possible to reference parameters within the ExecuteScript processor?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-reference-parameters-within-the/m-p/362058#M238703</link>
      <description>&lt;P&gt;Is it possible to reference parameters within the ExecuteScript processor? My current solution is to create an attribute which contains the parameter value, but it would be a much cleaner solution to be able to directly reference the parameter from the parameter context in my script. For reference, I am using Python.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 19:15:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-reference-parameters-within-the/m-p/362058#M238703</guid>
      <dc:creator>Carson</dc:creator>
      <dc:date>2023-01-23T19:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to reference parameters within the ExecuteScript processor?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-reference-parameters-within-the/m-p/373190#M241520</link>
      <description>&lt;P&gt;Have you seen if this has what you're referring to?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-3/ta-p/" target="_blank"&gt;https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-3/ta-p/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 18:28:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-reference-parameters-within-the/m-p/373190#M241520</guid>
      <dc:creator>joseomjr</dc:creator>
      <dc:date>2023-06-25T18:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to reference parameters within the ExecuteScript processor?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-reference-parameters-within-the/m-p/373202#M241527</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103072"&gt;@Carson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Like &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105558"&gt;@joseomjr&lt;/a&gt; wrote (but did not gave the entire link by mistake), you should take a look at the following Article as it describes exactly what you need --&amp;gt;&amp;nbsp; &lt;A href="https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-3/ta-p/249148" target="_blank"&gt;https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-3/ta-p/249148&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, you add the property in your NiFi Processor and reference it to your parameter value and afterwards you call it in your script:&lt;/P&gt;&lt;PRE&gt;myValue1 = myProperty1.getValue()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 07:02:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-reference-parameters-within-the/m-p/373202#M241527</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-06-26T07:02:38Z</dc:date>
    </item>
  </channel>
</rss>

