<?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 how to prepend constant to attribute  in the flow file in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-prepend-constant-to-attribute-in-the-flow-file/m-p/216708#M178617</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I am trying to prepend constant to the attribute in flow file . I was used below flow &lt;/P&gt;&lt;P&gt;Details :&lt;/P&gt;&lt;P&gt;Input : Flow file contains only below value&lt;/P&gt;&lt;P&gt;{"project" :"ABC-11"}&lt;/P&gt;&lt;P&gt;Output : Flow file should has mentioned value&lt;/P&gt;&lt;P&gt;{"_id.project":"ABC-11"}&lt;/P&gt;&lt;P&gt;here prepending&lt;STRONG&gt;  _id&lt;/STRONG&gt; to the project attribute and followed below flow&lt;/P&gt;&lt;P&gt;source--&amp;gt; updateattribute-&amp;gt;replacetext-&amp;gt;put file &lt;/P&gt;&lt;P&gt;in updateattribute attribute defined the  project filed as below &lt;/P&gt;&lt;P&gt;project   ==&amp;gt;  ${prepend(_id)projectid}&lt;/P&gt;&lt;P&gt;The Processor is giving error  and refereed the nifi expression language guide , There is no function for prepending constant to attribute &lt;/P&gt;&lt;P&gt;Please suggest some idea/thoughts for resolving the issue. Thanks for time and support &lt;/P&gt;</description>
    <pubDate>Tue, 09 Oct 2018 21:38:06 GMT</pubDate>
    <dc:creator>sdendukuri</dc:creator>
    <dc:date>2018-10-09T21:38:06Z</dc:date>
    <item>
      <title>how to prepend constant to attribute  in the flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-prepend-constant-to-attribute-in-the-flow-file/m-p/216708#M178617</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I am trying to prepend constant to the attribute in flow file . I was used below flow &lt;/P&gt;&lt;P&gt;Details :&lt;/P&gt;&lt;P&gt;Input : Flow file contains only below value&lt;/P&gt;&lt;P&gt;{"project" :"ABC-11"}&lt;/P&gt;&lt;P&gt;Output : Flow file should has mentioned value&lt;/P&gt;&lt;P&gt;{"_id.project":"ABC-11"}&lt;/P&gt;&lt;P&gt;here prepending&lt;STRONG&gt;  _id&lt;/STRONG&gt; to the project attribute and followed below flow&lt;/P&gt;&lt;P&gt;source--&amp;gt; updateattribute-&amp;gt;replacetext-&amp;gt;put file &lt;/P&gt;&lt;P&gt;in updateattribute attribute defined the  project filed as below &lt;/P&gt;&lt;P&gt;project   ==&amp;gt;  ${prepend(_id)projectid}&lt;/P&gt;&lt;P&gt;The Processor is giving error  and refereed the nifi expression language guide , There is no function for prepending constant to attribute &lt;/P&gt;&lt;P&gt;Please suggest some idea/thoughts for resolving the issue. Thanks for time and support &lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 21:38:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-prepend-constant-to-attribute-in-the-flow-file/m-p/216708#M178617</guid>
      <dc:creator>sdendukuri</dc:creator>
      <dc:date>2018-10-09T21:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to prepend constant to attribute  in the flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-prepend-constant-to-attribute-in-the-flow-file/m-p/216709#M178618</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/73297/sdendukuri.html" nodeid="73297" target="_blank"&gt;@Suresh Dendukuri&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If your flowfile having only one key,value then use &lt;STRONG&gt;ReplaceText&lt;/STRONG&gt; processor and configure the processor as shown below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="91660-screen-shot-2018-10-09-at-61139-pm.png" style="width: 1446px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16220iAEDF684C072C29D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="91660-screen-shot-2018-10-09-at-61139-pm.png" alt="91660-screen-shot-2018-10-09-at-61139-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We are searching for &lt;STRONG&gt;project&lt;/STRONG&gt; literal value and replacing that with &lt;STRONG&gt;_id.project &lt;/STRONG&gt;by using &lt;STRONG&gt;ReplacementStrategy&lt;/STRONG&gt; as &lt;STRONG&gt;LiteralReplace.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{"project" :"ABC-11"}&lt;/PRE&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;PRE&gt;{"_id.project":"ABC-11"}&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:07:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-prepend-constant-to-attribute-in-the-flow-file/m-p/216709#M178618</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T03:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to prepend constant to attribute  in the flow file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-prepend-constant-to-attribute-in-the-flow-file/m-p/216710#M178619</link>
      <description>&lt;P&gt;Thanks for your time and help &lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 19:30:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-prepend-constant-to-attribute-in-the-flow-file/m-p/216710#M178619</guid>
      <dc:creator>sdendukuri</dc:creator>
      <dc:date>2018-10-10T19:30:12Z</dc:date>
    </item>
  </channel>
</rss>

