Show TOC

Procedure documentationCreating the Rule Flow Locate this document in the navigation structure

 

You use the rule flow editor to sequence the steps to determine the eligibility of an applicant for the credit card he/she applied for.

Procedure

  1. In the Project Explorer view, expand the creditcard_rules node, the Rules Modeling node, the Check_CreditCard_Eligibility node, the Rule Flows folder and double-click the Main Flow node.

    In the Rule Flow editor that appears, you should see the Start and End points by default.

  2. Delete the connector connecting the Start and End points.

Creating and Editing the Rule Flow Elements
  1. In the Palette, choose the following flow elements and drag and drop them in the Rule Flow editor:

    • Exclusive Choice Gateway

    • 2 Decision Tables

    • 3 Rule Scripts

    This graphic is explained in the accompanying text.

Editing the Decision Table Elements
  1. Choose the decision table element and in the Properties view, in the drop down menu, choose Standard Card Eligibility Table.

    This graphic is explained in the accompanying text.

    Note Note

    • If you do not see the Properties view, choose   Window   Show View   Other   .

    • In the dialog box that appears, expand the General node and choose Properties. Choose OK.

    End of the note.
  2. Choose the second Decision Table element and in the Properties view, in the drop down menu, choose Gold Card Eligibility Table.

  3. Save the changes.

Editing the Rule Script Elements
  1. Choose a rule script and in the Properties view, in the drop down menu choose Check Platinum Card Eligibility.

  2. Choose the second rule script and in the Properties view, in the drop down menu choose Check Standard Card Eligibility.

  3. Choose the third rule script and in the Properties view, in the drop down menu choose Check Gold Card Eligibility.

  4. Save the changes.

Creating Connections
  1. Choose the exclusive choice gateway and in the menu that appears, choose the Create Connection icon and drag and drop the connection into the Standard Card Eligibility Table element.

  2. Create connections from the exclusive choice gateway to the Gold Card Eligibility Table element and Check Platinum Card Eligibility element

  3. Create connection from Standard Card Eligibility Table to Check Standard Card Eligibility

  4. Create connection from Gold Card Eligibility Table to Check Gold Card Eligibility

  5. Create connections from Check Standard Card Eligibility, Check Gold Card Eligibility and Check Platinum Card Eligibility to End point.

The result must be as follows:

This graphic is explained in the accompanying text.

Editing the Exclusive Choice Gateway
  1. Choose the exclusive choice gateway and in the Properties view and choose the Conditions tab.

  2. In the table that appears, double-click the first cell in the Name column and enter Standard Type.

  3. In the Condition column, double-click the first cell and edit the default rule condition:

    • Choose the LHS value and in the drop down menu, expand the CreditCard node and choose CardType.

    • Leave the comparator: Equals as it is.

    • Choose Default after the comparator and in the drop down menu expand the CardType node and choose Standard.

    • Press Alt + Enter to close the editor.

    • Save the changes.

  4. In the table, double-click the second cell in the Name column and enter Gold Type

  5. In the Condition column, double-click the second cell and edit the default rule condition:

    • Choose the LHS value and in the drop down menu expand the CreditCard node and choose CardType.

    • Leave the comparator: Equals as it is.

    • Leave the value:Gold after the comparator as it is.

    • Press Alt + Enter to close the editor.

    • Save the changes.

  6. In the table, double-click the third cell in the Name column and enter Platinum Type

  7. In the Condition column, double-click the third cell and edit the default rule condition:

    • Choose the LHS value and in the drop down menu expand the CreditCard node and choose CardType.

    • Leave the comparator: Equals as it is.

    • Choose Gold after the comparator and in the drop down menu expand the CardType node and choose Platinum.

    • Press Alt + Enter to close the editor.

    • Save the changes.

The result must be as follows:

This graphic is explained in the accompanying text.

The rule flow must be as shown below:

This graphic is explained in the accompanying text.