Edit a previous version of a deployed workflow

You might need to edit a previously-deployed version of a workflow that is currently not set as the default version. For example, your current default workflow version is 7.0 but you want to load version 3.0, edit it and deploy it. To do this, use Management to set version 3.0 of the workflow as the default. Then you need to delete the last edited version of the workflow: using the Designer, select and delete the workflow (in this example, the workflow version is version 7.0.0.0). When you edit the workflow again, the Designer will load the default version of the workflow, which in this example means it loads version 3.0 of the workflow. Now you can edit this older version of the workflow and deploy your changes as a new version to the server, and this new version will become the default version.

For more detail on workflow versioning and the differences between edited and deployed workflow versions, please see the article KB002953: Saving, copying and renaming workflows. For more detail on deleting workflows, please see Delete a Workflow.

Pay attention to the version number displayed in the Designer. When you deploy a workflow, the version number increments to a 'major' version, for example 7.0.0.0. If someone edits and saves the workflow in the Designer but did not deploy those changes, the version number will increment to a minor version, for example 7.0.0.1. If you follow the procedure below to edit a previously-deployed version of the workflow and you notice that the version number shows a minor version (for example 7.0.0.2), be aware that deleting the workflow from the Designer means you will lose all changes made to the workflow since the last deployed/major version. In other words, you will lose all changes to the workflow since the workflow was last deployed.

Follow these steps to edit a previously-deployed workflow.

  1. Launch the Designer, click Browse and find the folder in the category tree where your workflow is located.
  2. Select the workflow. In this example, notice the version number is 7.0.0.0. Because the version ends with 0.0.0, we know this was the last deployed version of the workflow and no-one has edited and saved any changes to the workflow design since it was last deployed.
  3. In Management, browse to Workflow Server > Workflows. Select your workflow and click the Versions tab. Notice the default version of the workflow. In this example, the default version is 7.0 (Default), which aligns with version 7.0.0.0 in the Workflow Designer.
  4. To set another version of the workflow as default, select it and click Set as Default. In this example, we set version 3.0 as the default. Click OK to confirm.
  5. You should see that the default version of the workflow has changed, 3.0 in this example.
  6. Using the Designer, select the workflow and click Delete to delete the last saved version of the workflow, in this example we are deleting version 7.0.0.0. Click Yes to confirm.
  7. In the category tree, notice the workflow version number now shows as the same version you set as default in Management; in this example the version now appears as 3.0. The workflow status icon shows a blue workflow icon with a red arrow, which indicates that the workflow is deployed.
  8. To edit this 'restored' version of the workflow (version 3.0 in this example), select it and click Edit.
  9. Once you are finished making your changes to the workflow, deploy the workflow. When you deploy a new version of the workflow, the deployed version automatically becomes the default version, even if you previously set a different version as the default. In this example the newly -deployed workflow version shows as version 8.0 (Default) after you deployed it. For more information on how to deploy a workflow, see the Deploy a Workflow topic.

For related information see, KB002953: Saving, copying and renaming workflows.