I've added the functions following the instructions Bryan point me to and ready to at least have someone else look at it.
Do I do a pull request to the master or some other branch? Devin On Fri, Jun 24, 2016 at 11:33 AM, Devin Fisher < [email protected]> wrote: > Thanks for point out the README (did not find it in my searching). I'll > have a look at it. > > Devin > > On Fri, Jun 24, 2016 at 7:24 PM, Bryan Bende <[email protected]> wrote: > >> Hi Devin, >> >> I'm not aware of a built in escape function in NiFi's EL, although you >> might be able to do some of it with the replace functions. >> >> NiFi's expression language is in this module: >> >> https://github.com/apache/nifi/tree/master/nifi-commons/nifi-expression-language >> >> The README has some good details about how to make changes. Let us know if >> it isn't clear. >> >> Thanks, >> >> Bryan >> >> >> On Fri, Jun 24, 2016 at 1:15 PM, Devin Fisher < >> [email protected]> wrote: >> >> > I'm looking to create a bit of JSON using Nifi Expression Language so >> that >> > I can send it to a web service. But It does not look like Nifi >> Expression >> > Language have a function for escaping text to put into JSON. I've >> looked >> > around in the wiki and I don't see any documentation now how to extend >> > the Expression Language (not even sure if it is possible). >> > >> > Looks like nifi makes use of Apache commons-lang which has some >> functions >> > that would do the heavy lifting. [1] >> > >> > So if someone can help me understand the Expression Language end points >> I >> > could do the work fairly easily I think. And add functions for the other >> > formats supported by StringEscapeUtils (XML, csv, html). >> > >> > I think this could be useful. >> > >> > Devin >> > >> > [1] >> > >> > >> https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringEscapeUtils.html >> > >> > >
