feel icon indicating copy to clipboard operation
feel copied to clipboard

No support for string() function

Open davidsamlee opened this issue 1 year ago • 1 comments

The DMN specification includes a string() function to allow conversion from other data types (e.g. numbers)

When I try to evaluate string(1.1) as a FEEL expression I get

TypeError: Cannot read properties of undefined (reading 'fn') at processUserDefinedFunction (/home/david/x-rules/node_modules/js-feel/dist/feel-ast-parser.js:358:27) at processFnMeta (/home/david/x-rules/node_modules/js-feel/dist/feel-ast-parser.js:397:16)

Implying the function is not available as a built-in so it looks for it as a user-defined function. Please can someone implement this?

davidsamlee avatar Mar 03 '23 11:03 davidsamlee