mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
70.28k stars 6.26k forks source link

BPMN support #2623

Open ajhwheeler opened 2 years ago

ajhwheeler commented 2 years ago

Now that Mermaid is supported in solutions like Notion, it would be great to see support for the BPMN. This would allow us to use Mermaid to build a repository of business process and procedure definitions within a Notion database.

amra commented 2 years ago

BPMN is supported by other text-to-diagram tools: https://xosh.org/text-to-diagram/

sander commented 1 year ago

Related: #660

tobei commented 1 year ago

I'm coming from Obsidian world and have to write a lot of procedures and collaboration things. My two main candidates were activity diagrams from UML world and BPMN 2.0 (with a preference from the latter). Unfortunately none of those are implemented (yet) in Mermaid. One can look at Kroki for an idea of the syntax that can be used to model one such diagram on the source code part.

AmauryVanEspen commented 1 year ago

Simple Reader but a step https://publish.obsidian.md/hub/02+-+Community+Expansions/02.05+All+Community+Expansions/Plugins/bpmn-plugin

mogul commented 7 months ago

BPMN is supported by other text-to-diagram tools: https://xosh.org/text-to-diagram/

Many of these do not themselves provide a text DSL for actually specifying a BPMN diagram, but rather include a way to visualize a BPMN .xml file by calling out to a renderer. For example, Kroki and the Obsidian plugin that @AmauryVanEspen referenced use BPMN-js to generate an rendered image of the referenced XML file.

BPMN Sketch Miner, however, has a singular focus on BPMN and seems to have a thoroughly documented and battle-tested text DSL for BPMN. The language about how the tool runs is confusing, but it appears to all be front-end Javascript (not driven by AI as the language on the main docs page suggests). I wish this was open source!

lfilho commented 5 months ago

Came here to +1 BPMN Sketch Miner. Been using all day long today and its simplicity is awesome. It is all Javascript indeed (they mention that in their docs) and the whole diagram is encoded into the URL if you want to share/embed. Would be lovely to have something like in Mermaid. Worth noting that as of this writing they do not support the entire spectrum of BPMN 2.0 notations (they document what is and isn't supported on their website).