<?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: Nifi Expression language: append or prepend the attribute with string &amp;quot;$$$&amp;quot; in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Expression-language-append-or-prepend-the-attribute/m-p/396655#M249481</link>
    <description>&lt;P&gt;That's perfect !&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 13:17:51 GMT</pubDate>
    <dc:creator>SS_Jin</dc:creator>
    <dc:date>2024-10-31T13:17:51Z</dc:date>
    <item>
      <title>Nifi Expression language: append or prepend the attribute with string "$$$"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Expression-language-append-or-prepend-the-attribute/m-p/203898#M165888</link>
      <description>&lt;P&gt;I have requirement where I need to append and prepend the attribute with "$$$". how ever, Nifi expression language is appending or prepending with "\$"&lt;/P&gt;&lt;P&gt;For example: if attribute named "myattr" value is "This is Test"&lt;/P&gt;&lt;P&gt;when I do ${myattr:prepend('$$$'):append('$$$')}&lt;/P&gt;&lt;P&gt;I am expecting "$$$This is Test$$$"&lt;/P&gt;&lt;P&gt;but the output is "\$This is Test\$"&lt;/P&gt;&lt;P&gt;Is there any way to append or prepend the attribute with "$$$"&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 22:42:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Expression-language-append-or-prepend-the-attribute/m-p/203898#M165888</guid>
      <dc:creator>anilcseiitm2006</dc:creator>
      <dc:date>2018-01-24T22:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Expression language: append or prepend the attribute with string "$$$"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Expression-language-append-or-prepend-the-attribute/m-p/203899#M165889</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14000/anilcseiitm2006.html" nodeid="14000"&gt;@Anil Reddy&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;use 9$ instead of 3$&lt;/P&gt;&lt;PRE&gt;${myattr:prepend('$$$$$$$$$'):append('$$$$$$$$$')}&lt;/PRE&gt;&lt;P&gt;in expression language if you use 3$ are results as 1$ so we need to use 9$ if you want 3$ sign to be added to the attribute value.&lt;/P&gt;&lt;PRE&gt;Input:-
"myattr" value is "This is Test"&lt;/PRE&gt;&lt;PRE&gt;expression:-
${myattr:prepend('$$$$$$$$$'):append('$$$$$$$$$')}&lt;/PRE&gt;&lt;PRE&gt;Output:-
$$$This is Test$$$&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Jan 2018 22:59:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Expression-language-append-or-prepend-the-attribute/m-p/203899#M165889</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-01-24T22:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Expression language: append or prepend the attribute with string "$$$"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Expression-language-append-or-prepend-the-attribute/m-p/203900#M165890</link>
      <description>&lt;P&gt;what might be the reason for the extra character '\' ?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 02:06:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Expression-language-append-or-prepend-the-attribute/m-p/203900#M165890</guid>
      <dc:creator>anilcseiitm2006</dc:creator>
      <dc:date>2018-01-25T02:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Expression language: append or prepend the attribute with string "$$$"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Expression-language-append-or-prepend-the-attribute/m-p/203901#M165891</link>
      <description>&lt;P&gt;it seems like replaceText processor is replacing '$$$$$*' in the content to '\$' while replacing the flow file content!&lt;/P&gt;&lt;P&gt;seems like actual issue is I have an attribute namely "myattr"&lt;/P&gt;&lt;P&gt;when myattr is "$$This is test$$", if I replace the flowfile content with myattr, the content in the flowfile is "\$this is test\$"&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 02:24:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Expression-language-append-or-prepend-the-attribute/m-p/203901#M165891</guid>
      <dc:creator>anilcseiitm2006</dc:creator>
      <dc:date>2018-01-25T02:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Expression language: append or prepend the attribute with string "$$$"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Expression-language-append-or-prepend-the-attribute/m-p/396648#M249479</link>
      <description>&lt;P&gt;Thanks, prepend worked for me, I needed to add a comma before a value.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 08:59:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Expression-language-append-or-prepend-the-attribute/m-p/396648#M249479</guid>
      <dc:creator>SS_Jin</dc:creator>
      <dc:date>2024-10-31T08:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Expression language: append or prepend the attribute with string "$$$"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Expression-language-append-or-prepend-the-attribute/m-p/396654#M249480</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/115980"&gt;@SS_Jin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Another option is to use the NiFi expression Language (NEL) function "literal()}" in the NEL statement:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;${myattr:append(${literal('$$$')}):prepend(${literal('$$$')})}&lt;/LI-CODE&gt;&lt;P&gt;This removes the need to you are using the correct number of "$" to escape $ in the NEL.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 13:07:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Expression-language-append-or-prepend-the-attribute/m-p/396654#M249480</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-10-31T13:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Expression language: append or prepend the attribute with string "$$$"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Expression-language-append-or-prepend-the-attribute/m-p/396655#M249481</link>
      <description>&lt;P&gt;That's perfect !&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 13:17:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Expression-language-append-or-prepend-the-attribute/m-p/396655#M249481</guid>
      <dc:creator>SS_Jin</dc:creator>
      <dc:date>2024-10-31T13:17:51Z</dc:date>
    </item>
  </channel>
</rss>

