Skip to content

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

@agilebotanist

Description

@agilebotanist

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions