Variables pass data from operation to operation. When you
create a variable, specify a name and data type. You can also specify
whether the variable provides input, output, or both input and output
values. Input variables specify the data that is passed to
your process when it is invoked. Output variables are values provided
by your process when the process completes.
An input variable named formData is created for you. The
formData variable passes XML data from the form into your process.
For this process, you will create output variables to store the
contents of the PDF file and the filename of the PDF file by using
the Variables view. Later in this module, you will create variables,
as required, directly from the Process Properties view.
Create a variable for saving the PDF formIn the Variables
view, click the Create New Variable button.
The Variable dialog box appears.
In the Name box, type outputPDFForm.
In the Title box, type Approved loan form.
In the Description box, type Stores the form.
In the Type box, select document. The document
data type is used to store binary file data.
In the Purpose area, select the Output check box to
set the variable as an output value for the process, and click OK.
Create another variable to store the name of the file. Repeat
the steps 1 to 5, but use these values for the new variable:
Name: outputFileName
Title: PDF
filename
Description: The name of the PDF file
Type: string
Purpose: Select
the Output check box.
Click OK and then select File > Save.
You
have created two new variables to store data and pass as output
parameters from your process. The Variables view looks like this
illustration.
|
|
|