Create Your First vRealize Orchestrator Workflow - Hello World
The following article details the steps for getting started in vRealize Orchestrator by creating your first workflow. You can review the video below for a demonstration of this process and continue reading for a step by step overview.
As an Amazon Associate I earn from qualifying purchases.
Before we begin creating our first workflow, let’s create a place to put it. Follow these steps to create a new workflow folder:
- Change the view drop-down at the top of the Orchestrator client to Design.
- Click the blue Workflows tab (this tab should be selected by default, but ensure it is selected, and click it if necessary)
- Right-click the top level node. This node is named according to the logged in user, for example “administrator @ server-fqdn”
- Click “Add Folder…”
- Enter the folder name “vRO Examples”
- Click OK
Repeat these steps to create a folder underneath the vRO Examples folder named “First Workflow.” Right-click the vRO Examples folder and click “Add Folder…” to create the folder at this level instead of the top level.
Create the workflow by following these steps:
- Right-click the First Workflow folder
- Click New workflow
- Enter the name “First Workflow”
- Click OK to create the workflow
Figure 1. Creating a new workflow in the newly created folders
The workflow is now created, but is empty. The next step is to modify the workflow definition in the workflow editor window that automatically displays after creating a new workflow.
For this workflow, we will simply create a “Hello World” style example, which when run, logs “Hello World” to the output.
Follow these steps to modify the workflow content:
- Click the Schema tab
- Click and drag “Scriptable task” from the left pane onto the right-pane canvas area, dropping it on the blue arrow which connects the green start node to the black and white end node.
- In the bottom pane, the scriptable task node information is displayed.
- Click the Scripting tab in the bottom pane
In the script area, type the following content:
- In the top pane, click the Run button, located directly above the new workflow schema diagram.
- A new pane is now displayed on the right side of the workflow editor window, which shows workflow run information, including the General, Variables, and Logs tabs.
- Click the Logs tab.
- Verify the following information was displayed as a result of the workflow run:
[2017-09-15 13:36:11.209] [I] Hello World
NOTE: the date and time will vary depending on when you run the workflow.
- Click the Save and close button located at the bottom right corner of the workflow editor window.
- In the Add to Version History popup window, click the Increase version button.
The completed workflow schema should look as follows:
Figure 2. Workflow schema shown after successful execution, with scriptable task selected and script content displayed
Congratulations! You just created your first, albeit extremely simple, workflow.
As a result of this exercise you should be familiar with the vRealize Orchestrator client user interface on a very basic level. There are a lot of advanced things you can do, but the workflow tree and editor are two of the most used areas of the client, and getting familiar with them early is crucial to success with vRealize Orchestrator.