Class: ApprovalEngine::TriggerRule

Inherits:
ApplicationRecord show all
Defined in:
app/models/approval_engine/trigger_rule.rb

Overview

A tenant-scoped routing rule. Its ‘condition` is a JSON Logic AST stored in JSONB; the RuleEvaluator applies it to a host payload and, on the highest-priority match, spawns the linked template’s approval.