DecisionToolkit / dsntk-rs

Decision Toolkit written in Rust
Apache License 2.0
15 stars 0 forks source link

Is there a way to use custom FEEL functions? #25

Closed antback closed 3 months ago

antback commented 4 months ago

Hi!!

Very interesting project! Thanks for sharing.

I would like to know if I can define my own FEEL functions. For example, I would like to compare strings using fuzzy.

Thanks!

dsntk commented 4 months ago

DMN specification defines how to use externally-defined functions:

image

"Officially", this is the only way to add custom functions to the model, but I have already seen, that other vendors support multiple functions not defined by the DMN standard, and there is an open discussion in the standarization group, how to make it easier. Current state is, that external functions must be written in Java (the whole specification is unfortunately not Rust-friendly).

Anyway, I was thinking multiple times (knowing the user needs) about introducing some kind of extensionability to DSNTK (although it's against DMN specification).

But getting to the point:

I hope I could shed some light on this topic. Let me know which way we can help further.

Thanks for trying DSNTK!

dsntk commented 3 months ago

Hi @antback,

I am closing this issue but feel free to reopen or comment on it when needed.

Regards.