app modification after activation, version - 2 (draft)at this moment, there are two versions of app, version 1 (production) and version 2 (draft)

App activation, version - 2 (production)

app modification after activation, version - 3 (draft)at this moment, there are three versions of app, version 1 (obsolete), version 2 (production) and version 3 (draft)

...

App documents created with a specific version will use this version through all lifecycle. For example, an app document with a long lasting workflow created in version 3 in January, in July still uses (obsolete) version 3 definition, regardless of the fact that a current (production) version is 6.