# Versioning

Versioning of value streams follows a roll-forward approach. Each time a change is made, a new version of the process is automatically created. If you need to revert to an earlier version, you can do so, but this action itself generates the next version in the sequence.

When you trigger a value stream and it starts to run, you have an instance of that process. If the process is at version 1, that instance is an instance of version 1. Supposing you have 200 running instances at version 1 and you modify your process and save it as version 2, the next instance of that process that you run is a version 2 instance. This does not change the 200 running instances at version 1.

It is possible to have many instances of many different versions all running at the same time. When a new version is created, it doesn't stop the previous ones from running.

{% @mermaid/diagram content="---
config:
layout: fixed
theme: base
look: classic
themeVariables:
background: transparent
lineColor: "#9CBBE3"
arrowheadColor: "#9CBBE3"
edgeLabelBackground: "#FFC128"
edgeLabelTextColor: "#4C5359"
-----------------------------

flowchart LR
A\["You created a value stream - version 1"] --> B\["You edit the value stream and with your new changes version 2 is created"]
B --> C\["You decide to revert the changes from version 2 and you choose to get back to version 1 of the value stream"]
C --> D\["The changes are reverted and you are back to the state of the value stream from version 1, but it is created as version 3"]
A@{ shape: rounded}
B@{ shape: rounded}
C@{ shape: rounded}
D@{ shape: rounded}
A:::Class\_01
B:::Class\_01
C:::Class\_01
D:::Class\_01
classDef Class\_01 fill:#F2F6FA, stroke:#4C5359" %}

Additionally, using the **Show Versions** function, you can check what is the current value stream version, when it was modified and by whom. You can also select the previous version of the value stream and get back to it.

<figure><img src="https://1024162941-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrSc4haeKWrTrOPHzdrMO%2Fuploads%2Fgit-blob-37a449ef5f8f7938b75c044dd1fafefc58a864ef%2Fvsm_versions.png?alt=media" alt="" width="400"><figcaption></figcaption></figure>

{% hint style="warning" %}
Choosing to revert to an older version of the value stream results in changing the process to the older configuration, but with a new version number.
{% endhint %}
