Modelio icon indicating copy to clipboard operation
Modelio copied to clipboard

BPMN Diagrams with Claude AI (lanes, events, tasks, flows and layouts)

Open agilebotanist opened this issue 2 months ago • 0 comments

🚀 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

  1. Copy the generated macro into the Script view.

  2. Select a Package in the browser.

  3. Run the script.
    Done!

Image

📦 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.

agilebotanist avatar Nov 28 '25 13:11 agilebotanist