Book Image

VMware vRealize Orchestrator Essentials

By : Daniel Langenhan
Book Image

VMware vRealize Orchestrator Essentials

By: Daniel Langenhan

Overview of this book

Table of Contents (18 chapters)
VMware vRealize Orchestrator Essentials
Credits
Foreword
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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...