The image shows an implementation of a Function decision in Process Cloud Service. There is a decision called Seasonal Discount created using the Expression notation. The value entered in the expression field is Discount(count,price)*2. Below the expression, there is a decision called Discount created using the Function notation. The function is divided into two fields, Parameters and Body. The Parameters field contains
two entries and an Add Parameter icon. The first parameter contains c in the Name field, number selected from Type drop-down list, and a Remove Parameter icon. The second parameter contains p in the Name field, number selected from Type drop-down list, and a Remove Parameter 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:
-
First rule: dash, >100, and 10
-
Second rule: >=50, dash, and 10
-
Third rule: <50, <=100, and 5