< Previous | Next >

Defining a case for approved loan requests

Define a choice activity with a case to divide the process into separate paths. The loan request will follow one of two paths, either for loan approval or loan declination, based on the result of a boolean expression.

To add a case to a choice activity, follow the tasks outlined below:

Creating the choice

You will add a choice to split the process into one path for approving the loan application and another path for declining the loan application.

To add the choice, follow these steps:
  1. In the process editor, click Choice, which is the Choice icon.
  2. Click the connection between CheckCredit and Reply. The Choice activity is added.
  3. Rename Choice to ScoreEvaluation by typing over the highlighted text.
  4. Click File > Save.

Creating the condition snippet of a case

You need to create a condition statement that will evaluate the applicant's credit score and then choose which path in the process to follow. You can create the condition statement using visual snippets or using Java code.

To create the condition visual snippet, follow these steps:
  1. In the process editor, click the Case label.
  2. In the Properties view, click Description.
  3. In the Display Name field, type GoodCreditScore.
  4. In the Properties view, click Details.
  5. From the Expression language list, select Java.
  6. For the Expression Type, select Visual.
  7. In the canvas, click on true and replace it with CreditCheckResponse. It should still be connected to return and look like the following image:
    CreditCheckResponse visual snippet
  8. Click File > Save.

Acknowledging the good credit score

After you add the GoodCreditScore case, you need to create an activity that acknowledges the receipt of a good credit score and sends out an automatic response to the loan applicant.

To add the AcknowledgeReceipt activity, follow these steps:
  1. In the process editor, click Invoke, which is the Invoke icon, and then click Assign, which is the Assign icon.
  2. Click the GoodCreditScore label. The Assign activity is added.
  3. Rename Assign to AcknowledgeReceipt.
  4. In the Properties view, click Details.
  5. From the From list, select Fixed Value.
  6. In the Description field, type Your application has been received and is being processed..
  7. From the To list, select Variable.
  8. In the navigation tree, select Response : string. The Query field is empty.
  9. Click File > Save.
Next you will create another set of activities in the process to decide if the loan request will be automatically or manually approved.

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