add a version field in the workflow entity and create a new version in the database after the save button pressed
this will solve a big problem with data migration between development and production environments
-
new versions are not active by default
-
switching an activity to another version automatically removes the activity from the previous one