17 Public Case Plan Models with Mermaid Diagrams

CaseMgr now includes a library of 17 public Case Plan Models — reusable workflow templates based on the CMMN standard. Instantiate one to create a fully structured case with stages, tasks, milestones, and sentries already wired together.

What Are Case Plan Models?

Models are templates. Instead of building a workflow from scratch every time, you pick a model and instantiate it. The model creates all the CMMN items (stages, tasks, milestones, sentries, timers) with their relationships already configured.

The Pattern Library

We’ve published six reusable CMMN patterns that serve as building blocks:

  • Approval Gate — Decision task routes to approved/rejected branches via conditional sentries
  • Decision Tree — Multi-way branching based on a decision task’s outcome
  • Escalation Timer — A task with a deadline; if the timer fires first, an escalation path activates
  • Multi-Stage Pipeline — Sequential stages gated by sentries
  • Parallel Work with Join — Concurrent tasks with a milestone that fires when all complete
  • Monitoring Loop — Cron timer drives a webhook, condition sentry auto-resolves when met

Workflow Templates

For end-to-end workflows, we have:

  • Bug Triage & Fix — Report → triage (AI decision) → fix → verify
  • Project Kickoff — Discovery → planning → execution → closeout
  • Research & Report — AI-human collaboration for research and drafting
  • Invoice Generation — Client selection → billable items → LaTeX/PDF generation → delivery (our most complex model with 29 definitions)
  • AI Work Item Pipeline — Process task creates work for an AI agent
  • Recurring API Poll — Timer-driven webhook polling with conditional resolution

Using Models

# List available models (including public ones)
wa mcp models-list include_public=true

# Create a case from a model
wa mcp models-instantiate model_id="#61:37" name="Q1 Budget Approval"

# Or add a workflow to an existing case
wa mcp cmmn-add_model_to_case case_id="#1:123" model_id="#61:40"

In the web UI, click Models in the navigation to browse, or use the Workflow button in any case to add a model’s items.

All models include Mermaid diagrams on the documentation page: casemgr.systems/case-plan-models

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *