Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Array/CompositeType

$
0
0

Hi,

I try to use the workflow "Run script in VM guest".

One of the parameter is ScriptVariables of type: Array/CompositeType(stringToReplace:string,replacingString:string)

 

I add a scriptable task which add to this array an object of these two strings.

However, when I execute this main workflow, it failed in the scriptable task with the error :

cannot call method "push" of null

 

This is part of the scriptable task:

var wfInputProp = new Properties();

wfInputProp.put("stringToReplace", "HOSTNAME");

wfInputProp.put("replacingString", fullComputerName);

 

scriptVariables.push(wfInputProp);

 

Thanks!


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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