Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 193504

Re: Start workflow in Parallel

$
0
0

So you are asking how to populate array of properties given a list of VC:VirtualMachine objects?

 

Should be something like

 

parameters = new Array(); // array of properties
for (var i = 0; i < numberOfVMs; i++) {  var wfInputProp = new Properties();  wfInputProp.put("nameOfInputParam", objVM[i]);  // ... put other inputs if needed by your custom wf   parameters.push(wfInputProp);
}

 

-Ilian


Viewing all articles
Browse latest Browse all 193504

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>