2021.2

Table Of Contents
Note
The variable that contains the value of a runtime parameter must be selected in
PlanetPress Workflow, in the Runtime Parameters section of the OL Connect task that
uses the template: the All In One, Create Print Content, Create Email Content, Create
Web Content, or Create Preview PDF task. For more information see "OL Connect tasks"
on page181.
To add a parameter, start by opening the template to which the parameter should be added.
Make sure the template is visible in the workspace; then open the Parameters pane.
Note
Runtime parameters are always added to the file currently visible in the workspace.
To add a single parameter:
1.
Click the Add button ( ).
2. Give the parameter a name.
3. Select the data type. This impacts the way the data can be handled in a script; for
example, if a parameter's type is Number, its value can be used directly in calculations,
without having to parse it first.
In the Parameters pane, the type of a runtime parameter can be recognized by its icon.
4. Optionally, set a default value. A default value will only be used in the case that there is
no actual value coming from the automation tool, e.g. one of the Content Creation tasks in
PlanetPress Workflow, at runtime. Since runtime parameters cannot be empty, this
prevents an error.
At design-time runtime parameters are undefined, unless you add values manually in
order to test a template. For instructions, see below.
5. Click OK.
To add multiple parameters or to set values:
1.
Click the Set Values button ( ). This opens the Set Values dialog which allows to load
JSON data.
Any previously defined runtime parameters are displayed in the dialog as a JSON object.
Page 467