Business rules can be used to build complex business logic without programming, and automate and optimize business decisions.
For example, a store offers the following discounts:
- 5% for purchases between £100 and £1000
- 10% for all purchases above £1000
You can use the following logic to calculate the amount to pay after discount:
A business rule is a diagrammatic representation of a rule and enables you to use all of the backend integration capabilities of TotalAgility to retrieve data from external sources to use within the rule. A business rule also enables you to use the decision and multi-branching rules logic of a process map to create the rule and determine the output values.
IF Amount >=100 and <=1000 THEN Discount =5% IF Amount > 1000 THEN Discount = 10% Else Discount = 0% Amount to Pay = Amount - (Amount/ 100) X Discount Return Amount to Pay
You can create the following business rule types. Design the business rule based on the rule type.
Flow rule: Current business rule
- Decision table
A business rule includes the following elements:
- Rule conditions
You can create, copy, modify, delete, unlock and tag business rules. See Tag an item.
You can also view, unlock and delete a business rule version, and revert to a previous version of a business rule.
For more information on business rules maintainability and testing ,
Business rules in
Best Practices Guide.