Because dynamic business rules can be edited at run time, they are versioned. This allows the user to revert to an earlier version if a newly edited one does not work as expected.
| Version number | Rule Edited |
|---|---|
| 1 | A |
| 2 | B |
| 3 | B |
| 4 | A |
| 5 | B |
In this way, the rule A will be available in versions 1 and 4, while rule B will be available in versions 2, 3, and 5. WorkSpace users are able to select any available version of a given rule in the WorkSpace business rules editor.
At run time, every time a rule needs to be evaluated, the first (most recent) compatible version of it is fetched from the Directory Database. A compatible version of a business rule is a version which accesses project variables and business parameters that exist in the project and have the type expected by the rule.
If no compatible rule is found, the rule that was originally published with the current project version is used. In other words, none of the versions of the rule edited at run time are used. This is a fail-safe mechanism so that a new version of the process will be able to run even when previously edited (and no longer compatible) rules are present.