Skip to content

Swimlanes for Flowchart Diagrams #6608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Guido-Vi opened this issue May 21, 2025 · 0 comments
Open

Swimlanes for Flowchart Diagrams #6608

Guido-Vi opened this issue May 21, 2025 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: New Diagram

Comments

@Guido-Vi
Copy link

Proposal

Mermeid.js should add Swimlanes Flowcharts.
Swimlane diagrams are a widely used visual tool in business process modeling and systems design. They extend regular flowcharts by organizing steps into horizontal or vertical lanes, where each lane represents a different actor, department, or system involved in a process.

Currently, Mermaid lacks built-in syntax for swimlanes, requiring complex workarounds using subgraphs or custom styling. This limits its usability for teams who want to document cross-functional workflows in a clear and standardized way.

Use Cases

  1. Business Process Mapping
    Use Case: Mapping complex business processes with multiple actors, departments, or systems involved.
    Example:
    A loan approval process involves various steps, from application submission (handled by the customer service team) to loan assessment (handled by the underwriting team) and final approval (handled by the finance department).
    A Swimlane diagram helps clarify the roles and responsibilities of each team and shows how work flows between them.

  2. Cross-functional Project Management
    Use Case: Managing projects that require collaboration across multiple departments or teams.
    Example:
    A software development project involves stages like requirements gathering (business analyst), design (UX/UI designers), development (engineers), and testing (QA team).
    Swimlane diagrams visualize the responsibilities and sequence of actions for each team, improving communication and reducing delays.

  3. Customer Journey Mapping
    Use Case: Understanding the customer experience across different touchpoints and departments.
    Example:
    A customer support process that involves inquiry submission (customer), response and troubleshooting (support team), and escalation (manager), clearly shows the interactions each department has with the customer at various stages.
    Swimlanes help track the customer’s journey and identify bottlenecks or areas for improvement in the process.

  4. Compliance & Risk Management
    Use Case: Ensuring compliance with regulations across multiple teams and functions.
    Example:
    A regulatory compliance process for data privacy might involve data collection (IT), data analysis (data team), audit and reporting (legal team), and final review (compliance officer).
    Swimlane diagrams allow teams to visualize their part in meeting compliance requirements, ensuring accountability and reducing errors.

Screenshots

No response

Syntax

Example Syntax for a Flowchart Diagram with 3 horizontal swimlanes

flowchart TD
laneHor User
A[Start] --> B[Submit Request]
laneHor System
B --> C[Process Request] --> D[Send Confirmation]
laneHor Admin
D --> E[Approve Request]

Implementation

This is a proposal which I'd love to see built into mermaid by the wonderful community.

@Guido-Vi Guido-Vi added Type: Enhancement New feature or request Status: Triage Needs to be verified, categorized, etc Type: New Diagram labels May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: New Diagram
Projects
None yet
Development

No branches or pull requests

1 participant