Closed PaulChernoch-Shell closed 3 years ago
or
is part of a disjunction
. (Refer rule 49, section 10.3.1.2, pg 109 of DMN v1.1). You've invoked it as a function call, which is why you got the error.
Sorry - I was going off an older version of the DMN spec. They changed the function name from "or" to "any" by 1.2, and probably by the final version of 1.1.
Name of function was changed from or to any.
This is the rule:
This is the context passed in:
This is the exception thrown:
Interestingly, if I create this context with the function named OR (all uppercase) using the same function definition as in the index.js source code for list functions, it works: