Member since
06-24-2017
4
Posts
0
Kudos Received
0
Solutions
02-20-2018
11:48 AM
hi, grovy code below to get flow file:-
attrMap = ['myAttr1': '1', 'myAttr2': Integer.toString(2)]
flowFile = session.get()
if(!flowFile) return
flowFile = session.putAllAttributes(flowFile, attrMap)
grovy code below to run java jar def command = "java -jar UpdateAppIdXMLRequest.jar file.xml" def process = command.execute() process.waitFor() def output = process.in.text log.info output my question is how to pass flow file to java jar command. Shall i deserilized to disk and pass as file to java command as input file?
... View more