EdgeVerve / feel

Expression Language for creating and executing business rules in decision table based on DMN 1.1 specification for conformance level 3
MIT License
93 stars 48 forks source link

No support for string() function #34

Open davidsamlee opened 1 year ago

davidsamlee commented 1 year ago

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?

kvsrohit commented 11 months ago

@deostroll please check.