Skip to content

Business Rules Marketplace

Business rules today live in SQL, Power BI, spreadsheets, and tribal knowledge. EntiHub turns them into governed entities with an API.

Why this is needed

  • Nobody can list which credit-limit or discount rules are in force.
  • Changing a threshold in one place but not another creates silent inconsistency.
  • AI agents need a lookup for numeric policy.

Proposed entities in EntiHub

Governance settings

Setting Recommended value Why
approvalRequired true Rule changes (e.g. CFO thresholds) need approval.
historyEnabled true History answers what rule applied on a given date.
allowSameAuthorApproval false Maker/checker separation for sensitive changes.
deletedRetentionDays 90 (or higher) Soft-delete retention for auditability.

Entity definition (YAML sketch)

name: business_rule
displayName: Business rule
domain: Decisioning
description: Business rule
version: "1.0.0"
approvalRequired: true
historyEnabled: true
deletedRetentionDays: 90
displayRefColumn: code
uniqueConstraints:
  - name: uq_business_rule_code
    columns: [code]
columns:
  - name: code
    dataType: string
    nullable: false
    maxLength: 64
  - name: name
    dataType: string
    nullable: false
    maxLength: 128
  - name: domain
    dataType: string
    nullable: false
    maxLength: 64
  - name: condition_expr
    dataType: string
    nullable: false
    maxLength: 1000
  - name: threshold_value
    dataType: decimal
    nullable: true
  - name: threshold_unit
    dataType: string
    nullable: true
    maxLength: 16
  - name: owner_role
    dataType: string
    nullable: false
    maxLength: 64
  - name: status
    dataType: string
    nullable: false
    maxLength: 16
  - name: effective_from
    dataType: date
    nullable: false
  - name: effective_to
    dataType: date
    nullable: true

YAML sketches

Sketches highlight the important fields and governance flags. Trim or extend columns to match your domain. See Setup Entity for the full YAML reference.

Sample data

code name domain condition_expr threshold_value threshold_unit owner_role status effective_from
CUST_CREDIT_SK Customer credit limit SK Credit customer.country == 'SK' 10000 EUR CFO active 2026-01-01
DISCOUNT_MAX_STD Standard max discount Sales channel == 'direct' 20 percent Sales Manager active 2026-01-01

Benefits for the company

  • One API for Power BI, Fabric, ERP, and agents.
  • Effective dating prevents version debates.
  • Webhooks can push rule changes downstream.
  • Approvals create accountability for policy edits.