Modifying an existing workflow

Copying and then modifying an existing workflow is something that is pretty common. We will go through this by using an example. We will copy and modify the Start virtual machine and wait workflow.

  1. In the Orchestrator Client, browse to the workflow Library | vCenter | Virtual machine management | Power Management | Start virtual machine and wait.
  2. Have a look at the Edit option. It's greyed out. This is because it's a Vendor supplied library workflow.
  3. If we want to modify the workflow, we have to duplicate it. Go ahead and do this, as shown in the last section.

After duplicating the workflow, you can edit it.

The trick with modifying existing workflows is to understand what they are doing. This can be done simply by running the workflow and having a closer look at each element.

The decision element (A) checks the power status of the VM. If it is powered on, it will move to the scripting element (E). If the VM is not powered on, it will go to the startVM action (B). We have used this action before, and you may remember that its output is of the type VC:Task. The workflow (C) checks whether the VM is powered on and automatically answers vCenter questions, if there are any.

The last action (D) will wait for the VMware tools inside the VM to start.

Modifying an existing workflow

This workflow is very good. However, if the VM has no operating system or VMware tools are not installed, it will show an error. So, we will modify it, as follows:

  1. Click on the last action (D) and then delete it.
  2. You will see that this automatically reconnects the lines to the end element.
  3. Run validation and delete all the parameters that are left over from the action that we deleted.
  4. Save and close the workflow.

If you want to, you can now replace the startVM action in the workflow that you created.

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

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