VMware Cloud Community
fabrice38
Contributor
Contributor

Passing array[0] or properties.get("key1") to nested workflow input

Hello there,

sorry if the question has already been asked, but I don't find the answer...

Can we give to nested workflows input (a string for example) an extract of an array of string or properties string item ? Like array[0] or properties.get("key1") ?

Seems vRO 8 input only list strings variables, so right now I'm extracting the variable in a scriptable task, but it makes me create a variable for little value...

Thanks for any inputs 🙂

0 Kudos
3 Replies
imtrinity94
Enthusiast
Enthusiast

I don't think vRO lets you do this. Best way would be to parse the variable in a scriptable element and save the desired array value into another variable and pass it to Nested WF just as you said.


Mayank Goyal
vRO Engineer
https://www.linkedin.com/in/mayankgoyal1994/
https://cloudblogger.co.in/
0 Kudos
fabrice38
Contributor
Contributor

We could save a lot of useless variables if this functionality existed....

For me less variables makes a code easier to maintain (if arrays and properties have descriptive names of course)

0 Kudos
imtrinity94
Enthusiast
Enthusiast

true that.


Mayank Goyal
vRO Engineer
https://www.linkedin.com/in/mayankgoyal1994/
https://cloudblogger.co.in/
Tags (1)
0 Kudos