A
process
variable is required to handle all document data and is used as an input
parameter of the Generate document task. The type of the variable is
JSON.
To create the
JSON
process variable:
-
In the Create variable window, enter a meaningful name in
the Variable name field. For this tutorial, the name is
documentData.
-
Click the Variable type drop-down menu and select .
-
In the Default value section, select
Expression.
-
Enter the value of the variable.
The value of this variable has the following key-value pair structure:
"Markup": "${VariableName}"
The key is the name of the markup that you entered into your template document creating a
document template, and the value is the name of the variable created with
the static process variables. See Creating a Document Template
and Creating Static Process Variables for more information.
The expression used for this tutorial is:
{
"Fname": "${firstName}",
"Lname": "${lastName}"
}
Note:
The expression is case-sensitive and must follow the markup used in the
template.
-
Click Save.
The Variables window is displayed.
-
Once all of the corresponding variables are created, proceed to Building a Process with the Generate Document Task.