< Previous | Next >

Defining variables

Create the variables used to store the data that is exchanged between the mainProcess component and other components it communicates with.

For example, to transfer information about the loan request to a bank employee, you need to create a HumanTaskData variable. You will use this variable for the interface between the mainProcess and the human task, implemented in separate components.

To define the variables used in the mainProcess implementation, follow the tasks below.

Defining the HumanTaskData variable

To pass the instructions on how to handle each loan application to a bank employee, we store those instructions in a variable, HumanTaskData, of type HumanTaskBO.

To define the HumanTaskData variable, follow these steps:
  1. Click Add Variable. which is the Add Variable button. Variable is added to the Variables list.
  2. Rename Variable to HumanTaskData by typing over the highlighted text.
  3. In the Properties view, click Details.
  4. Click Browse. The Data Type Selection window opens.
  5. From the list, select HumanTaskBO and click OK.
  6. Click File > Save.

Defining the automatic approval variables

You use the AutoApprovalRequest variable for the input when invoking the autoapproval operation, and store the response in the AutoApprovalResponse, for use in the process.

  1. To create the automatic approval variables, define them as follows:
    Name Type Data Type
    AutoApprovalRequest Data Type ApplicationBO
    AutoApprovalResponse Data Type boolean
  2. Click File > Save.

Defining the credit check variables

You use the CreditCheckRequest variable for the input when invoking the checkCredit operation, and store the response in the CreditCheckResponse variable, for use in the process.

  1. To create the credit check variables, define them as follows:
    Name Type Data Type
    CreditCheckRequest Data Type ApplicantBO
    CreditCheckResponse Data Type boolean
  2. Click File > Save.
Now that you have all the variables defined, you will begin assigning them initial values to provide input for operations invoked from the business process.

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.
< Previous | Next >