Skip to main content

Enterprise Example Rules Catalog

Helix includes a catalog of production JSON business rules covering fraud detection, banking, compliance, and retail pricing.


Catalog Index​

Rule FileRule NameBusiness DomainInput SchemaExpression
fraud-detection.jsonFraudDetectionRuleFinancial Securityamount: int, country: Stringamount > 10000 && country != "US"
credit-approval.jsonCreditApprovalRuleBanking & CreditcreditScore: int, debtToIncomeRatio: doublecreditScore >= 700 && debtToIncomeRatio < 0.35
age-verification.jsonAgeVerificationRuleIdentity & Complianceage: int, verifiedIdentity: booleanage >= 21 && verifiedIdentity == true
discount-calculator.jsonDiscountCalculatorRuleE-Commerce RetailcartTotal: double, loyaltyMember: boolean`cartTotal >= 150.0
data-validation.jsonDataValidationRuleUser OnboardingemailLength: int, status: String`emailLength > 5 && (status == "ACTIVE"
security-acl.jsonSecurityAclRuleAccess Controlrole: String, department: String`role == "ADMIN"
dynamic-pricing.jsonDynamicPricingRuleSurge & RevenuedemandMultiplier: double, surgeActive: booleandemandMultiplier > 1.5 && surgeActive == true
inventory-reorder.jsonInventoryReorderRuleSupply ChainstockCount: int, minimumThreshold: int, autoReorder: booleanstockCount < minimumThreshold && autoReorder == true
sla-monitor.jsonSlaMonitorRuleAPM ObservabilityresponseTimeMs: long, httpStatus: int`responseTimeMs > 500
tax-calculator.jsonTaxCalculatorRuleAccountingtaxableIncome: double, stateTaxExempt: booleantaxableIncome > 50000.0 && stateTaxExempt == false

Example Rule Files​

Credit Approval Rule​

examples/rules/credit-approval.json
{
"name": "CreditApprovalRule",
"version": "1.0.0",
"expression": "creditScore >= 700 && debtToIncomeRatio < 0.35",
"inputSchema": {
"creditScore": "int",
"debtToIncomeRatio": "double"
}
}

Security Access Control Rule​

examples/rules/security-acl.json
{
"name": "SecurityAclRule",
"version": "1.0.0",
"expression": "role == \"ADMIN\" || (role == \"MANAGER\" && department == \"FINANCE\")",
"inputSchema": {
"role": "String",
"department": "String"
}
}