camunda / feel-scala

FEEL parser and interpreter written in Scala
https://camunda.github.io/feel-scala/
Apache License 2.0
124 stars 51 forks source link

Handle built-in functions with different signatures #576

Open saig0 opened 1 year ago

saig0 commented 1 year ago

Description

A built-in function can have different argument lists. The argument lists can differ

For example: https://camunda.github.io/feel-scala/docs/next/reference/builtin-functions/feel-built-in-functions-conversion#date-and-time

Currently, the FEEL engine doesn't support the function invocation with positional arguments if the function has more than one argument list with the same number of arguments but different types. As a result, it invokes only one of the argument lists independent of the argument types.

Required for https://github.com/camunda/feel-scala/issues/554.