It it possible to create a user defined function in a literal expression and call it from a decision table?

Hello,

I am trying to create user defined literal expression. I was able to call the built in functions without any problem in decision tables. I need to create some complexe calculation which is beyond a simple FEEL expression. I have 3 questions:

  1. Is it possible to create a complexe function in as a literal expression?

  2. Can I call the function from a decision table? another literal expression?

3 ) If yes. What is the camunda version that supports these functionalities?

Thank you and best regards,
Marc

Welcome @m_fawaz. :wave:

Yes, this is possible. Here is an example DMN:

decision-literal-function-dmn.dmn (4.6 KB)

I recommend the latest Camunda version: 8.2

Does this help you?

Best regards,
Philipp

4 Likes

Hi @Philipp_Ossler ,

Thank you for the sample dmn for creating a user defined function. Was wondering if there is a possibility to define the function at a single place and reuse it across multiple dmns?

No, currently this is not possible.