Hi
I am new to Camunda and DMN and i’m going to create the new javascript app where i want to execute DMN decisions with DMN engine
Please advise how i can do it
Hello my friend!
Welcome to the Camunda community!
If you have already deployed your DMN, you can use something like Axios to make an HTTP call passing the data for your DMN to evaluate:
http://your-host-domain/engine-rest/decision-definition/key/{your-dmn-key}/evaluate
passing a body similar to this with its variables for evaluation:
{
"variables": {
"completeName": {
"type": "string",
"value": "William Robert Alves"
},
"age": {
"type": "integer",
"value": 33
},
"id": {
"type": "integer",
"value": 774
}
}
}
I hope this helps!
William Robert Alves