VMware Cloud Community
atfrys
Hot Shot
Hot Shot
Jump to solution

How do I populate Array/CompositeType from a script task?

I want to be able to populate the Array/CompositeType with input params a user fills out.  Do any of you have sample code to do this?

Thank you

-Stephen

1 Solution

Accepted Solutions
atfrys
Hot Shot
Hot Shot
Jump to solution

Figured it out in case anyone else wants to know...

inputs = new Array();
var jsObj = { name: "provider-VirtualMachine.CPU.Count", value: "2"};
inputs.push(jsObj);

var jsObj1 = { name: "provider-Cafe.Shim.VirtualMachine.NumberOfInstances", value: "1"};
inputs.push(jsObj1);

  var jsObj2 = { name: "provider-VirtualMachine.Memory.Size", value: "8096"};
inputs.push(jsObj1);

View solution in original post

2 Replies
atfrys
Hot Shot
Hot Shot
Jump to solution

Figured it out in case anyone else wants to know...

inputs = new Array();
var jsObj = { name: "provider-VirtualMachine.CPU.Count", value: "2"};
inputs.push(jsObj);

var jsObj1 = { name: "provider-Cafe.Shim.VirtualMachine.NumberOfInstances", value: "1"};
inputs.push(jsObj1);

  var jsObj2 = { name: "provider-VirtualMachine.Memory.Size", value: "8096"};
inputs.push(jsObj1);

bsti
Enthusiast
Enthusiast
Jump to solution

Thank you for posting that.  I ran into the same issue.

Reply
0 Kudos