Search FlexiRule docs

Recent
Pinned

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

FlexiRule Docs

DocTypes

Reference for all DocTypes used in FlexiRule.

Improve this page

DocType Reference#

Keywords: doctype, schema, metadata, rule, process, log, scheduler

Audience#

  • Administrators
  • Developers
  • Contributors

Overview#

FlexiRule uses a structured set of DocTypes to manage rule definitions, visual metadata, reusable logic, and execution audit trails. This reference provides a breakdown of the primary DocTypes and their key fields.


Visual Schema#

erDiagram RULE ||--o{ RULE-ACTION : contains RULE ||--o{ RULE-EXECUTION-LOG : generates PROCESS ||--o{ PROCESS-OPERATION : defines RULE-ACTION }o--|| PROCESS : executes RULE-SCHEDULER ||--|| RULE : triggers

1. Rule#

The primary container for an automation flow. It defines when logic starts and what it aims to achieve.

When to Use#

  • Use this as the main entry point for any automation logic in FlexiRule.
FieldTypeDescription
rule_nameDataUnique identifier of the rule.
trigger_typeSelectDocType Event, Scheduler Event, or Callable Event.
document_typeLinkThe target DocType this rule monitors.
statusSelectLifecycle state: Draft, Active, Disabled, etc.

2. Rule Action#

Represents a single executable node (Step) within a Rule’s graph.

When to Use#

  • Rule Actions are managed via the Rule Builder, which handles the creation of these child records automatically.
FieldTypeDescription
action_typeSelectCategory: Condition, Process, Loop, Assignment, etc.
on_errorSelectPolicy: Stop, Continue, Retry, Rollback.
next_step_if_trueDataNode ID to execute on success.

3. Process#

Defines a file-backed logic module that can be extended via custom Python code.

When to Use#

  • Use this to register custom Python modules that provide specific “Operations” to the Rule Builder.
FieldTypeDescription
process_nameDataUnique identifier for the process.
is_standardSelectIf Yes, code is synced to the app’s directory.

4. Rule Execution Log#

Audit trail for every rule execution.

When to Use#

  • Use this to debug rule execution, view path traces, and inspect variable states at runtime.
FieldTypeDescription
statusSelectSuccess, Failed, or Stopped.
execution_pathCodeJSON trace of nodes and results.
context_snapshotCodeJSON dump of variables (vars).

Last updated Jul 6, 2026