Support Questions
Find answers, ask questions, and share your expertise

Is it necessary to transfer or remove all flow files before session.commit method?

Is it necessary to transfer or remove all flow files before session.commit method?

Hello,

I am going to create a custom processor in which I will have to explicitly call session.commit() method in a loop in which I transfer a file data but I dont want to transfer or remove my global FlowFile's object that I get in first line of onTrigger from session, I want to use that global flow file object again in my loop, But I also have to use session.commit() in loop.

Please let me know what is the exact use of session.commit(), and what if I wont use session.commit() method.