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

Get VMware vRealize Orchestrator Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.