adamecr / Common.DMN.Engine

DMN Engine is a decision engine (rule engine) allowing to execute and evaluate the decisions defined in a DMN model. Its primary target is to evaluate the decision tables that transform the inputs into the output(s) using the decision rules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing floor numeric function

Rsamawi opened this issue · 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

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.