Hi Devin, Glad to hear you were able to implement the functionality you were looking for. Yes submitting a pull request against the master branch is probably the easiest way to submit a contribution. Right now the community is working towards closing out tickets for an upcoming 1.0 release, so it may take some time before PMCs/committers have time to review, but it is still good to get it posted and available.
Thanks, Bryan On Tuesday, August 2, 2016, Devin Fisher <[email protected]> wrote: > Forgot to mention that I made a JIRA ticket too. > > https://issues.apache.org/jira/browse/NIFI-2460 > > Devin > > On Tue, Aug 2, 2016 at 10:18 AM, Devin Fisher < > [email protected] <javascript:;>> wrote: > > > 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] <javascript:;>> 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] > <javascript:;>> 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] <javascript:;>> 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 > >>> > > >>> > >> > >> > > > -- Sent from Gmail Mobile
