Version control

In this recipe, we will look at how to use the Orchestrator version control and use it to control your software development. Version control is part of almost all elements.

Getting ready

A working Orchestrator is required, and you will need the rights to create new workflows and run them. We will work with the Orchestrator Client.

We need an existing workflow that we can play around with. In this recipe, we will use the 00.00 BasicWorkflow workflow of the example package. The finished example is the 04.02 VersionControl example workflow.

How to do it...

We will use a workflow for this example; however, it works for other elements too:

  1. Make a duplicate of the 00.00 BasicWorkflow workflow.
  2. Click on General and have a look at the current version (see the following screenshot).
  3. Open the workflow for editing by right-clicking on it and selecting Edit.
  4. Drag a system log element from the log section into the schema.
  5. Bind the text in-parameter to an existing string variable.
  6. Click on General and then on the second version counter to increase the version of the workflow to 0.1.0 (see the following screenshot).
  7. You can now enter a comment to the new version. This is a good place to record changes that have been made. When finished click on OK.
  8. The version counter in the General section should now be increased.
  9. Click on Show version history to see an overview of all existing versions:

    How to do it...

  10. Now click on Save and Close. If you now select Increase version, you will create version 0.1.1, so you should select Continue anyway.

Showing differences between versions

You use this function to compare the differences between versions of a workflow:

  1. On the workflow's General tab, click on Show version history.
  2. Select the version you would like to compare the present one against and click on Diff Against Current.
  3. A window will pop up and show both versions next to each other. Resize the window as required.
  4. When you are finished, click on Close:

    Showing differences between versions

Reverting to an older version

  1. Click on Show version history.
  2. Select the version you would like to revert to and click on Revert.

Your workflow is now of an earlier version, but the newer version is still available. You can also revert to a newer version if you wish.

How it works...

Version control is a very important tool in software development. It not only helps you keep track of your code development, but also helps you in other ways. For instance, when you import a workflow or a package, you can directly see whether the import is newer or older than the existing one. The other thing is that you can check versions against each other, as well as revert to different versions. You can use the revert function to make duplicates of older versions.

Tip

Version control is available for Workflows, Actions, Configurations, Resources, and Policy Templates.

See also

The example workflow 04.02 Version Control.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset