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
About the Author
About the Reviewers

Chapter 6. Advanced vRO Scripting with JavaScript

In the previous chapter, we learned how to combine existing workflows to create new workflows. Before we can go ahead and delve into the advanced aspects of programming, we need to learn some JavaScript. Orchestrator is actually a JavaScript engine that has a massive visual component.

In this chapter, we will not only use an example workflow to learn JavaScript, but also expand the InstallFreshVM workflow that we created in the previous chapter.

This chapter will explore the following topics:

  • JavaScript – the very basics

  • How to use JavaScript in Orchestrator

  • The if-clause in JavaScript as well as operators and conditions

  • Creating and using actions