-
Notifications
You must be signed in to change notification settings - Fork 152
Description
🚀 Programmatically Generating BPMN Diagrams in Modelio (With Jython + Template)
After extensive experimentation, I’ve developed a reliable method to generate BPMN process diagrams programmatically in Modelio using Jython macros.
This post summarizes the key findings and provides a ready-to-use template.
📎 Resources
🤖 Using the Template With Claude AI
Once you place the template in your Modelio macro folder, you can simply ask Claude:
“Create a BPMN diagram for an expense approval process with Employee, Manager, and Finance lanes.”
Claude will generate a complete macro, including:
-
Lane definitions
-
Tasks, events, and gateways
-
Sequence flows (with labels)
-
Automatic layout positioning
▶️ Running the Script in Modelio
-
Copy the generated macro into the Script view.
-
Select a Package in the browser.
-
Run the script.
Done!
📦 What the Template Supports
The template solves the usual Modelio macro quirks and provides:
-
✔️ Modelio 5.x compatibility
-
✔️ Unlimited lanes
-
✔️ User Tasks, Service Tasks, Events, Gateways
-
✔️ Automatic flow generation
-
✔️ Configurable spacing & lane alignment
-
✔️ Clean, reusable structure for AI-generated macros
🎉 Happy Modeling!
With this template + Claude, creating BPMN diagrams becomes ridiculously easy and scalable.
Perfect for complex workflows, fast prototyping, or teaching BPMN.