Linking presentations

Until now, we used fixed values in the presentation properties. We will now link properties to parameters.

To do this, we will create an array of strings that is filled with the operating system names and link them as a list for selection, as follows:

  1. Edit the InstallFreshVM workflow.
  2. Add a new array of strings in the attributes and name it GuestOS. Enter Windows 7 and SLES 11 as values.
  3. Now, click on Presentation, select the vmGuestOsName, and add the Predefined list of elements property.
  4. The property looks a bit different. For starters, it's yellow, which indicates that it's a linked property. Click on Help editing OGNL, Linking presentations.
  5. From all the values that fit the input parameter type (string), select the array that you have just created and click on Accept.
  6. Now, save and run the workflow.
    Linking presentations

The linking of properties is quite useful. Just think about the fact that you can use inputs to alter the Properties settings.

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

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