Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

How to display a scripting-object in workflow presentation?

$
0
0

In my workflow I would like to present to the user a list made up of a scipting-object from my plugin, lets call it "MyObject", by the object name.

 

At the moment, for the Presentation property of my Workflow:

  • I have created an Input variable of type "String",
  • set it to "Predefined list of answers"
    • bind it to an action that iterates through my list of MyObjects and puts the names of them into an Array. This Array of Strings is then presented to the user.

This works fine.

 

What I'd rather do is just pass the list of objects straight to Presentation. But when I set this up:

  • make an input variable of type "MyObject",
  • set it to "Predefined list of elements"
    • bind it to an action which returns an Array of "MyObject"

No list is presented to the user, only a clickable "Not Set" text that does nothing.

Although strangely when I run this Workflow in vSphere, a list is presented, but the list is presented as many "[object Object]"s.

 

How do I make my scriptable-object appear nicely (or at all) in the presentation dropdown without having to iterate through it to extract the names of them? (in both vRO and vSphere)


Viewing all articles
Browse latest Browse all 176483

Trending Articles



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