Defining variables

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 form

  1. In the Variables view, click the Create New Variable Green plus sign. button. The Variable dialog box appears.

  2. In the Name box, type outputPDFForm.

  3. In the Title box, type Approved loan form.

  4. In the Description box, type Stores the form.

  5. In the Type box, select document. The document data type is used to store binary file data.

  6. In the Purpose area, select the Output check box to set the variable as an output value for the process, and click OK.

  7. 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.

  8. 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.

View full size graphic
Variables View in Workbench.

// Ethnio survey code removed