Open sgort opened 2 years ago
Camunda Modeler can be run on Windows, MacOS, and Linux. The corresponding packages can be found on the downloads page.
After installation the application shows this screen. Please check the task complete if installation is successful.
We make a very simple decision table to determine whether someone is legally old enough to be allowed to make a (sales) transaction as specified in #8
Type
to integer
and boolean
respectively. And don't forget to change the Input Variable
to Age
and the Output Name
to LegalAge
as well.Tenant ID
). For your convenience, you can copy the REST enpoint
here: https://vil-regels.nl:8443/engine-restWe will illustrate this with the POST /decision-definition/key/{key}/evaluate
API call via Postman. Detailed REST API refernce can be found here
The {key}
four our test can be found in the Camunda Cockpit details page of the deployed DMN. Here, this is Decision_17h4e0q
. That might be different with your deployed version of the DMN.
We're ready to configure Postman now:
POST
https://vil-regels.nl:8443/engine-rest/decision-definition/key/Decision_17h4e0q/evaluate
Basic Auth
and provide the credentialsAge
variable in JSON style
{ "variables" : { "Age" : { "value" : "14", "type" : "Integer" } } }
[ { "LegalAge": { "type": "Boolean", "value": false, "valueInfo": {} } } ]
ID
under Decision Instances
).
ID
was the last call. Selecting it shows the row hitted.
This finalizes the basics of Camunda DMN. Please check the final task complete where applicable.
For the rule engine we'll use Camunda Platform 7.16 on Apache Tomcat 9.0.60.
For development we need:
We illustrate the different steps in the comments in this issue.