2022.1

Table Of Contents
Tip
You don't have to write a script yourself if you just want to insert some data directly into
the template. You could simply drag-and-drop the data on the template or use the Text
Script Wizard (see: "Variable Data" on page846).
The Workflow configuration
The project's Workflow configuration, Serving a Web Page.OL-workflow, contains just one
process. It is a simple OL Connect Web process (see "Web processes with OL Connect tasks"
on page192).
The NodeJS Server Input task's HTTP action is set to hello. This means that this process will
be invoked whenever someone tries to access the Workflow server with this URL: http://
{server's address}/hello.
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. If it wouldn't
be followed by another task, the Create Web Content task would not return its output to the
Workflow process, where it can be viewed (click View as HTML).
The data mapping configuration
When the browser sends the request to Workflow, the Workflow process starts and puts the
request into XML, including the values that were given in the URL. To extract those values from
the 'job file' (the XML) the process uses a data mapping configuration, made with the
DataMapper: WEB_HELLO Data.
To open the data mapping configuration, select File > Open from the menu and browse to the
Configurations\Resources folder.
To create the data mapping configuration, the input data needed to be saved to a file first (see
"Saving input as sample data" on page179).
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:
For more information about data mapping configurations see "The DataMapper" on page221.
Page 181