Forum Discussion
IgnatiusN
8 years agoNew Contributor II
This pipeline is a sub-pipeline of an integration pipeline, and having multiple outputs causes problems.
del
8 years agoContributor III
@IgnatiusN, I used to use a Script snap (with output view removed) for this.
Python Example:
from com.snaplogic.scripting.language import ScriptHook
from com.snaplogic.scripting.language.ScriptHook import *
class MFParser(ScriptHook):
def __init__(self, input, output, error, log):
self.input = input
self.output = output
self.error = error
self.log = log
def execute(self):
while self.input.hasNext():
data = self.input.next()
hook = MFParser(input, output, error, log)
I have since written a custom snap that does the same thing and is slightly better in performance (when measured by milliseconds).