Hi,
I am trying to implement a BPMN executing a DMN which is specified by the parameters of the BPMN. The DMN should be executed several times depending on the values defined for this DMN in the BPMN parameters.
"variables": {
"dmnId":"XX001",
"version": "2251799813942700-1",
"valuesPerCountry" : [
{
"Country": "DE",
"Amount":"200",
"MYDATE":"2024-01-01"
} ,
{
"Country": "IT",
"Amount":"300",
"MYDATE":"2024-01-01"
},
{
"Country": "FR",
"Amount":"400",
"MYDATE":"2024-01-01"
}
]
}
The problem is that the DMN is looping over the collection “valuesPerCountry” and using the element of the list as the DMN parameters. Unfortunately the DMN is not able to analyse these Json parameters.
In our Camunda7 environment we realized this with a JavaDelegate which is not longer possible in Camunda8.
The parameters for the DMN are not static, mean for another DMN the parameters are different e.g.
{
“Name”: “Do”,
“Firstname”:“John”,
“birthdate”:“2024-01-01”,
“JobTitle”:"Manager
},
Can anyone help?
Regards
Edmund