DMN for business rules & regulatory compliance. OPA/Rego for authorization & access control. Policy-as-code governance powering every Styx workflow with auditable decision logic.
How DMN and OPA power the Styx Workflow Suite
businessRuleTaskDMN: packages/bpmn/poetry/decisions/ | OPA: packages/authority-management/policies/
Policy-as-code governance with auditable decision logic
| Input | Rule |
|---|---|
| Privacy Framework | GDPR/CCPA required |
| Tracking Enabled | +30 pts if true |
| Client Tier | Min budget by tier |
Hit Policy: COLLECT (SUM)
| Tier | Range | Max Change |
|---|---|---|
| Enterprise | $50K-$10M | 50% |
| Growth | $10K-$500K | 30% |
| Starter | $1K-$50K | 20% |
Hit Policy: FIRST
| Metric | Threshold |
|---|---|
| Confidence Score | >=0.70 |
| Variance | <=25% |
| Coverage | >=80% |
Hit Policy: FIRST
| Check | Rule |
|---|---|
| Data Sources | 1st/2nd party only |
| PII Handling | Hashed required |
| Consent | Explicit opt-in |
Hit Policy: COLLECT
| Level | Pattern |
|---|---|
| Campaign | [Client]_[Obj]_[Date] |
| Ad Set | [Audience]_[Geo] |
| Ad | [Format]_[CTA]_v# |
Hit Policy: FIRST
| Budget | Approver |
|---|---|
| < $25K | Manager |
| $25K-$100K | Director |
| > $100K | VP/C-Level |
Hit Policy: FIRST
Location: packages/bpmn/poetry/decisions/ - 34 DMN files total
Industry-specific decision tables for regulatory compliance validation
pharma-fda-opdp-compliance.dmn
finra-2210.dmn
cms-marketing-guidelines.dmn
43 total DMN decision tables covering industry-specific compliance rules
Defense, Alcohol/Cannabis, and AI Governance decision tables
dod-contract-compliance.dmn
state-abc-rules.dmn
ai-act-transparency.dmn
All DMN tables evaluated at process runtime via Camunda 7 decision service
Two complementary decision engines for different purposes
Purpose: Business rules & regulatory compliance
Audience: Business analysts, compliance officers
Editing: Visual table editor (Camunda Modeler)
Integration: Native BPMN (businessRuleTask)
Purpose: Authorization & access control
Audience: Developers, security engineers
Editing: Code editor (Rego language)
Integration: REST API or WASM (in-process)
DMN: packages/bpmn/poetry/decisions/ | OPA: packages/authority-management/policies/
Delegation of Authority (DoA) with OPA WASM for sub-millisecond authorization
Auto-route to correct approver based on spend amount
Temporary authority transfer with expiration
Complete decision log for compliance
Customer-specific policies via Rego
Location: packages/authority-management/
Why Nova Suite uses two decision engines
Visual decision tables that business users can own and edit. Perfect for regulatory compliance, campaign eligibility, and approval routing in Styx workflows.
Programmatic policies for fine-grained access control. WASM compilation enables sub-millisecond evaluation with zero network hops.
Both engines provide complete audit trails. Every decision is logged with inputs, outputs, and the policy version that evaluated it.
Delegation of Authority, vacation coverage, threshold-based routing, and tenant isolation - all built on these two engines.