Source: Goldman Sachs ( Octavian Patrascoiu)
The typeRef attribute in the variable attribute of Business Knowledge Models in file 'Chapter 11 Example.dmn' from the examples archive is incorrect. The values references the output type (e.g. an item definition) and not a function item (introduced in DMN 1.3).
According to DMN 1.3 (Table 14, page 57), the semantic of variable attribute is:
This attribute defines a variable that is bound to the
function defined by the FunctionDefinition, allowing
decision logic to invoke the function by name.
Hence, the typeRef attribute has to reference a FunctionItem, Any or no type at all.
There are 3 ways to address this:
1. Remove typeRef from variables in BKMs
2. Change value to Any
3. Create FunctionItems for every BKM in the dmn file and reference them
Reported: DMN 1.3 — Mon, 14 Dec 2020 18:07 GMT
Disposition: Resolved — DMN 1.5
Remove typeRef from variable of BKMs
Remove typeRef from BKM variables but keep it on their encapsulatedLogic in 9 places
Updated: Fri, 30 Jun 2023 20:31 GMT