What output are you getting when you run this? Are you getting any errors?

In terms of overall interaction with the NiFi API, it looks OK. In terms of 
JS/logic, your replace may want to use dateMatch[0] instead of the whole 
dateMatch array. You should also put the session.transfer inside the if 
flowFile != null block so you aren't potentially trying to transfer a null 
flowFile. I tested your match expression [1] and it seems to be OK.

Regards,

Andy I.C.

[1]: https://jsfiddle.net/rdhxgf9j/2/
________________________________________
From: rakesh <[email protected]>
Sent: Tuesday, October 24, 2017 5:53 AM
To: [email protected]
Subject: Re: Flow File as Input to ExecuteScript Processor

Hi Andy,


Thanks for your reply

Based on your suggestion I'm comfortable with javascript so I decided to go
with that but still I'm unable to make it work. Here with I'm attaching my
javascript code please correct me if i'm doing wrong.
WORKINGstringrevExample.txt
<http://apache-nifi-users-list.2361937.n4.nabble.com/file/t310/WORKINGstringrevExample.txt>




Thanks
Rakesh






--
Sent from: http://apache-nifi-users-list.2361937.n4.nabble.com/



Reply via email to