2022.2

Table Of Contents
The data mapping configurations
Thisprojecthastwodatamappingconfigurations,madewith"TheDataMapper"onpage198.Toopen
oneofthem,selectFile > OpenfromthemenuintheDesignerandbrowsetotheCon-
figurations\Resourcesfolder.
COTG Timesheet Form
TheCOTGTimesheetFormdatamappingconfigurationisdesignedtoextractdatafromthesample
datafile(SampleData.xml).
Theconfigurationalsoaddstwofieldstoeachrecord,usingJavaScript:auniqueID(guid)andafield
thatcontainstheactionoftheForm.
NotethattheCOTGaccountisthesameinalloftherecordsinthesampledata.Itisinsertedintothe
sampledatabytheSampleProject.
COTG Timesheet Report
TheCOTGTimesheetFormdatamappingconfigurationisdesignedtoextractthedatathataresub-
mittedviatheapp.Itfirstextractsthecommonfields,andthentheinformationfromtherowsinthe
form,inaloop.ForinformationabouthowtoextractavariablenumberofsimilarelementsfromanXML
file,see:"FromanXMLfile"onpage238.
Inordertocreatethisdatamappingconfiguration,theinputdataneededtobesavedtoafilefirst(see
"Savinginputassampledata"onpage146).
ThesampledatafileislocatedintheConfigurations\Datafolder,butyouwillalsoseeitwhenyou
openthedatamappingconfigurationitself.
The Workflow configuration
TherearefourprocessesintheCOTGTimesheetsWorkflowconfiguration.SomeofthemusetheOL
ConnecttasksthatarenormallyusedinaWebprocessoraPrintprocess(see"Webprocesseswith
OLConnecttasks"onpage174and"PrintprocesseswithOLConnecttasks"onpage172).
Creating the forms
Thecotg_ts_deploy_formprocessistriggeredwhenanyfileenterstheWorkspace\Infolder,butits
ExecuteDataMappingtaskexpectsanXMLfilethatisstructuredexactlyliketheSampleData.xmlfile
(intheResources\Datafolder).
TheExecuteDataMappingtaskoutputsrecordsintheMetadata.
Subsequently,theMetadata Sequencertaskcreatesaloop;therestoftheprocessisperformedas
manytimesastherearerecordsintheMetadata,foronerecordatatime:
Page 144