https://github.com/npdeehan/dynamic-dmn-example
This is a Camunda example which shows how a BPMN model can dynamically call a differnce DMN table depending on runtime data.
https://github.com/npdeehan/dynamic-dmn-example
Last synced: 5 months ago
JSON representation
This is a Camunda example which shows how a BPMN model can dynamically call a differnce DMN table depending on runtime data.
- Host: GitHub
- URL: https://github.com/npdeehan/dynamic-dmn-example
- Owner: NPDeehan
- License: apache-2.0
- Created: 2021-07-12T08:06:13.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-12T10:23:22.000Z (almost 5 years ago)
- Last Synced: 2025-01-23T01:34:34.521Z (over 1 year ago)
- Size: 165 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dynamically Call a DMN table from a BPMN Process
This is a Camunda example which shows how a BPMN model can dynamically call a different DMN table depending on runtime data.
## What does this do?
There is a BPMN process in which a user can give some data about themselves and the kind of movie they're interested in watching and using DMN a suggestion is made to them.

There are 2 DMN tables with the keys `netflixPickGermany`and `netflixPickAmerica`. The DMN table that is called Depends on if a user has selected `America` or `Germany`as their location.
This is done by creating a variable `country`from a use form and then using an expression when calling the DMN table. `netflixPick#{country}`. This will generate the correct name of the table in runtime.
## How to Run this?
1. Install [Java JDK 11](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html) (if you don't already have it)
1. Download and run [Camunda Platform](https://camunda.com/download/)
1. Download and run the [Camunda Modeler](https://camunda.com/download/modeler/)
1. Open the model in the BPMN folder in the Modeler
1. Deploy the BPMN making sure to include all DMN and forum files.

1. Go to `http://localhost:8080` and login using demo/demo
1. Start the `Netflix Movie Picker` process.