O'Reilly logo

VMware vRealize Orchestrator Essentials by Daniel Langenhan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

This chapter introduced you to JavaScript and how you can integrate it into Orchestrator. You learned how to use the scriptable task and the action element to directly write JavaScript code into your workflow.

We learned how to use the if-clause and what conditions are and how to form them. We also had a look at some of the common string problems that one may encounter.

In the next chapter, we will use presentation to improve user experience and reduce input errors.

Correct answers

Check whether mySecondValue equals Hello:

if (mySecondValue=="Hello") {
  myOutput="Well Helllo";
} else {
  myOutput="no hello";
}

Check both the conditions:

if ((myFirstValue>5)&&(mySecondValue=="Hello")) { myOutput="Well Helllo, its bigger than 5"; } else { myOutput="no ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required