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

The invocation of a non-existing function should return null #670

Closed
saig0 opened this issue Jul 4, 2023 · 0 comments · Fixed by #692
Closed

The invocation of a non-existing function should return null #670

saig0 opened this issue Jul 4, 2023 · 0 comments · Fixed by #692
Assignees

Comments

@saig0
Copy link
Member

saig0 commented Jul 4, 2023

Describe the bug
If I invoke a non-existing function, the engine returns a failure. But it should be more friendly and return null instead.

To Reproduce
Steps to reproduce the behavior:

  1. Evaluate the following expression
non_existing_function(10)
  1. Verify that the engine returns a failure:
failed to evaluate expression 'non_existing_function(10)': no function found with name 'non_existing_function' and 1 parameters

Expected behavior
According to the DMN spec, the invocation of a non-existing function should return null.

Screenshot from 2023-07-04 13-31-05

(DMN 1.4, chapter 10.3.2.13.2, page 120)

Environment

  • FEEL engine version: 1.17
  • Affects:
    • Camunda Automation Platform 7: [7.x]
    • Zeebe broker: [0.x]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant