Date: Sun, 16 Aug 2015 19:01:28 +
From: davidrsm...@btinternet.com
To: dev@nifi.apache.org
Subject: Re: Writing to a flowfile
Mark
Thanks very much for all of your help, that works really well, I have also
taken on board your other comments and implemented them
});
rather than
logger.error(parsing to failure);
I hope this helps! Let us know if you're still having problems!
Thanks
-Mark
Date: Sat, 15 Aug 2015 19:41:00 +
From: davidrsm...@btinternet.com
To: dev@nifi.apache.org
Subject: Re: Writing to a flowfile
: Writing to a flowfile
Mark
Thanks for your help. I have used the snippet of code you sent and it
works although I am fairly sure I haven't implemented it correctly, I
have had to put all of my code in the OnTrigger method, instead of in
the the callback.
I also need to change
David,
In this case, since you want to keep the original intact, you will need to
create a 'child' flowfile to write to.
You do this with ProcessSession.create(FlowFile)
So you will have code that looks something like this:
final FlowFile original = session.get();
if (original == null) {