Search FlexiRule docs

Recent
Pinned

Press Esc to close. Use arrow keys and Enter inside results. Searches are remembered locally.

FlexiRule Docs

Test & Operate

Validate rule behavior, understand test results, and manage rules safely in production.

Improve this page

Test & Operate#

Build the rule, verify its behavior, then manage its production lifecycle. FlexiRule separates manual testing from live event execution: a manual test runs a selected rule against a chosen document, while active rules can run automatically when their configured triggers match.

Use this section to learn how to test safely, investigate execution results, and control whether a rule participates in live processing.

  1. Build and validate. Check the trigger, entry condition, action configuration, graph connections, and required values.
  2. Test representative cases. Run the rule against documents that should match and documents that should not. Inspect the executed path, step results, and errors.
  3. Review side effects. Understand the selected test mode before running actions that may create, update, submit, or notify.
  4. Activate deliberately. Confirm the rule configuration and permissions before allowing matching live events to execute it.
  5. Monitor and maintain. Inspect execution logs, disable a rule when necessary, and use the supported lifecycle workflow when changing or retiring it.

Choose a task#

If you want to…Read
Understand Draft, Active, Disabled, and Archived statesRule Lifecycle
Run a manual test and inspect the path and step resultsTesting & Debugging
Investigate an actual production executionTesting & Debugging — see the Production execution logs section.
Configure triggers and entry conditionsRule Configuration
Check the meaning of an action before testing itAction Types

Understand the difference#

  • Validation checks whether the rule definition is structurally and configurationally valid. A successful validation does not prove every runtime path behaves as intended.
  • Manual testing executes a selected rule against a chosen document or supported test input. Inspect the returned path and results rather than relying only on whether the run completed.
  • Live execution happens when an active rule matches its configured trigger. Use execution logs to investigate what actually happened in production.
  • Dry run is a separate execution setting. Where enabled, FlexiRule wraps execution in a database savepoint and rolls back database changes made during the run. Do not assume a test is side-effect-free unless the selected test mode confirms dry-run behavior; external effects may not be reversible by a database rollback.

Before enabling a rule#

  • Test both expected and unexpected cases, including conditions that should stop execution or choose a different branch.
  • Check document permissions and the side effects of actions such as Document Action, Assignment, Notify, and Process.
  • Review failures and step-level output; fix configuration or data issues before activation.
  • Confirm the intended trigger, target DocType, watched fields, and entry condition.
  • Know how to disable the rule and where to find its execution logs.

Guides#

Rule Lifecycle Understand how rules move from draft through testing and activation to disabled or archived states. Testing & Debugging Safely simulate rule execution and inspect execution paths, results, and live logs.