<?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: Use a variable in a processor in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Use-a-variable-in-a-processor/m-p/334229#M231661</link>
    <description>&lt;P&gt;Can I clarify that what you want to do is dealing with XML and XPath?&lt;/P&gt;&lt;P&gt;Or based on this "&lt;SPAN&gt;I'm trying to pass an output value of a processor dynamically into another and use it as a new property"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Output values in to flowfile attributes depend on the previous processor.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you are not dealing with XML then the processor you most likely need is ExtractText followed by an RouteOnAttribute&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 17:02:37 GMT</pubDate>
    <dc:creator>DigitalPlumber</dc:creator>
    <dc:date>2022-01-19T17:02:37Z</dc:date>
    <item>
      <title>Use a variable in a processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-a-variable-in-a-processor/m-p/334224#M231660</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to pass an output value of a processor dynamically into another and use it as a new property , here is my flow:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ReplaceText&lt;/STRONG&gt; (gives the output)-&amp;gt; &lt;STRONG&gt;UpdateAttribute&lt;/STRONG&gt; (i created a property which value is referencing output) -&amp;gt;&amp;nbsp; &lt;STRONG&gt;EvaluateXpath&lt;/STRONG&gt; ( i want to pass this value in a new property here) . I tried passing it by ${property_name} and $property_name but nothing works. Is it impossible to have a property referencing another in the EvaluateXpath processor ?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 16:38:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-a-variable-in-a-processor/m-p/334224#M231660</guid>
      <dc:creator>raniaa</dc:creator>
      <dc:date>2022-01-19T16:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable in a processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-a-variable-in-a-processor/m-p/334229#M231661</link>
      <description>&lt;P&gt;Can I clarify that what you want to do is dealing with XML and XPath?&lt;/P&gt;&lt;P&gt;Or based on this "&lt;SPAN&gt;I'm trying to pass an output value of a processor dynamically into another and use it as a new property"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Output values in to flowfile attributes depend on the previous processor.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you are not dealing with XML then the processor you most likely need is ExtractText followed by an RouteOnAttribute&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 17:02:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-a-variable-in-a-processor/m-p/334229#M231661</guid>
      <dc:creator>DigitalPlumber</dc:creator>
      <dc:date>2022-01-19T17:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable in a processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-a-variable-in-a-processor/m-p/334272#M231694</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/69192"&gt;@DigitalPlumber&lt;/a&gt;&amp;nbsp;thanks for your response, im actually dealing with an XML file so i need to use EvaluateXpath to extract values from my file ( i have &lt;STRONG&gt;Getfile -&amp;gt; SplitXml -&amp;gt; EvaluateXpath&lt;/STRONG&gt; in my flow). On the other hand i have a CSV file that im extracting a value from ( i have another flow&lt;STRONG&gt; Getfile -&amp;gt; UpdateAttribute -&amp;gt; QueryRecord -&amp;gt; ReplaceText-&amp;gt; UpdateAttribute&lt;/STRONG&gt;) My goal is to pass the value of the UpdateAttribute into the EvaluateXpath so i can extract a value from my XML file based on the ouput value extracted from my CSV.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 10:41:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-a-variable-in-a-processor/m-p/334272#M231694</guid>
      <dc:creator>raniaa</dc:creator>
      <dc:date>2022-01-20T10:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable in a processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-a-variable-in-a-processor/m-p/334321#M231717</link>
      <description>&lt;P&gt;I understand the issue EvaluateXPath does not take in an attribute syntax and fails at validation since it is validating for a valid Xpath path.&lt;/P&gt;&lt;P&gt;I wonder if there is a way to use QueryRecord instead.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 20:05:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-a-variable-in-a-processor/m-p/334321#M231717</guid>
      <dc:creator>DigitalPlumber</dc:creator>
      <dc:date>2022-01-20T20:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Use a variable in a processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Use-a-variable-in-a-processor/m-p/334371#M231738</link>
      <description>&lt;P&gt;Indeed &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/69192"&gt;@DigitalPlumber&lt;/a&gt;&amp;nbsp;, EvaluateXpath can't handle variables, only an Xpath. Queryrecord might be an alternative if i was using another type of file but since im using an XML file and this processor performs an SQL Query what can be my parameters in the query ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 13:44:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Use-a-variable-in-a-processor/m-p/334371#M231738</guid>
      <dc:creator>raniaa</dc:creator>
      <dc:date>2022-01-21T13:44:04Z</dc:date>
    </item>
  </channel>
</rss>

