In this
article we are going to look at custom presentation of VMware vRealize
Orchestrator workflow. Here in this example we would concentrate on
the presentation portion rather than the workflow execution.
Let’s say we
have to create a workflow for VM deployment and the presentation should have
the options for IP configurations based on the type selected “Static” or
“DHCP”.
Below inputs
are required to deploy the virtual machine.
Input Name
|
Type
|
Description
|
computerName
|
String
|
Enter the virtual machine name to create
|
numCpu
|
Number
|
Enter the number of CPUs required for the VM
|
ram
|
Number
|
Enter the ram(GB) required for VM
|
initStorage
|
Number
|
Enter the Initial Storage(GB) required for VM
|
Dhcp
|
String
|
Choose DHCP "Yes" or "No"
|
IpAddress
|
String
|
Enter the IP Address
|
defaultGateway
|
String
|
Enter the Default Gateway
|
subnetMask
|
String
|
Enter the Subnet Mask
|
Now let’s dive into the workflow.
Step 1)
Login to VRO console and create a workflow and go to inputs tab and choose add
parameter to add a new input parameter.


Step 2)
Click on the new input parameter and change the attribute name to
“computerName” and click Ok.
Step 3) Click on the type for
the input parameter and choose the required data type. Then click accept to
proceed. Here in this example I do not change the data type as the required
type is string.
Step 4)
Repeat step 1 to step 3 for remaining input parameters and choose the
appropriate data type. The workflow input session look as below.
Step 5) now
move to the presentation tab of the work flow. Now that we see all input
parameter define earlier is visible on presentation tab.
Step 6)
Select the first parameter “computerName“ and provide appropriate description.
Step 7) Select
the second parameter “numCPU”. Enter the description and choose property as
predefined answers. Then click on not
set to enter predefined values.


Step 11) for
the next three input parameters ( ipAddress, defaultGateway and subnetMask ).
Here in this
step there are three properties to be observers. There three properties are
binded to the #Dhcp input parameter
value. If the DHCP input value is yes then these three properties are set to
hide. Else the remaining input parameters will be visible in the presentation
during workflow execution.
Now let’s
run the work flow and see how the presentation looks.
No comments:
Post a Comment