Can the decision ref of a DMN implementation be an expression?

Hello,

I’m trying to model a scenario where I want to run a DMN decision table on a set of input. Each tenant may have a version of this decision (e.g. tenant A says 18 years old is eligible, but for tenant B minimum age is 21). Is it possible to dynamically choose a DMN implementation based on an expression, such as this psuedocode:

tenant.eligibilityDmn || default.eligibilityDmn

I hope my question makes sense, thanks in advance for any guidance.

Brian

Hi @madswede

Thanks for the question and welcome to the forum.
The answer to the question is yes and i decided to create a basic code example of how you can dynamically select a DMN table based on user input.

1 Like

Niall, thanks so much for taking the time to create an example, that was exactly what I’m looking for.