Common.DMN.Engine icon indicating copy to clipboard operation
Common.DMN.Engine copied to clipboard

Missing floor numeric function

Open Rsamawi opened this issue 1 year ago • 1 comments

Hello Everyone,

at first I want to thank you for the useful library you have implemented. It's working great and as expected but we have one problem regarding the supported FEEL functions.

For example, it's not possible to use floor function. So is it possible to include a wider range of the FEEL numeric functions? Or is there a way to extend the current implementation to support the missing ones?

Best Regards

Rsamawi avatar Jan 22 '24 17:01 Rsamawi

Hello @Rsamawi - the library supports/implement S-FEEL only (not the full FEEL language).

You might try to extend DmnExecutionContext class and its void ConfigureInterpreter(Interpreter interpreter) function. Use public Interpreter SetFunction(string name, Delegate value) to add custom function into interpreter.

adamecr avatar Mar 09 '24 14:03 adamecr