AnsweredAssumed Answered

Do you need to close the dataContext input stream in custom groovy scripts?

Question asked by Seth Duda on Oct 31, 2016
Latest reply on Nov 3, 2016 by Seth Duda

In all of the examples I've seen so far, they never close the input stream returned from dataContext.getStream in custom groovy scripts. In the case where you read the input stream, modify the data, and then pass along a new input stream via dataContext.storeStream, do you need to close the original input stream? Or will Boomi automatically close it for you?


Here's an example that doesn't close the original input stream:

Flat file dataparsing