Rule Types
Rule Types
lac31
The following table lists the rule/logic types:
Rule Type | Description | Example |
Derive an attribute value using other attributes in that table, or parent table (changes are propagated). For conditional assignment, use JavaScript if/else, or the ternary operator ((boolean) ). | Derive Lineitem.amount as:
Derive product_billofmaterials.value as:
Derive order.DueDate as:
| |
Derive attribute value from parent attribute value (unlike formula references, parent changes are not propagated) | Derive Lineitem.Price as:
| |
Derive attribute value by summing designated child attribute, with optional Child Qualification Condition. Qualification is in in SQL Where syntax. | Derive Customer.balance as:
| |
Derive attribute value by counting designated child rows using a defined relationship, with optional Child Qualification Condition. Qualification is in in SQL Where syntax. | Derive Customer.big_order_count as:
| |
Derive value as the min/max of designated child rows, with optional Child Qualification Condition. | Derive Customer.maxOrder as:
| |
Multi-attribute expression of class/parent attributes that must be met for a transaction to succeed - return true (else exception message is thrown); can execute as transaction rows are processed, or at commit time after all rows are processed. | Validate Customer.CheckCredit as:
| |
Multi-attribute expression of class/parent attributes that must be met for a transaction to succeed (else exception message is thrown); executes at commit time so your validation code sees the results of all rule executions for all rows (for example, sums and counts). | Validate Purchaseorder.NotEmpty on commit as:
| |
Automatically insert a parent object if it does not already exist. | Create parent for GroupBy, for example, to track total sales for employee each month. |