VCF Automation Blog

from Stefan Schnell

VCF Automation uses the JavaScript engine Rhino, this becomes visible in the section Scripting Engine of the current key features of the VCF Operations orchestrator platform.

Detect the Rhino JavaScript Engine Version


Here the JavaScript code to detect the Rhino engine version.

Hint: Set the system property com.vmware.scripting.javascript.allow-native-object in the Control Center (Aria Automation 8.*) or System Settings (VCF Automation 9.*) to true.

var context = new org.mozilla.javascript.Context();
var currentContext = context.getCurrentContext();
var rhinoVersion = currentContext.getImplementationVersion();
var languageVersion = currentContext.getLanguageVersion();
System.log(rhinoVersion);
System.log("Language version: " + String(languageVersion));

Detect the version of the Rhino engine in Aria Automation 8.*:
get version of the rhino engine in aria automation 8
Detect the version of the Rhino engine in VCF Automation 9.*:
get version of the rhino engine in vcf automation 9
You can find here the documentation of the Rhino classes for the release 1.7R4 (Aria Automation 8.*) and for the release 1.7.15 (VCF Automation 9.*).