Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 180329

Action unable to return value if input is dynamic type

$
0
0

I am attempting to return a string value to a form based on an input of a dynamic type.  I am feeding the dynamic type value to an action through a data binding on the presentation layer within a vRO workflow.  When I do not have a value selected, the form returns the expected "no animal selected" text value.  The moment I choose a dynamic type object, the string value is cleared, and no additional text is returned.

 

I have ran this action from a workflow that did not call the value back to the form, and the expected Elephant name is pulled back without issue.  I have also tried this action with just returning text values in both cases, and still get the same results as before.  The moment a dynamic type value is selected, the action seems to just simply stop working.

 

For giggles, I decided to use the example  A Primer on vRealize Orchestrator Dynamic Types – vBombarded to create the dynamic types to use for testing purposes.  Note, I have other dynamic types objects setup, but wanted to make sure it wasn't something I had wrong in the way they were built, so I leveraged the above example.

 

Workflow and actions being ran from vRO 7.5.

 

The action is setup as follows:

 

input -

animal : DynamicTypes:Zoo.Elephant

 

code:

if(animal){

     return animal.Name;

}else{

     return "no animal selected";

}

 

The workflow is setup as follows:

input -

(DynamicTypes:Zoo.Elephant) animal

(string) externalValue

     presentation layer has data binding set on the input string "externalValue" calling the action listed above with input bound as input #animal


Viewing all articles
Browse latest Browse all 180329

Trending Articles



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