I am looking for a possibility to execute a buch of rules against an event that comes in, which has the rules defined in its payload. I took the rules (json) and created DmnDefinition with DmnJsonConverter.
The piece of code I tried to leverage on : Programmatically create decisions tables and run cases against it - #22 by yvo
It works it tests, I got an output variable with result, but if I place this code in Service Task in BPMN process, then I got an exception that says : “No decision found for key: decisionnew2 and tenantId: abcd.”.
I just need this decision table to be executed once against the event. Every new event comes with new set of rules, based on which I have to create new decision table.
Where I made a mistake ? Do you think my approach is correct, or this scenario could be approached better ?