Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
VMware vRealize Orchestrator Essentials

You're reading from   VMware vRealize Orchestrator Essentials Get hands-on experience with vRealize Orchestrator and automate your VMware environment

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781785884245
Length 184 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Daniel Langenhan Daniel Langenhan
Author Profile Icon Daniel Langenhan
Daniel Langenhan
Arrow right icon
View More author details
Toc

Logs and errors


As logs and errors go well together, let's use them. We will improve the InstallFreshVM workflow to catch errors, as follows:

  1. Open the InstallFreshVM workflow for editing.

  2. Click on Schema and open the Log toolbox.

  3. Drag a System Error element onto the Create simple virtual machine element.

  4. You will see that System Error connects itself to the Create simple virtual machine element with a dashed red line. This is the error line.

  5. Click on the edit symbol of the Create simple virtual machine element and have a look at the Exception tab. You will find that a new attribute called errorCode is linked to the element. Check out the IN-parameters of the System Error element. You will also find the errorCode attribute here. These were automatically created and linked when you pulled the Log element onto it.

  6. All we now need to do is assign a string value to the IN-parameter text, and we are ready. Do this, and fill its value with something meaningful, such as "Banana?".

  7. Now, we need to create...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image