2022.2

Table Of Contents
thattable.
Ifthedatabasesupportsstoredprocedures,includinginnerjoins,groupingandsorting,youcanuse
custom SQLtomakeaselectionfromthedatabase,usingwhateverlanguagethedatabasesupports.
Thequerymaycontainvariablesandproperties,sothattheselectionwillbedynamicallyadjustedeach
timethedatamappingconfigurationisactuallyusedinaWorkflowprocess;see"Usingvariablesand
propertiesinanSQLquery"onpage320.
Foranexplanationofalltheoptions,see:"DatabaseInputDatasettings"onpage309.
Settings for a text file
Becausetextfileshavemanydifferentshapesandsizes,therearealotofinputdatasettingsforthese
files.Youcanaddorremovecharactersinlinesifithasaheaderyouwanttogetridof,orunwanted
charactersatthebeginningofyourfile,forexample;youcanalsosetalinewidthifyouarestillworking
witholdlineprinterdata;etc.
Itisimportantthatpagesbedefinedproperly.Thiscanbedoneeitherbyusingasetnumberoflinesor
usingastringoftext(forexample,thecharacter“P”),todetectonthepage.Beawarethatthisisnota
Boundarysetting;itdetectseachnewpage,noteachnewrecord.
Foranexplanationofalltheoptions,see:"TextfileInputDatasettings"onpage310.
Settings for an XML file
XMLisaspecialfileformatbecausethesefiletypescanhaveatheoreticallyunlimitednumberofstruc-
turetypes.Theinputdatahasthreeoptionsthatbasicallydetermineatwhichnodelevelanewrecord
iscreated.Youcan:
l
Selectanelementtypetocreateanewdelimitereverytimethatelementisencountered.
l
EnteranXPathtocreateadelimiterbasedonthenodenameofelements.TheShowallele-
mentsoptionallowsyoutoextractinformationfromallelements,evenwhenthedelimiterissetto
aspecificlower-levelelement.
l
Usetherootnode.Ifthereisonlyonetop-levelelement,therewillonlybeonerecordbeforethe
Boundariesareset.
Seealso:"XMLFileInputDatasettings"onpage311.
Note: TheDataMapperonlyextractselementsforwhichatleastonevalueisdefinedinthefile.
Settings for a JSON file
ForJSONfilestherearetwoinputdataoptionsthatdeterminewhereanewsourcerecordstarts.
Youcaneitherusetheobjectorarrayattherootandgetoneoutputrecord,orselectanobjectorarray
asparent element.Itsdirectchildelements-objectsandarrays,notkey-valuepairs-arethenseenas
Page 225