Task 3: Exploring the sequencing features

In this task, you explore the different ways to finely sequence rules within a rule task.

About this task

In the previous tasks, you designed the ruleflow to chain together the different decision points of the decision service. Now, you look at how to sequence rules depending on the requirements of each rule task.

Step 1: Expanding the rule task features

In this step, you configure each rule task according to its sequencing.

Before you begin

There are two important aspects to consider:
  • The Uses/Ordering combination.
  • The Algorithm most suited for your rules.

Expand the rule task that you created to access these features.

Procedure

  1. Click the eligibilityflow ruleflow.
  2. In the display area, click the edit button.
  3. Click the eligibilitytask rule task and expand the Show More triangle at the bottom of the panel.
    The panel displays the following information:
    Image shows the ruleflow.

Step 2: Setting the ordering by priority

In this step, you set the order for running rules.

Before you begin

The Uses field of eligibilitytask indicates that you designed the rule task to include the folders eligibility and duration, in that order. You can invert the order of the folders, or add individual rules to the sequence.

By default, the engine runs all the rules included in the rule task. If you want the rules to be run in the order in which they appear under the Uses field, you set the Ordering field to Literal.

You can also implement an ordering strategy based on the priority property of the rules instead. Rules that have a higher number as priority are run first. You can set the priority property for each rule inRule Designer.

Procedure

In the Ordering field, select Priority.

Step 3: Selecting an algorithm

In this step, you determine which algorithm best fits the running of the rules.

Before you begin

If the action part of the rules contained in the rule task modify the conditions, set the algorithm to RetePlus, which reevaluates the rules. Otherwise, set the algorithm to Fastpath or Sequential to obtain higher performance.
Tip: Not covered here, the Select rules where and Rule selection fields work together to filter the included rules. You can also set initial and final actions, or specify exit criteria.

Procedure

  1. In the Algorithm field, select RetePlus.
  2. Close the panel and save your work.

Results

You have completed the tutorial. It showed you how to create a decision operation that uses the new ruleflow, and a deployment configuration to test or deploy only the eligibility rules.

You can delete the branch that you created by returning to the Branches tab of the decision service, hovering over the branch name, and selecting Delete.