2019.2

Table Of Contents
The Create Web Content task creates an HTML output file from the Web context in a template.
Select the Web template in the task's properties.
If the Web template doesn't need any data, you can set the Data Source of this task to JSON
and enter an empty JSON string: {}, or set it to Record ID and enter 0 (zero).
However, if the template should be merged with data, the task needs either a valid Record ID or
a JSON object. In that case, one or more steps must be added to the process to provide the
required data. For example:
l
An Execute Data Mapping task that retrieves data from the job file (such as the request
XML). This task outputs one or more records to the Metadata. By default, the Create Web
Content task uses the first Record ID from the Metadata.
l
A Retrieve Items task that retrieves an existing record from the OL Connect database and
outputs it in the Metadata or as JSON object.
Which task or tasks fit best, depends on where the data must come from.
Of course, numerous other tasks could be added to the process. If you'd want to save the output
of the Create Web Content task - the web page - to a file, for example, the task would have to
be followed by a Send to Folder task.
The Create Web Content task can be found on the OL Connect tab of the Plug-In Bar in
Workflow.
For a description of all mentioned OL Connect tasks, see "OL Connect tasks" on page215.
Files used in a web process
Before creating the web process in the Workflow configuration tool, you will need to create:
l A template with a Web context. (See "Creating a template" on page451.)
l If the web page should contain variable data, you might need to make a data mapping
configuration (see "Creating a new data mapping configuration" on page227). If the input
is going to be JSON data, you could add them to the design using a JSON file (see
"Adding JSON data from a JSON file" on page798).
Templates and data mapping configurations need to be sent from the Designer to PlanetPress
Workflow before they can be used in the Workflow process; see "Sending files to Workflow" on
page457.
Page 223