BPMN Studio logoBPMN Studiov2.0 Try it free
ContentsOverview

Software release process BPMN diagram example

A software release process in BPMN is worth drawing for the parts a pipeline file does not show: who decides, what runs at the same time, and what happens when the deployment fails. This example has a fix-and-retest loop for failing tests, regression testing and release notes in parallel, a go/no-go decision by the release manager, and a rollback path that starts from an error boundary event on the deployment.

Software release BPMN 2.0 diagram: test loop, parallel regression tests and release notes, go/no-go, deploy with rollback
A software release in BPMN 2.0: a failed deployment leaves through an error boundary event and is rolled back. Generated with BPMN Studio. How it was made: BPMN Studio generated it from the description below, then it was reviewed and corrected by hand and laid out by the app's own layout engine.

Use this diagram. Open it in the BPMN Studio editor to change it by hand or by chat, or download the BPMN 2.0 XML, the exact source behind the diagram above, for Camunda Modeler, Flowable, Activiti, bpmn.io or any BPMN 2.0 tool.

Open and edit this diagram↓ Download Software release .bpmn

The file is free to download with no sign-up and no attribution required. Saving a diagram in the editor needs a free account.

The process in plain English

A developer tags a release candidate. The CI system runs the automated tests. If they fail, the developer fixes the defects and the tests run again. Once they pass, QA runs regression tests on staging while the developer writes the release notes. When both are done, the release manager makes the go/no-go decision. A no-go postpones the release. On a go, the CI system deploys to production; if the deployment fails, it is rolled back and the team is notified. After a successful deployment QA verifies production and the release is announced.

or open a blank editor

Opens the editor with your text in the chat. Generating needs a free account, no card.

Steps and their BPMN elements

The middle column names each BPMN element; the BPMN symbols and shapes reference shows what each one looks like.

Step BPMN element Lane
Release candidate tagged Start event Developer
First run and retests meet Exclusive gateway (merge) CI system
Run automated tests Service task CI system
Tests passed? Exclusive gateway CI system
Fix defects User task Developer
Split: test and document Parallel gateway CI system
Run regression tests on staging User task QA
Write release notes User task Developer
Join: both done Parallel gateway Release manager
Decide go or no-go User task Release manager
Go? Exclusive gateway Release manager
Release postponed End event Release manager
Deploy to production Service task CI system
Deployment failed Error boundary event CI system
Roll back deployment Service task CI system
Notify team of rollback Send task CI system
Release rolled back End event CI system
Verify production User task QA
Announce release Send task Release manager
Release live End event Release manager

Key modelling points

  • The rollback hangs off an error boundary event. "Deployment failed" sits on the border of "Deploy to production". An error boundary event always interrupts, which is the point: a failed deployment must not carry on to "Verify production". The rollback is not a branch of a gateway, because nobody decides to fail.
  • The test loop goes back through a merge. "Fix defects" returns to "Run automated tests" through an exclusive merge in front of it, so the test task has one incoming flow and the loop is easy to follow. This is the loop pattern for rework that involves a second step.
  • Parallel work is closed with a parallel join. Regression tests and release notes are independent, so a parallel gateway splits them and another waits for both. An exclusive merge there would send the release to the go/no-go decision twice.
  • The go/no-go is a task and then a gateway. The release manager's decision is work ("Decide go or no-go"); the gateway only routes on it.
  • The CI system has its own lane. Service tasks in a system lane make it obvious which steps wait for a person and which do not, and that is where a release usually loses time.

Common variations

  • Canary or staged rollout: replace "Deploy to production" with a sub-process that deploys to 5%, checks the error rate, then deploys to everyone, and keep the error boundary event on the sub-process so one rollback path covers every stage.
  • Hotfix: a shorter path that skips regression testing; model it as a second start event or as its own process.
  • Change approval board: add a lane and an approval task before the go/no-go, with a timer for the weekly meeting.

Generate your own release diagram

Your branches, environments and approvals will differ. Describe your release steps in the BPMN Studio editor and get an editable BPMN 2.0 diagram. Related: the incident management example for what happens after a bad release · more BPMN examples.

Frequently asked questions

How do I model a rollback in BPMN?

Attach an error boundary event to the deployment task and lead it to a "Roll back deployment" task with its own end event, such as "Release rolled back". The error boundary event is always interrupting: the deployment stops and the flow leaves through the rollback path instead of continuing to the next step.

Is BPMN a good fit for a CI/CD pipeline?

For the pipeline's internal steps, no: the pipeline file already is the model. BPMN is useful one level up, for the release process around the pipeline: who approves, what runs in parallel, what happens when a deployment fails, and who is told. That is what this example shows.