How to get DMN decisionkey through java

Am written code to evaluate DMN decision table through java. Here I want to get DMN decision key from current DMN file from “src/test/resource”.

I have used below decisionkey as hardcoded, but I need to get it from DMN file automatically.

DmnDecision decision = dmnEngine.parseDecision("Decision_hyur2c", inputStream);

Hi @Junaka,

please have a look at the docs here: Evaluating Decisions using the DMN Engine API |

You could either parse all decisions and retrieve the key from the parsed decisions. Or, use the DMN model API to read the key (i.e. the id of the decision).

Does this help you?

Best regards,

Thanks @Philipp_Ossler