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 Cookbook

You're reading from   VMware vRealize Orchestrator Cookbook Over 90 recipes to satisfy all your automation needs and leverage vRealize Orchestrator 7.1 for your projects

Arrow left icon
Product type Paperback
Published in Nov 2016
Publisher Packt
ISBN-13 9781786462787
Length 556 pages
Edition 2nd 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

Table of Contents (14) Chapters Close

Preface 1. Installing and Configuring Orchestrator FREE CHAPTER 2. Optimizing Orchestrator Configuration 3. Distributed Design 4. Programming Skills 5. Visual Programming 6. Advanced Programming 7. Interacting with Orchestrator 8. Better Workflows and Optimized Working 9. Essential Plugins 10. Built-in Plugins 11. Additional Plugins 12. Working with vSphere 13. Working with vRealize Automation

Waiting tasks


This is a recipe that will make you wait for it...

Getting ready

We need a new workflow and time!

How to do it...

There are two different kinds of wait tasks, tasks that wait for a duration and tasks that wait for a specific date and time until they proceed.

Creating a help task

We need to create an action to help us track time. It will just log the current date and time. The action already exists in the action folder com.packtpub.Orchestrator-Cookbook2ndEdition.helpers:

  1. Create a new action and call it getNow. There is no need to define any in- or out-parameters.

  2. In the script section, place the following script:

          var current = new Date(); 
          System.log(current); 
    

Using the Sleep task

  1. Create a new workflow.

  2. Drag a Sleep task onto the schema and create the sleepTime in-parameter as input for the workflow.

  3. Add the getNow action we have just created before and after the Sleep task.

  4. When running the workflow, check the log. You will notice how the workflow will wait for the...

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