Versioning of Rule Engine Rules
Rule Engine assigns version numbers to your rules to help you keep track of changes between published versions of a rule.
In Rule Engine, versioning allows you to track the changes that you make to your rules. Versioning also allows you to edit published versions of a rule without immediately affecting the active rule.
Implementation
Keep the following principles in mind regarding versions in Rule Engine:
- When you create a rule, the rule has the version number 0.
- The version number remains 0 even after you publish the rule.
- When you edit a published rule for the first time, the new version of the rule has version number 1.
- You can only edit the latest version of a rule.
- Anytime you edit a published rule, Rule Engine creates a new version of that rule. The new version is not automatically published. Anytime you create a new version of a rule, you must publish the new version for the changes to take effect on the storefront.
- You can publish different versions of a rule to different modules.
- You cannot revert to an earlier version of a rule. However, you can republish an inactive earlier version of a rule at any time.