2022.2

Table Of Contents
l
Therecordset,createdbytheExecuteDataMappingtask,isalsoneededtocreateanotherkind
ofoutputinthesameflow.
l
TheinputisJSONdatawhichcanbeuseddirectlyanddoesn'tneedtobestoredinthedatabase.
Inthiscasethereisnoneedtousethedata mappingnodeordata getnode.
l
ThePrintContentItemshavealreadybeencreated,eitherinthesamefloworinanotherflow.
PrintContentItemscanberetrievedfromtheOLConnectdatabaseusingthedata getnode.
Subsequently,thepaginated jobandpaginated outputnodescangenerateprintoutputfrom
them.
NotethatatthetimethePrintContentItemsarecreated,theirPrintContentSetIDneedstobe
storedsomewherewheretheprintflowcanaccessthem,inordertoretrievethePrintContent
Items.YoucouldforexampleuseMongoDB.
Retrievingtheoutput
Theprint outputnodeoutputstwothings:theIDoftheoutputlocationintheFileStoreandanarray
containingtheoutputfile(s).Connecttheprint outputnodewiththeOLConnectfile downloadnode
todownloadaZIParchiveoftheentirejobbasedonthemsg.managedFileIdprovidedbytheprint
outputnode.Thedataisreadintoadatabufferwhichallowsittothenbewrittentodiskusingthewrite
filenode.
ThetargetlocationcansetbyenteringthefullpathintheFilenamefieldofthefilenode.Theother
optionistosetitdynamicallyinmsg.filename,usingachangeorfunctionnode.
Downloading individual output files
Thearraythattheprint outputnodeoutputscanbeusedtodownloadthefilesindividually.
Youwillneedasplitnodetoiterateoverthearrayinmsg.payloadandgenerateanewmessagefor
eachfile,settingmsg.payloadtotherespectivefilename.See"Iteratingoveritemsinanarray"on
page188.
MakesuretocleartheFilenamefieldinthewrite fileoutputnodebeforedeployingtheflow.Avalue
configuredinthenodetakesprecedenceoverthemsgproperty-msg.filenameinthiscase-andwill
beusedforeveryfile,overwritingthepreviousfile.
Files used in a print flow
Beforecreatingaprintflow,youwillneedtocreate:
l
AtemplatewithaPrintcontext.(See"Creatingatemplate"onpage415.)
Inaddition,theflowmayuse:
Page 193