A Decision Point is a navigation logic step that evaluates one or more conditions to determine the direction of an Interaction workflow.

You create a Decision Points using Rules. A Decision Point can be based on either a global Rule defined using the Rules feature, or a local Rule defined for the current Interaction only.

Note: Rules-based Decisions (called Decision Points) are available as of Release 8.7. See this article for information on using Decisions with prior releases.

Decision Points can use the following to produce the desired result:

  • one or more conditions that result in a Boolean outcome (with True/False exit points)
  • one or more conditions that result in Enumerated outcomes (with as many exit points as needed)

A Decision Point appears on the Interaction map with the symbol .

 

 

Here are some example scenarios where using a Decision Point is ideal:

  • A product purchasing site offers various payment options, according to the value of the purchase. The Decision Point evaluates whether the value of the purchase is higher than a certain amount, and then directs the user to the page with the appropriate payment options.
  • A travel site provides various benefits based on customer account levels, for example: platinum, gold or silver. The Decision Point determines customer level according to the account number entered and directs the customer only to pages that were designed specifically for their viewing.
  • A banking self-help portal presents customers with different loan application pages, based on employment, credit rating, and overdraft status. In this case, the Decision Point evaluates several concurrent conditions, such as length of current employment being over a certain threshold, a good credit rating based on specific criterion, and overdraft history. The customer is directed to the relevant loan application page based on the Decision result.

Defining Decision Points

A Decision Point includes the following components:

  • Decision Name. A unique name that identifies the Decision Point on the Interaction map.
  • Rule. One or more Boolean or enumerated conditions to analyze input and direct the workflow. You can either select a pre-defined global Account Rule here or create a local Rule.
  • Outcomes. Two or more exit points on the Interaction Map that handle the result of analysis for the decision. A Decision Point automatically creates a Fallback exit point.

Note: You can define a local Rule for the current Interaction while working in the Decision Editor, or select a global Account Rule that has already been defined on the Account Rules page.

To Define a Decision Point:

  1. From the Interaction map, right-click and select Add a Step or hover over the relevant page, and select Navigation Logic > Decision Point.


    The Add New Decision page opens.
  2. In the Decision Name field, enter a unique name for the element. This name will appear on the Interaction Map.
  3. Click on the Rule drop-down list. You can either:
  4. Continue below according to the method you have chosen.

Selecting an Existing Account Rule for the Decision Point

The Rules appearing in the drop-down list are global Rules which are available for all Interactions (found on the Account Rules page). When you select a global Account Rule, the Decision evaluation will return one of the enumerated result values or the Fallback value for the Rule.

For more information, refer to Creating Account Rules.

  1. Click on Select rule in the drop-down box.



  2. Select an existing Rule from the list. Your selection becomes the Rule used for the Decision Point.
  3. At the lower right of the page, click Create. The Decision Point will be created on the Interaction Map, together with its exit points.

Creating a New Rule for the Decision Point

Note: When you create a new Rule inside a Decision Point, the Rule will only be available to the current Interaction. If you wish to create a global Account Rule that is available to all Interactions, use the Rules button. For more information, see Creating Account Rules.

You can choose to create either:

  1. Click on Select rule in the Rule drop-down box. Then click New rule next to the icon.



    The local Rule definition panel will appear:



  2. By default, the Rule Type Enum is displayed for a new Rule.

    Enum rules enable you to build sets of multiple conditions to determine the outcome of a Decision Point. As you build the rule you can specify AND/OR logic for how each individual condition is applied to the Rule, and specify values to use when one or more conditions evaluate to True. You can also create groups of conditions that are evaluated together to determine an outcome. For detailed information on creating Enum Rules, refer to Creating Account Rules.
    Note: You can change the Rule Type here to create a Boolean Rule. (See Using a Single Logical (Boolean) Condition for the Rule.)
  3. Define the Enum Rule conditions:

    Enter comparator values for the first Enum condition statement. Click in the left-side variable field, and do one of the following:
    • Select a variable or formula from the Variables List
    • Create a new variable (for instructions, refer to Creating User Variables), or
    • Choose the .elementAt variable from a Collection variable and enter the index location of the item you want to access. (Only simple Collections are supported when using the .elementAt variable. For more on using Collections, click here.)
  4. Select the required comparison logic (equals, less than, etc.) to be used in evaluating the condition. The comparison logic options depend on the selected variable type as detailed here.
  5. Click in the right-side field and determine the value to compare against:
    • Enter a set value
    • Enter "@" then select a variable from the Variables list
    • Create a new variable, or
    • Choose the .elementAt variable from a Collection variable and enter the index location of the item you want to access.

    Note: If you have entered a value to compare that results in an error (for example, a text value when a number is expected for the variable), the Web Interaction Designer will issue a warning to correct the error. If an error persists in a condition, an execution error will occur when the Interaction is published and run.
  6. After you specify left and right comparators for the condition, enter the desired value for THEN which will be passed if the current condition evaluates to True. This value will be used by a Decision exit point.
  7. Move to the next condition of the Rule. If needed, you can add a new condition by clicking on Add condition next to the icon. When adding the new condition, be sure to select how it will be applied using the AND/OR button at the upper left of the Rule condition.

    You can also create a new group of conditions that will be evaluated together by clicking Add group. For more information about creating groups of conditions, see About the Rules Editor.
  8. Repeat Steps 3 through 8 above for each IF statement you create for the Rule.
  9. Click Create. The Decision Point will be added to the Interaction map, together with its exit points.

    When the Interaction is run, the flow direction will continue to the exit point that evaluates to True. If none of the conditions you have defined are True, the flow direction will continue to the Fallback exit point.
    Note: If you define a Rule that evaluates to multiple True conditions, the flow direction will continue to the first exit point that evaluates to True.

Using a Boolean Outcome for the Rule

Use Boolean logic for a Decision Point when its outcome is easily determined by a single True/False statement.

  1. Select New rule from the Rule drop-down box. Then click New rule next to the icon.
  2. From the Rule Type drop-down list, click Boolean.



    The Boolean rule definition panel will appear.



  3. Enter comparator values for the single condition. Click in the left-side variable field, and do one of the following:
    • Select a variable or formula from the Variables List
    • Create a new variable (for instructions, refer to Creating User Variables), or
    • Choose the .elementAt variable from a Collection variable and enter the index location of the item you want to access. (Only simple Collections are supported when using the .elementAt variable. For more on accessing Collections, click here.)
  4. Select the required comparison logic (equals, less than, etc.) to be used in evaluating the condition. The comparison logic options depend on the selected variable type as detailed here.
  5. Click in the right-side field and determine the value to compare against:
    • Enter a set value
    • Enter "@" then select a variable from the Variables list
    • Create a new variable, or
    • Choose the .elementAt variable from a Collection variable and enter the index location of the item you want to access.
  6. After you specify left and right comparators for the condition, enter the desired value for THEN which will be passed if the current condition evaluates to True.
  7. Click Create. The Decision Point will be added to the Interaction map.

    If the condition you have defined evaluates to True, the Interaction flow direction will continue to the True exit point. Otherwise, flow direction will continue to the Fallback exit point.

    Note: If you have entered a value to compare that results in an error (for example, a text value when a number is expected for the variable), the Web Interaction Designer will issue a warning to correct the error. If an error persists in a condition, an execution error will be occur when the Interaction is published and run.

 

Revision:

Comments