AnsweredAssumed Answered

Is it possible to create multiple output documents from a Groovy script

Question asked by geoff.elliott501583 on Apr 30, 2018
Latest reply on May 1, 2018 by jm477572

I was hoping to create my own Groovy script in a Data Process component to split a single inbound XML document into multiple documents in a similar manner to the XML Splitter data process component.

The reason I cannot use the Splitter data process in Boomi is because it requires a fixed XML profile. The schema of XML documents I need to split can vary substantially in various sections (user created attribute child elements) and therefore I cannot create an XMLProfile that covers all possible XML schemas 

Splitting the document into multiple new documents is reasonably easy to do in Groovy using JDOM2 but I don't understand how to return multiple documents back to the process. I assume this could be done via dataContext object?