2022.2

Table Of Contents
Caution: warningThe JSON format is not validated by the plugin; it is passed
as is to the server.
Note: Only the first record or JSON object is processed, since this task can
only generate HTML output for a single record.
l
Embed all resources: Check this option to download the resources and embed them in the
HTML file.
l
Do not alter HTML: Check this option to prevent that the Create Web Content task modifies the
HTML. It is recommended to use this option if the template's resources are all hosted outside of
the template (for instance, on a CMS repository).
Note: By default, the Create Web Content task inserts a <base> meta tag in the generated
HTML, specifying a default URL and target for all links on the web page. By pointing to the
Connect Server the job was sent to, the <base> tag enables the HTTP server to retrieve
the resources that were saved with the Designer template. Since the <base> tag corrupts
local anchors - links to another location in the same web page -, the task also replaces the
HREF attribute of local anchors with JavaScript code. With this modification, local anchors
will work; however, relative URLs with hashtags still won't work.
Modifying the HTML this way isn't useful when all resources are either embedded in the
HTML file, or hosted outside of the template. So when the "Embed all resources" or "Do not
alter HTML" options (or both) are checked, the <base> tag isn't added and local anchors
aren't modified.
l
Runtime Parameters: The runtime parameters defined in the selected template are displayed
and their values can be set here. (See Runtime parameters in the Online Help of OL Connect.)
Right-click the field to open the contextual menu that allows to select variables, data and lookup
functions (see "Data selections" on page49).
If the template name is dynamic, you must enter the name (or select a variable that contains the
name) and set the value of all runtime parameters that may occur in the template.
If a runtime parameter is defined in a template, but not set in the task properties, an error will be
raised. Note that it is not possible to change a parameter's type here; that can only be set in the
template itself.
At runtime, Workflow passes the parameter values as strings, and the type defined in the tem-
plate will be used to try and parse the input parameter value. In order to make this work: Boolean
values need to be entered as either “true” or “false”. (When the comparison actually occurs, it will
be a full Boolean comparison. Thus it can compare this runtime parameter with Boolean data val-
ues that are stored as 0/1 in data fields.) Numeric string values need to be parseable as a
Page 521