Also, we'd like to be able to format a timestamp (number) into a particular timezone regardless of the timezone set on the host. Since NiFi uses SimpleDateFormat, that's exposed programmatically via sdf.setTimeZone(...).
On Thu, Apr 23, 2015 at 10:20 AM, Brian Ghigiarelli <[email protected]> wrote: > Thanks! A few options for extension language enhancements I can think of > off-hand are: > > - Capitalize > - Pretty Date ( e.g., "yesterday", "an hour ago", "a few seconds ago" ) > - Phone Formatter > - IP v4 and v6 Formatters > > While a few of those can be done with some chaining of the existing > methods, it would be much nicer to handle more cleanly. > > Brian > > On Wed, Apr 22, 2015 at 12:14 PM, Joe Witt <[email protected]> wrote: > >> it being open source means it is extensible. >> >> It as a functional area not designed for extension means it will be >> less fun to do so. Definitely sounds like something worth thinking >> through how it can be done. >> >> On Wed, Apr 22, 2015 at 12:10 PM, Mark Payne <[email protected]> >> wrote: >> > Brian, >> > >> > The Expression Language is one of the few features in NiFi that we do >> not >> > make extensible. It's an interesting idea though... I'd have to think >> more >> > about how that would be accomplished under the hood. It would be tricky >> but >> > probably doable. >> > >> > What function(s) did you have in mind? >> > >> > Thanks >> > -Mark >> > >> > >> > >> > ------ Original Message ------ >> > From: "Brian Ghigiarelli" <[email protected]> >> > To: [email protected] >> > Sent: 4/22/2015 11:59:17 AM >> > Subject: Expression Language Extensions/Plugins >> > >> >> Are there any docs or guides on how to extend the expression language >> >> functions in order to create our own as plugins? >> >> >> >> -- >> >> Brian Ghigiarelli >> > >
