Hello,
I’v a case where I have different decision tables related to each other.
I want to be able to call the decision table C and get all output from A,B and C because I’ll need to save those results for later use.
I saw different post about this with different solution :
- Get complete tree of decisions of DMN instance from REST API - #3 by rogier.roukens
- Results from multiple DMN tables
The issues with theses differents solution :
- Add a new decision table that aggregate all decision table, it’s error prone when adding new decision table to both link to the root decision table and add it as an output.
- Add a new JavaDelegate means I’ll have to deals with BPMN which I don’t want to use in my project
- Add a new literal expression rules looks the same to me as the first solution with lot of possible error since I can’t get all inputs dynamicly.
I tried to catch all event with a customPostDecisionTableEvaluationListeners
in Java but I cannot link the request from my decisionService
to the event I catch.
And output I would like to have is an map of all decision table and theirs respective output :
{
"A" : {
"output1": "value1",
"output2" : "value2"
},
"B" : {
"output3": "value3",
"output4" : "value4"
},
"C" : {
"output5" : "value5"
}
}
Only by calling C. Is it possible ? Do you have any solution how I can evaluate a decision table and get all mandatory decision table.
Thanks a lot