Introduction

We have reviewed how to create and modify a scenario. Now, let's delve into the versioning system and, more specifically, how to use a scenario to make decisions in production.

Versioning

The versioning system manages changes to scenarios over time, allowing you to create and track multiple versions. You can only work on a draft version of a scenario.

You can choose any version or the current draft of each scenario using the dedicated picker in the scenario detail view

Scenario version picker

Scenario version picker

Draft

A Draft represents an editable state of a scenario. You can make multiple changes over time until you are satisfied with the modifications and the scenario passes all validation requirements.

A draft is automatically created at scenario creation. You can also create a new draft from any existing version.

Create a new draft from an existing version

Create a new draft from an existing version

πŸ“˜

Each scenario can have either zero or one draft at any given time.

Version

A Version represents a non-editable state of a scenario. You can view it as a snapshot of the scenario at a specific point in time.

To create a version, you must :

  1. Create or select a draft
  2. Make your changes
  3. Solve any validation issues
  4. Commit your version by clicking the top right button

πŸ“˜

You can quickly identify validation issues by following the red dot indicators in the interface.

Scenario with red dot indicators

Scenario with red dot indicators

Live scenario

For each scenario, you can activate a single version for use in production. This designated version, referred to as the Live version, is utilized to make decisions. You can easily identify if a version is Live from either the scenario list panel or the scenario version picker.

Only the second scenario is currently live

Only the second scenario is currently live

πŸ“˜

Only live scenarios are making decisions

Prepare a scenario version

Some version requires asynchronous preparation to be ready for activation. This step is not always required for activation. If you do need preparation, the top right button will let you know.

  1. Select the version you want to prepare

  2. Click on the top right Prepare button

  3. The process may take a few minutes. When complete, the button will change to Activate.

    Prepare a scenario version

    Prepare a scenario version

πŸ“˜

Preparation is distinct from activation. After successful preparation, you must activate a version to make it live.

Activate a scenario version

  1. Select the version you want to activate
  2. Click on the top right Activate button
Activate a scenario version

Activate a scenario version

πŸ“˜

Only one version can be live at a time. Activating a new version replaces the current live version.

Deactivate a scenario version

  1. Select the live version you want to deactivate

  2. Click on the Deactivate top right button

    Deactivate a live scenario

    Deactivate a live scenario

πŸ“˜

Deactivation halts decision-making for the scenario. Simply activate to change the live version.