Decision Tables as Functions - Gnorion/BizVR GitHub Wiki

Decision Tables As Functions

Functions may be defined in decision table form as follows:

image

The following restrictions apply

  • There MUST be a single return value (which can be a collection)
  • The data type of the function is the data type of this return value.
  • Input arguments should be formally declared.
  • Other conditions tested that are not passed in should be documented

The arguments may be used as conditions on their own or may be combined into more complex expressions:

Example 1

image

Such a function may then be used in the condition (or action of another rule)

image

Example 2

image

image