Search…
SDK and Frameworks
Rule State
*Applies to all Rule types - Decision Rules, Scripting Rules and Rule Flows

The two rule states

Every Rule (Decision Rule/Scripting Rules/Rule Flow) table has two control states: Published and Pending. The state can be set on every version of the rule separately.
Decision tables and scripting rules are in Published state when created, but Rule Flow are in Pending state as well as all newly created versions and all imported rules.

Published state

Rule in Published state is ready for production and is available via Solver API.

Examples:

Pending state

Rules in**Pending ** state is not available via Solver API. If you try to call "pending" rule, Solver API returns the following HTTP error:
1
400 Bad Request
2
{
3
"error": {
4
"message": "Rule state is not published"
5
}
6
}
Copied!

Example:

Rule in pending state

How to change the rule state

The state can be changed in rule detail by clicking on "State". The rule must be saved to apply the changes made on the state.