This plugin lets you view DMN diagrams interactively in your Obsidian notes with a
dmn code-block.
Furthermore, a DMN modeler lets you edit your DMNs directly in Obsidian.
The plugin is based on the dmn-js library.
If you want to evaluate/execute your DMNs inside your note, look at
the DMN Eval Plugin.
*.dmn file to your vault (e.g., my-diagram.dmn, modeled with
the Camunda Modeler)```dmn
url: [[my-diagram.dmn]]
```
You can customize the view with the following parameters:
| Parameter | Description | Values |
|---|---|---|
| url | The url of the *.dmn file (required). | Relative/Absolute path, or [[*.dmn]] as markdown link. |
| decisionid | An ID of a decision table to open (if empty open the DRD). | String value |
| height | The height of the rendered canvas. | [200..1000] |
| opendiagram | Show a link to the *.dmn file. | True/False |
| showzoom | Show the zoom buttons below the canvas. | True/False |
| enablepanzoom | Enable pan and zoom. | True/False |
| zoom | Set the zoom level. Default is 'fit-viewport'. | 0.0 - 10.0 |
| x | Set the x coordinate, if a zoom value is set. | 0 - ... (default: 0) |
| y | Set the y coordinate, if a zoom value is set. | 0 - ... (default: 0) |
| forcewhitebackground | Force a white background. | True/False |
While typing inside a dmn code block, Obsidian autocompletes the parameter names (with a short value hint and the full description on hover).
You don't have to type the code block manually:
dmn code block to edit it)*.dmn files of the vault are listed), set the decision table to open (optional) and adjust the other parametersThe command "Create DMN" creates a new *.dmn file (in the folder of the active file) and opens it in the DMN modeler.
The New DMN ribbon icon does the same.
You can also embed a DMN directly with a markdown embed:
![[my-diagram.dmn]]
The embedding uses the default values from the plugin settings.

Just open the DMN file in your obsidian vault and the DMN will be editable in fullscreen mode. The modeler shows the full DMN (the DRD view with all decisions) and lets you open and edit every decision table, literal expression, and boxed expression.
*.zip file..obsidian/plugins folder of your obsidian vault.obsidian/plugins/)npm inpm run dev