< Previous | Next >

Preparing the loan request for processing

You will take the received ApplicationBO and assign its attributes to variables, so you can invoke operations from within the process, using the data stored in the variables as input.

To copy the received data into variables, follow the tasks below.

Assigning input to the credit check request variable

You need to initialize the CreditCheckRequest variable with an applicant's information from an ApplicantBO, so that the creditCheck operation can be invoked.

To copy the applicant information to the CreditCheckRequest variable, follow these steps:
  1. Switch to the process editor.
  2. Click Empty Action, which is the Empty Action icon and then click Assign, which is the Assign icon.
  3. Click the connection between Receive and Reply. The Assign activity was added.
  4. Rename Assign to CopyInput by typing over the highlighted text.
  5. In the Properties view, click Details.
  6. In the From list, select Variable.
  7. In the navigation tree, expand ApplicationInformation : ApplicationBO > applicant : ApplicantBO. The Query field is set to /applicant
  8. In the To list, select Variable.
  9. In the navigation tree, expand CreditCheckRequest : ApplicantBO. The Query field is empty. You should see the following assignment:

  10. Details
  11. Click File > Save.

Assigning the other variables

You will assign the remaining variables with initial values. You can assign multiple variables using a single Assign activity.

There are two variables that we need to assign:
  • HumanTaskData: This variable needs to be initialized with the loan application from an ApplicationBO, so that the process can send instructions to the bank employees.
  • AutoApprovalRequest: This variable needs to be initialized with the applicant's information from an ApplicationBO, so that the autoapproval operation can be invoked.
To assign the variables, follow these steps:
  1. Click the New button. A second assignment is created and added to the number list. You can use that list to jump between each assignment.
  2. Assign the new variable, as follows:
    From From Selection From Query
    Variable ApplicationInformation : ApplicationBO (none)
    To To Selection To Query
    Variable HumanTaskData : HumanTaskBO > application : ApplicationBO /application
  3. Click the New button again. A third assignment is created and added to the number list.
  4. Assign the new variable, as follows:
    From From Selection From Query
    Variable ApplicationInformation : ApplicationBO (none)
    To To Selection To Query
    Variable AutoApprovalRequest : ApplicationBO (none)
  5. Click File > Save.
Now that you have initialized the variables with the correct business objects, you will begin to invoke other components from within the process.

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