Business rules

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:

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
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.

You can create the following business rule types. Design the business rule based on the rule type.

  • Flow rule: Current business rule

  • Decision tree

  • Decision table

A business rule includes the following elements:

  • Inputs
  • Rule conditions
  • Output

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 , refer to Business rules in Kofax TotalAgility Best Practices Guide.

See also: