RE: Writing to a flowfile

2015-08-16 Thread Mark Payne
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

Re: Writing to a flowfile

2015-08-16 Thread DAVID SMITH
}); 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

RE: Writing to a flowfile

2015-08-15 Thread Mark Payne
: 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

RE: Writing to a flowfile

2015-08-15 Thread Mark Payne
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) {