vRealize Orchestrator Scripting Engine concatenation issues
search cancel

vRealize Orchestrator Scripting Engine concatenation issues

book

Article ID: 325995

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

This Knowledge Article describes the known behavior when using concatenation and a workaround to circumvent the issue.

Symptoms:
When developing a new workflow or scripted action, if using concatenation of a string and input with type string in an array, the resulting java plugin interpretation is an array of elements of type "org.mozilla.javascript.ConsString" instead of "java.lang.String"

Environment

VMware vRealize Orchestrator 7.x

Cause

The underlying Rhino Scripting engine in use by vRealize Orchestrator causes this problem to occur.

Resolution

Currently there is no resolution for this issue.  Please see the workaround below.

Workaround:
When adding a concatenated string to an array, use toString().  A workflow has been appended to provide reference named "Fabric Group Sample v2.workflow".  See below for full code snippet:

var group = new vCACCAFEFabricGroup();
group.setName("MyyNameee");
group.setDescription("someDescr");

var admin = "Custom group@" + testName;
group.setAdministrators([admin.toString()]);
var service = host.createInfrastructureClient().getFabricGroupService();
var id = service.create(group);

 


Attachments

Fabric Group Sample v2 get_app