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.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.
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.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 + freightA 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 approvalReal 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.
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.
| Calculation | Binary floating point | Exact decimal |
|---|---|---|
0.1 + 0.2 | 0.30000000000000004 | 0.3 |
1.005 × 100 | 100.49999999999999 | 100.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.
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.
SUM(OrderLine.lineTotal WHERE OrderLine.orderId = Order.orderId)reads OrderLine.orderId, Order.orderId, OrderLine.lineTotalMAX(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, +2ROUND(Order.subtotal * Order.discountPct, 2)reads Order.subtotal, Order.discountPctOrder.subtotal - Order.discountAmtreads Order.subtotal, Order.discountAmtIFERROR(LOOKUP(TaxRate WHERE TaxRate.country = Order.shipCountry).taxRate, Setting.DefaultTaxRate)reads TaxRate.taxRate, TaxRate.country, Order.shipCountryROUND(Order.netAmount * Order.taxRate, 2)reads Order.netAmount, Order.taxRateIF(Order.status = "Cancelled", 0, MAX(Setting.FreightMinimum, ROUND(Order.netAmount * Setting.FreightRate, 2)))reads Order.status, Order.netAmountIF(Order.status = "Cancelled", 0, ROUND(Order.netAmount + Order.taxAmount + Order.freight, 2))reads Order.status, Order.netAmount, Order.taxAmount, Order.freightGraded against the product's own code and test record, not its roadmap. A partial status names the part that is missing.
Validation rules refuse a bad record with a plain sentence rather than an error code.
Conditions combine all, any and none, nest six levels deep and can read related records.
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.
Calculations run in dependency order, and a circular formula is refused when it is saved.
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.