Skip to content

Business rules you can read aloud.

Conditions, calculations and validation live as explicit rules on the model, not as formulas hidden in cells or logic scattered through code. Each one says what it reads, what it decides, and why a record was refused.

Today:Available × 3Partly available × 1See each capability

Now I can see where every value comes from.

Three kinds of rule, one place to find them.

Validation

Refuse a bad record, in a sentence.

A rule that must hold before a record is saved. When it fails, the person sees which rule and why, not an error code.

An order needs a customer before it can be submitted.
Calculation

Compute a value from others.

A calculated field reads other fields, on the same record or across a relationship, and is computed again whenever the record is saved.

orderTotal = netAmount + taxAmount + freight
Condition

Decide what happens next.

A condition chooses a route, starts an approval or holds a step. It can combine many tests and read related records.

when orderTotal > 10,000 → manager approval

Conditions that nest, and read across records.

Real policies are rarely one comparison. Tavuni’s conditions combine tests with all, any and none, nest up to six levels deep, and can read a related record two hops away: the order’s customer, or the customer’s account manager.

Related records are read through the same access rules as everything else, so a condition never sees a field the person who triggered it could not.

All of
  • Order total is more than 10,000
  • Any of
    • Customer › segment is New
    • Discount is more than 15%
  • None of
    • Status is Cancelled
Then: request manager approval
An illustration of a condition in the form the platform stores it.

Exact arithmetic, because money is decimal.

Most software stores numbers in binary floating point, which cannot represent most decimal fractions exactly. Tavuni's calculated fields use exact decimal arithmetic, so a total does not drift by a fraction of a cent depending on the order it was added up in.

CalculationBinary floating pointExact decimal
0.1 + 0.20.300000000000000040.3
1.005 × 100100.49999999999999100.5
(2.675).toFixed(2)2.67 (the stored value is just under 2.675)2.68

The floating-point column is what JavaScript produces for the same expressions. Read more in Rounding is a business rule.

Evaluated in dependency order, every time.

A value is computed only after everything it reads. This is the order Tavuni evaluates the example’s order total in, and what each rule reads. A rule that would read itself, directly or through others, is refused when it is saved.

  1. 1
    SubtotalSUM(OrderLine.lineTotal WHERE OrderLine.orderId = Order.orderId)reads OrderLine.orderId, Order.orderId, OrderLine.lineTotal
  2. 2
    Discount PCTMAX(0, LOOKUP(PricingRuleMinSubtotal WHERE PricingRuleMinSubtotal.minSubtotal = Order.subtotal).discountPct + IFERROR(LOOKUP(Customer WHERE Customer.customerId = Order.customerId).segmentUplift, 0))reads PricingRuleMinSubtotal.discountPct, PricingRuleMinSubtotal.minSubtotal, Order.subtotal, Customer.segmentUplift, +2
  3. 3
    Discount AmtROUND(Order.subtotal * Order.discountPct, 2)reads Order.subtotal, Order.discountPct
  4. 4
    Net AmountOrder.subtotal - Order.discountAmtreads Order.subtotal, Order.discountAmt
  5. 5
    Tax RateIFERROR(LOOKUP(TaxRate WHERE TaxRate.country = Order.shipCountry).taxRate, Setting.DefaultTaxRate)reads TaxRate.taxRate, TaxRate.country, Order.shipCountry
  6. 6
    Tax AmountROUND(Order.netAmount * Order.taxRate, 2)reads Order.netAmount, Order.taxRate
  7. 7
    FreightIF(Order.status = "Cancelled", 0, MAX(Setting.FreightMinimum, ROUND(Order.netAmount * Setting.FreightRate, 2)))reads Order.status, Order.netAmount
  8. 8
    Order TotalIF(Order.status = "Cancelled", 0, ROUND(Order.netAmount + Order.taxAmount + Order.freight, 2))reads Order.status, Order.netAmount, Order.taxAmount, Order.freight
Real output: the compiled rules of the example workbook.

What is real today, capability by capability.

Graded against the product's own code and test record, not its roadmap. A partial status names the part that is missing.

CapabilityStatusWhat that means today
Rule definitionAvailable

Validation rules refuse a bad record with a plain sentence rather than an error code.

Conditional logicAvailable

Conditions combine all, any and none, nest six levels deep and can read related records.

CalculationsPartly available

Calculated fields use exact decimal arithmetic and 19 built-in functions. The workbook checker understands 178 Excel functions; the running application does not use all of them yet.

Dependency orderAvailable

Calculations run in dependency order, and a circular formula is refused when it is saved.

Every capability, on one page

Turn one workbook's formulas into rules you can read.

We will compile a workbook of yours into explicit rules, show you what each one reads, and check every value it produces against the workbook.