2022.2

Table Of Contents
Other JavaScript files
YoumayaddotherJavaScriptfiles,librariesandframeworkstoatemplate,toenhanceyourCapture
OnTheGoForms;see"UsingJavaScript"onpage512.
Testing the template
ACaptureOnTheGo(COTG)templatewillbeusedtocreateaformthatcanbedownloaded,filledout
andsubmittedusingtheCOTGapp.Beforestartingtoactuallyusethetemplate,youwillwanttomake
surethatitproducesaformthatlooksgoodandfunctionsasexpected.Howtopreviewtheform,howto
submitdataandhowtopreviewthesubmitteddataisdescribedinanothertopic:"TestingaCapture
OnTheGoTemplate"onpage541.
Sending the template to the Workflow tool
Aftertestingthetemplate(see"TestingaCaptureOnTheGoTemplate"onpage541)thetemplatemust
besenttotheWorkflowmodule.TemplatessenttotheWorkflowmodulecanbeusedinanyprocess
withinit.
HowtosendthetemplateandthecorrespondingdatamappingconfigurationtotheWorkflowtoolis
explainedinanothertopic:"SendingfilestoWorkflow"onpage418.
Next,youcanstartbuildingaWorkflowconfigurationthatreceivesandhandlesthesubmitteddata.The
configurationshouldstartwithaHTTPServerInputtask(seeWorkflowHelp:HTTPServerInput)of
whichtheHTTPactionistheonespecifiedintheCOTGForm'saction.
Receiving and extracting data from a COTG Form
WhenausersubmitsaCaptureOnTheGoForm,thesubmitteddataaresenttotheaddressspecifiedin
theactionoftheform(see"Specifyinganaction"onpage517).Theywillbereceivedbytheprocess
thatstartswiththematchingServer Inputtask(seeWorkflowHelp:HTTPServerInput).
ThedataispassedonasXML.
ThenexttaskintheprocesstypicallyisanExecute Data Mappingtask.Thistaskcanextractthedata
usingadatamappingconfigurationthatmustbetailor-madeforthisXML.Inordertocreatethisdata
mappingconfigurationyouwillneedanXMLfilewiththeexactsamestructure.Theeasiestwaytoget
thisistotestthetemplateandusethe"GetJobDataFileonSubmit"option;forinstructionssee"Sub-
mittingandpreviewingdata"onpage542.
Tip: HavealookattheSampleProject:"SampleProject:COTGTimesheets"onpage141.This
wizardcreatesallpartsofasampleCOTGproject,includingtheWorkflowanddatamappingcon-
figuration.
Using COTG data in a template
WhenausersubmitsaCOTGForm,aWorkflowconfigurationmaystoretheinformationinadatabase
and/orpushitintootherWorkflowprocesses,forexampletosendaletteroranemailreceipt.Tobe
Page 519