Single Result Hit Policy

A decision table with this hit policy returns the matching rules aggregated by some function. The functions include sum, minimum, maximum, count (the number of distinct outputs), and average. The decision table cannot have more than one output field.

Sample

The following decision table calculates the percentage discount a customer gets based on their age and whether they are a student. Anyone younger than 18 gets a 2% discount, and students get a 5% discount. If the customer satisfies multiple criteria, they can sum the discounts.

screenshot of decision table that has single result hit policy with sum

Example

An applicant is a 17-year-old student. Because the applicant matches rules 1 and 2, the decision table editor outlines those rules and returns the sum (7%):

screenshot of decision table result with single result hit policy.