Hi,
What is Result Varaible Name when my DMN has many outputColumns ?
Which is name of Global Map ?
Regards
Hi,
What is Result Varaible Name when my DMN has many outputColumns ?
Which is name of Global Map ?
Regards
Hi @pcouas,
the “Result Variable Name” is the single variable containing the result from the decision.
Depending on the DMN it could contain a list or maps, if the output has multiple columns with multiple results.
Have a look into the docs for further details: https://docs.camunda.org/manual/7.12/user-guide/process-engine/decisions/bpmn-cmmn/#predefined-mapping-of-the-decision-result
Hope this helps, Ingo
diagram_2.dmn (1.9 KB) testDmn2.bpmn (4.3 KB)
in sysout process i try
for (Map<String, Object> map : DMNResult2) {
for (Map.Entry<String, Object> entry : map.entrySet()) {
String key = entry.getKey();
Object value = entry.getValue();
java.lang.System.out.println("Key : " + entry.getKey() + " Value : " + entry.getValue());
}
}
Thanks problem resolved
//ne doit pas avoir le nom du dmnName2
var json = execution.getVariable(“dmnNameResult2”);
java.lang.System.out.println(‘System out println json:’+json);
for (var k in json) {
java.lang.System.out.println(‘System out println key:’+k);
java.lang.System.out.println(‘value:’+json[k]);
if(k in json) {
java.lang.System.out.println(‘System out println r:’+json[k]);
}
}