Champion Challenger for Rules
  • 03 Jun 2022
  • 1 Minute to read
  • Dark
    Light

Champion Challenger for Rules

  • Dark
    Light

Article summary

Overview

Champion Challenger is a feature available within the Run Rule step and is used to test the performance of a Rule. The Champion refers to the original element being used in the process, and the Challenger is an element that contains a change being tested against the Champion.  

Enabling this feature will cause requests to be sent randomly to either the Champion/Challenger at a frequency determined by the Challenger Percentage setting.


Example

This example will use two pre-existing Rules that evaluate if an Amount is greater than 100.

  1. In a Designer Project, create two Rules, one configured with an Int value greater than 100, and another with an Int value not less than 100.
  2. In the same Project, create a new Flow
  3. In the Flow Designer, expand Designer Elements > Rules and add a Pick or Create Rule step onto the workspace.
  4. In the Properties panel of the step, navigate to the ADVANCED > Selection Type drop-down list and select Champion/Challenger.
  5.  Select PICK TARGET.  and choose one of the created Rules. 
  6. Select PICK CHALLENGER and select the other configured Rule.

Champion Challenger Settings

Settings for the Champion/Challenger can be found in the Advanced tab for the Rule.

InputDescription
Selection TypeDetermines the behavior type for the Rule. In this case it is set to Champion/Challenger
Target
This is the current rule that is standard.
Challenger
This is the rule being proposed as a possible replacement; Rule with the change being tested.
Challenger TypeThis Input decides what to do with the challenger.
There are three types:
  • A/B
    • This will run either the Champion or Challenger Rule based on the Challenger Percentage input by the user; the Output will be for whichever Rule was run. The number of times the Challenger Rule is used depends on the Challenger Percentage set on the step.  
  • Output Champion/Challenger
    • As both Rules are run using this option, both Results will be True. Challenger Percent is not required for this selection since both Rules will be run. The "IsChallenger" result will determine if the Challenger Rule was used to determine the Result.
  • A/B, Output Challenger
    • If the Champion Results runs, the Results_Challenger gets returned as well.  If Challenger runs, just IsChallenger is returned.
Challenger Percentage
This value determines how often the Challenger Rule will run.

Debugging

  1. To test the Flow, enter the Debugger via the Debug button from the Top Action Panel inside of the Parent Flow Designer. Depending on the Challenger Type, different output values will be shown.


For further information on Rules, visit the Decisions Forum.

Was this article helpful?