2022.2

Table Of Contents
l
UseWorkflowtoautomatetheextractionofdatafromthiskindofdatafile.
l
Loadtransactionalorstructureddata.Iftherearedetaillines,transactions,oranyvariable
numberofitemstoputintothetemplate,youneedadatamappingconfigurationtoextract
them.
l
Format,transform,conditionallyinclude/excludeandenhancedatafromthesourcefile.
l
Useotherfieldtypes.Whenloadedfromafileordatabase,allfieldscontainstrings.
l
Usethesamedatafilewithdifferenttemplates,orusedifferentkindsofdatafileswiththe
sametemplate.
Ifyouhavenodataathand,downloadademofromhttp://demo.objectiflune.comandopena
dummydatafiletotestwith.
Loadingadatamappingconfiguration
Ifyoualreadyhaveanopendatamappingconfiguration,itsDataModelandsampledatawillauto-
maticallybeusedwhenyoustartcreatingatemplate.YoumighthavetoclicktheSynchronize Model
buttonontheData Modelpane,toupdatethefields.
Toopenadatamappingconfiguration:
1.
OpentheWelcomescreen:clicktheHome iconatthetoprightorselectHelp > Welcomeon
themenu.
2. ClickOpen File.
3. Selectthedatamappingconfigurationandopenit.
4. Atthetopoftheworkspace,clickthetabwiththenameofthetemplate'ssectiontogobacktothe
template.
5. ClickthebuttonSynchronize modelatthetopoftheData Modelpanetoreloadthedatamodel.
Note: TheExtraDatafieldthatappearsasthefirstfieldineachrecordandineachdetailtableis
automaticallyaddedtotheDataModelbytheDataMapper.Itoffersthepossibilitytoaddextra
datatoexistingdatarecordsinaWorkflowprocess.
TheExtraDatafieldcanbeusedinatemplatejustlikeanyotherdatafield(see"Variabledatain
thetext"onpage708).WhenitcontainsaJSONstring,thisvaluecanbereadwithascriptusing
JSON.parse().
Whengeneratingoutputwithjustadatamappingconfiguration,thetemplateismergedwiththe
completesampledatafilethatispartofthedatamappingconfiguration.Theoutputisnotlimited
Page 712