Variable handling during archiving

When you archive a process instance, all variable assignments executed by this process instance are reverted regardless of their scope. For example, if you archive a process instance that has increased a variable value from 3 to 4, this value is reset to 3 during archiving.

If this process instance is unarchived, the variable assignment is restored.