Portal Community

What is Recorded

When storeAuditRecord: true (the default), the executor writes a rule evaluation audit record containing:

FieldDescription
auditIdUnique audit record ID
executionIdThe workflow execution that triggered this evaluation
nodeIdThe specific RuleEvalNode within the workflow
tenantIdTenant scope
actorIdThe actor who triggered the execution
ruleSetIdRule set evaluated
ruleSetVersionExact version of the rule set used
factsThe complete fact object passed to the rule engine (input snapshot)
outcomeThe outcome returned
firedRulesRules that fired
explanationHuman-readable explanation
evaluatedAtTimestamp of the evaluation

Querying Audit Records

GET /api/rule-audit?executionId=exec-abc123
GET /api/rule-audit?ruleSetId=invoice-approval-policy-v2&from=2026-05-01&to=2026-05-31
GET /api/rule-audit?outcome=rejected&tenantId=tenant-acme
Compliance requirement: For financial and regulatory workflows, rule audit records must be retained for the legally required period (commonly 7 years for financial records). Ensure the audit log retention policy is configured accordingly. Disabling storeAuditRecord for compliance-sensitive workflows is a compliance defect.