2022.2

Table Of Contents
l
AnOLConnectdata mappingtaskwhichretrievesdatafromthejobfile(suchastherequest
XML).InadditiontocreatingrecordsintheConnectdatabase,thistaskcanoutputthe(IDsof
the)records.
l
AnOLConnectdata getnodewhichretrievesanexistingrecordsetfromtheConnectdatabase.
l
Astandardcreate filenodethatcreatesaJSONfile.
l
Etc.
Whichnodeornodesfitbest,dependsonwherethedatacomefrom.
Tip: Anumberofnodesacceptruntime parameters.Thesecanbepassedviatheparameters
propertyofthemsgobjectwhichispassedbetweennodes.Forexample,aruntimeparameter
namedbrandIdwouldbepassedviamsg.parameters.brandId.Useafunctionnodeor
changenodetosettheproperty.
Files used in an OL Connect email flow
BeforecreatingtheemailflowintheeditorofNode-REDyouwillneedtocreate:
l
AtemplatewithanEmailcontext.(See"Creatingatemplate"onpage415.)
l
Iftheemailshouldcontainvariabledata,youmayneedtocreateadatamappingconfiguration
(see"Creatinganewdatamappingconfiguration"onpage200).IftheinputisgoingtobeJSON
data,youcouldaddthemtothedesignusingaJSONfile(see"AddingJSONsampledata"on
page720).
Notethatbeforetemplatesanddatamappingconfigurationscanbeusedinaflow,theymustbesentto
theOLConnectserverseparately.ThiscanbedonefromtheDesigner(see"SendingfilestoConnect
Serverortoanotherserver"onpage419)orinastartupflow(see"OLConnectStartupflow"on
page189).
An OL Connect print flow in Node-RED
ThistopicgivesanoverviewofthenodesandfilesthatareusedinatypicalOLConnectprintflowin
Node-RED.
AneasywaytocreatesomeexamplefilestoworkwithistouseaSampleProject.Therearetwo
SampleProjectsthatcreateasampleprintproject;see"SampleProjects"onpage918.Foraprintflow
inNode-REDyouwoulduseallfilesexcepttheWorkflowconfigurationfile.
IftheobjectiveoftheflowistoserveapreviewofaPDF,takealookatthistopic:"AnOLConnectpre-
viewPDFflowinNode-RED"onpage194.
Page 191