About Author: Joerg Lew

Posts by Joerg Lew

0

Recommended Reading: Eloquent JavaScript

or: How to learn JavaScript as Workflow Developer?

When you’re new to vCenter Orchestrator, chances are that you are new to JavaScript as well. Usually not that big problem, JavaScript (at least the level you need for Actions and Scripting Elements in vCO) is quite easy to learn.

There are a lot of books about JavaScript out there. Unfortunately, most of them focus on JavaScript as language for the web, so there is a lot of web-related stuff inside, which is not necessary and very distracting for vCO Workflow Developers.

The book

One rare exception is “Eloquent JavaScript” by Marjin Haverbeke. This book really focuses on JavaScript itself and teaches the language together with an introduction in Programming in general. So you do not need any prior knowledge, neither about JavaScript nor about Programming. This makes it a perfect fit for the most new Workflow developer!

In addition to the good content, the book is written and edited very well (in fact, it’s one of the best programming books I’ve ever read (and these are some :-D)). All topics, basics like datastructures and advanced topics like the introduction in object-oriented programming, are explained along small, good and funny source-code examples in JavaScript. So you really enjoy reading while you learn programming in general and JavaScript in special!

And, that’s by far not all:

The online “lab”

Besides the hard-copy there is a free digital version of the book, available online or as downloadable .zip-archive!

On http://eloquentjavascript.net/ you can find the download links, the (very rare) errata and an online JavaScript Programming Console, where you can run and modify the examples directly in your browser:

Eloquent JavaScript Online Environment

Get Started!

This combination, written book and the online “lab environment”, really allows to learn that level of JavaScript you need for Orchestrator Workflows in a very quick way!
(And you might even use the online environment to test/”dry-run” some of your vCO Scripting Element, like confirming the semantics of a loop or some String handling (only without vCO/vSphere related objects of course))

Find more details about the book on the publisher’s homepage and on Amazon:

There is only one drawback: The fluent style of the book makes it not that useful as a reference. So if your already can programming JavaScript and you look for a reference to quickly remember how to concatenate arrays, other books like The old Rhinocerus might fit better.

0

VMwareTV: Getting Started with Workflow Development

The Orchestrator Developer Team at VMware created a great series of video tutorials on youtube how to “Develop your first workflow” with vCenter Orchestrator:

Find more links on the Resources Page

0

Using Wavemaker as Web-Frontend for vCO

UPDATE 23. Nov. 2011: Additional Reference: Christian Johannsen posted a great step-by-step example for Wavemaker & vCO on http://mighty-virtualization.blogspot.com/2011/11/vco-wavemaker-your-cloud-webservice.html

There are different ways to create a web-based frontend for Orchestrator:

  • Webviews (included, provide integrated finder for inventory objects BUT old, hard to learn, deprecated, don’t bother to start with…)
  • Perspectives (based on webviews, very easy to use, way to go for quick-wins)
  • build your own (call Workflows via the SOAP-based API of Orchestrator)

(for more details, see this post)

Now, rumors are out there for a long time, it seems that Wavemaker is a hot candidate as main technology for the web-based stuff in future (it was mentioned at VMworld and in the forums… Yohooo!).

The Video

To get started, see following screencast…
Disclaimer: Starting at 6:30 it gets very dirty! Do not let your children nor your VMware Support Guy watch this unattended, and only try this at home! :mrgreen:

Wavemaker as Web-Frontend for VMware vCenter Orchestrator – Sneak Preview from Joerg Lew on Vimeo.

(I used the current 6.4.2 BETA of Wavemaker against vCO 4.1, but should work as well with slightly different versions of both components…)

So, why is Wavemaker a perfect fit (The GOOD…)?

It allows to to create nice-looking websites with a real bunch of logic without the need for tooooo much knowledge about web-development. (Orchestrator allows to create complex automation for your complete IT-Infrastructure without the need for tooooo much knowledge about software development)

It defines the information flow between different elements via a parameter binding semantic. (How do you pass information through a workflow in Orchestrator??)

You can drag&drop content elements from the palette to your actual website, and program additional logic in JavaScript (in the vCO you can drag&drop…. Well, you get the point…)

It uses the same platform. (see the dirty end of the video 😯 ), so a good integration is possible.

It’s the same company. (<EVILMODEON>So if VMware learned something from the  **yourAdjectiveHere** acquisition of Dunes some time ago, this time they get synergy earlier!!!<EVILMODEOFF>)

Drawbacks (The BAD…)

As external system, your wavemaker frontend has to call workflows via the API. So it is some effort to pass input parameters to the workflow, and it is a real bunch of effort (you don’t use “pain-in-the-ass” in a public blog :-?) if your workflow needs inventory objects as input.

So, in the current version you are bound to the features, the “usability”, and the limits of vCO’s current SOAP-API.

The Future (NOT ugly, quite the opposite!)

Two things on the horizon might make the Wavemaker<=>vCO-Integration perfect in future:
First, a new API in a future version of vCO could make the usage of inventory-objects as inputs easier;
Second, a bunch of pre-built vCO-related elements in the Wavemaker Palette could make the development of the web-frontend easier (compare it to the idea, not the complexity and not-documentation, of the vCO-related Tapestry objects in Webviews)….
=> Go vCO-Team! Go Wavemaker!

References

To get started with Wavemaker and the vCO-SOAP-API, see following links:

…and:

The way shown in the video using the SOAP-interface directly with a WebService-Variable in Wavemaker is not the only way (and maybe not the best one for every use-case). You can also create your own Java stubs (see the examples-zip in the Orchestrator Documentation), and use a “plain old” JavaService Variable against them in Wavemaker.

Summary

So in general, despite some hurdles due to the limits of the current SOAP-API, Wavemaker allows you to create good looking webinterfaces for Orchestrator Workflows. And it’s absolutely worth to dig into it, because this seems to be THE technology for webbased vCO-Access in the future.

0

Get trained on vCO: Class Schedule for the “vCenter Orchestrator – Develop Workflows” Training

VMware provides an official instructor-led training to get you started with Workflow development for the Orchestrator (see more details here…). Finally there are some classes scheduled now. If you want to enroll, register via VMware’s mylearn-portal, or a VATC (VMware Authorized Training Center) in your area.

If you have demand for a course geographically closer to you, or if you want some customized training, feel free to contact me!

Always make sure that you see the current schedule from the source on http://mylearn.vmware.com/portals/www/search/results.cfm?ui=www_edu&menu=search-results&searchtype=simple&category=schedule&id_subject=24347&deliveryType=1&filters=deliveryType

See you soon 😎 !

Class Schedule for: VMware vCenter Orchestrator: Develop Workflows [V4.1]

Results 1 – 10 of 10
1. VMware vCenter Orchestrator: Develop Workflows [V4.1]
Products: VMware vCenter Orchestrator, VMware vSphere

28 Nov – 30 Nov

Register Now
09:00 AM (UTC)
Classroom
Frimley Camberley, United Kingdom
VMware Training
2. VMware vCenter Orchestrator: Develop Workflows [V4.1]
Products: VMware vCenter Orchestrator, VMware vSphere

05 Dec – 07 Dec

Register Now
09:30 AM (ECT)
Classroom
Language: Deutsch (German)
München, Germany
Tech Data Azlan – GY
3. VMware vCenter Orchestrator: Develop Workflows [V4.1]
Products: VMware vCenter Orchestrator, VMware vSphere

25 Jan – 27 Jan

Register Now
09:00 AM (ECT)
Classroom
Paris, France
VMware Training
4. VMware vCenter Orchestrator: Develop Workflows [V4.1]
Products: VMware vCenter Orchestrator, VMware vSphere

06 Feb

Register Now
09:30 AM (ECT)
Classroom
Language: Deutsch (German)
Hamburg, Germany
Tech Data Azlan – GY
5. VMware vCenter Orchestrator: Develop Workflows [V4.1]
Products: VMware vCenter Orchestrator, VMware vSphere

29 Feb – 02 Mar

Register Now
09:00 AM (ECT)
Classroom
Johannesburg, South Africa
VMware Training
6. VMware vCenter Orchestrator: Develop Workflows [V4.1]
Products: VMware vCenter Orchestrator, VMware vSphere

12 Mar – 14 Mar

Register Now
09:30 AM (ECT)
Classroom
Language: Deutsch (German)
München, Germany
Tech Data Azlan – GY
7. VMware vCenter Orchestrator: Develop Workflows [V4.1]
Products: VMware vCenter Orchestrator, VMware vSphere

19 Mar – 21 Mar

Register Now
09:00 AM (ECT)
Classroom
PN Vianen (Utrecht), The Netherlands
VMware Training
8. VMware vCenter Orchestrator: Develop Workflows [V4.1]
Products: VMware vCenter Orchestrator, VMware vSphere

02 May – 04 May

Register Now
09:30 AM (ECT)
Classroom
Language: Deutsch (German)
Leipzig, Germany
Tech Data Azlan – GY
9. VMware vCenter Orchestrator: Develop Workflows [V4.1]
Products: VMware vCenter Orchestrator, VMware vSphere

02 May – 04 May

Register Now
09:30 AM (ECT)
Classroom
Language: Deutsch (German)
Hannover, Germany
Tech Data Azlan – GY
10. VMware vCenter Orchestrator: Develop Workflows [V4.1]
Products: VMware vCenter Orchestrator, VMware vSphere

04 Jun – 06 Jun

Register Now
09:30 AM (ECT)
Classroom
Language: Deutsch (German)
München, Germany
Tech Data Azlan – GY
0

VMware Labs releases CIM Plugin for vCO

Newest Fling from VMware Labs: An Orchestrator-Plugin to get CIM-Information from ESX-Hosts. At the first glance this enables great abilities for Monitoring and Reporting Workflows.

Download the Plugin from here: http://labs.vmware.com/flings/cim-plugin