Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for string() function #34

Open
davidsamlee opened this issue Mar 3, 2023 · 1 comment
Open

No support for string() function #34

davidsamlee opened this issue Mar 3, 2023 · 1 comment

Comments

@davidsamlee
Copy link

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
Copy link
Member

@deostroll please check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants