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:
- Click
. which is the Add Variable button. Variable
is added to the Variables list.
- Rename Variable to HumanTaskData by
typing over the highlighted text.
- In the Properties view, click Details.
- Click Browse. The Data Type Selection window
opens.
- From the list, select HumanTaskBO and click OK.
- Click .
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.
- To create the automatic approval variables, define them as follows:
Name |
Type |
Data Type |
AutoApprovalRequest |
Data Type |
ApplicationBO |
AutoApprovalResponse |
Data Type |
boolean |
- Click .
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.
- To create the credit check variables, define them as follows:
Name |
Type |
Data Type |
CreditCheckRequest |
Data Type |
ApplicantBO |
CreditCheckResponse |
Data Type |
boolean |
- Click .
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.