nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Niemiec <josephx...@gmail.com>
Subject Re: NIFI Expression Language to Evaluate custom function
Date Tue, 18 Jul 2017 11:44:29 GMT
I believe what your asking for is possible, I am not very familiar with
Spring though. Check out this commit for the base64encode/decode, lemme
know if it helps you out.

https://github.com/apache/nifi/commit/6f1af31ff28f60d0eddbee5dafe909bc66cc9c71



On Tue, Jul 18, 2017 at 7:04 AM, hemantvsn <hemantvsn@gmail.com> wrote:

> Can NIFI expression language be used to evaluate custom functions.
>
> For instance, we need to invoke the function,
> new org.bson.types.ObjectId().toHexString()
>
> and assign its output to our attribute, is it possible solely using EL?
> Im drawing its parallel with SPEL (Spring expression language)
>
> http://docs.spring.io/autorepo/docs/spring-framework/4.0.0.RC2/spring-
> framework-reference/html/expressions.html
>
> Eg: Class dateClass =
> parser.parseExpression("T(java.util.Date)").getValue(Class.class);
>
> Class stringClass =
> parser.parseExpression("T(String)").getValue(Class.class);
>
>
>
>
>
> --
> View this message in context: http://apache-nifi-developer-
> list.39713.n7.nabble.com/NIFI-Expression-Language-to-
> Evaluate-custom-function-tp16451.html
> Sent from the Apache NiFi Developer List mailing list archive at
> Nabble.com.
>



-- 
Joseph

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message