filebrowser/demo diagrams/bpmn-integration.md
sabatale 887eeff98e Add bpmn-js integration.
-- Original fork (in case you do not want to add an extra dependency for that specific use case): https://github.com/sabatale/filebrowser --

Adds bpmn-js (new dependency) integration for diagrams: https://github.com/bpmn-io/bpmn-js.

Any .bpmn file will open with the bpmn-js viewer instead of showing up as an XML file.

No side-effects to be exepected since this introduces a new getter (IsDiagrams) for .bpmn extensions.

You can drag the diagram around and zoom in/out as well. Use the folder "demo diagrams" for an actual .bpmn example as well as some extra documentation.
2019-11-04 17:10:03 -05:00

31 lines
907 B
Markdown

<p align="center">
<h2>BPMN-JS Integration</h2>
<h3>View diagrams in filebrowser!</h3>
</p>
> ⚠ WARNING: **In case the .bpmn still opens in the Files Editor, try adding the mime regedit entry locally. See [the official GOlang documentation](https://golang.org/pkg/mime/) for more info about "TypeByExtension"!**
![Preview](https://user-images.githubusercontent.com/50220345/68059408-c9c56780-fcd2-11e9-88aa-0fcf4d03c438.gif)
Nowadays, business diagrams follow the universal BPMN standard.
The open-source solution bpmn-js from BPMN.io makes it very easy to view and build such diagrams.
This new filebrowser feature enables the integration with bpmn-js for viewing only.
## Features
Open any .bpmn file to view the diagram.
You can click and hold the mouse in order to move the diagram around.
You can also zoom with CTRL + Scroll!
## To do
Add bpmn-js extensions.
## Author
Alexandre S.