2022.1

Table Of Contents
In order to create this data mapping configuration, the input data needed to be saved to a file
first (see "Sample Project: COTG Timesheets" on page150).
The sample data file is located in the Configurations\Data folder, but you will also see it when
you open the data mapping configuration itself.
The Workflow configuration
There are four processes in the COTG Timesheets Workflow configuration. Some of them use
the OL Connect tasks that are normally used in a Web process or a Print process (see "Web
processes with OL Connect tasks" on page192 and "Print processes with OL Connect tasks"
on page190).
Creating the forms
The cotg_ts_deploy_form process is triggered when any file enters the Workspace\In folder,
but its Execute Data Mapping task expects an XML file that is structured exactly like the Sample
Data.xml file (in the Resources\Data folder).
The Execute Data Mapping task outputs records in the Metadata.
Subsequently, the Metadata Sequencer task creates a loop; the rest of the process is
performed as many times as there are records in the Metadata, for one record at a time:
l The Set Job Infos and Variables task reads data from the (current record in the)
Metadata and puts them into variables.
l The Create Web Content task merges the record with the COTG Timesheet Form
template.
l The Send to Folder task saves the form to the Forms folder in the project folder, using the
value of one variable as the file name.
l Finally, the Output to Capture OnTheGo task sends information about the form to the
COTG Server. Double-click the task to see how variables are used in its settings.
The Delete task is an Output task that does nothing, actually; it doesn't even remove anything.
However, this step is useful when running the project step by step in Debug mode. Tasks will
only return their output to the process - where it can be viewed - as long as they are followed by
another task.
Serving a form
When the user chooses to download a form in the app, the app sends a request using the URL
that was set for the form in the properties of the Output to Capture OnTheGo task (on the
Deposit tab). The URL contains one parameter: a unique ID.
The cotg_ts_serve_form process receives the request and loads the form (if it exists). The
Page 155