Description of the illustration dmn-functions.png

Below the Parameters fields is the Body label and the Change Body icon.

The Body field contains a decision table. The first row of the decision table contains the Decision Table label to the left and controls to add or delete rows or columns to the right. From left to right, controls available are: Add Rule Before, Add Rule After, Remove Rule, Add Column Before, Add Column After, and Remove Column. The second row contains the Hit Policy Indicator cell that has the Any hit policy selected, a first Input Expression cell that has the parameter c used as the input expression, a second Input Expression cell that has the parameter p used as the input expression, and an Output Label cell that contains the name of the decision, Discount. There is an Allowed Values cell within each Input Expression cell and the Output Label cell. The value for this cell is set as Auto for Input Expression cells and as Any for the Output Label cell. There are three subsequent rows that constitute rules of the decision table. Each row consists of a cell indicating the rule number (starting from 1 to 3), an Input Entry cell in the first Input Expression column, another Input Entry cell in the second Input Expression column, and an Output Entry cell in the Output Label column. Values entered in input and output entry cells for each rule are as follows: