Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

vCACCAFEEntitiesFinder returns different type of data when called by vRA

$
0
0

Good evening,

 

I´ve created a workflow which is called during the vRA Machine Provisioned state.

 

The workflow starts with:

 

var resources = vCACCAFEEntitiesFinder.findCatalogResources(vRAHost);

 

vRAHost is a vCACCAFE:VCACHost type.

 

1) If it runs directly from Orchestrator, it works.

2) If it runs through vRA call, it does not work.

 

A System.log(resources) showed me this:

 

1) System.log when executed from Orchestrator (I see what is expected):

          DynamicWrapper (Instance) : [vCACCAFECatalogResource]-[class com.vmware.vcac.catalog.rest.stubs.v7_0.CatalogResource] -- VALUE : com.vmware.vcac.catalog.rest.stubs.v7_0.CatalogResource@86163617,DynamicWrapper (Instance) : [vCACCAFECatalogResource]-[class com.vmware.vcac.catalog.rest.stubs.v7_0.CatalogResource] -- VALUE : com.vmware.vcac.catalog.rest.stubs.v7_0.CatalogResource@153f9124

 

2) System.log when called by vRA:

[Formatar disco de VM do vRA/{com.mycompany/getVraDiskInfo} (11/11/16 00:44:24)]


That is the name of the workflow, the action and the execution timestamp. It appears to be the workflow token information. I see this and I go all "What the...?"


Just as an additional test, I re-run the failed token, the INPUTs are filled in with what was provided by vRA and IT WORKS JUST FINE!!!


I tried running this piece of code through an action, Scripted Task and the behavior is always the same.


Has anyone seen anything like it before? I just can´t grasp what is going on here.

 

Thank you very much.


Viewing all articles
Browse latest Browse all 9859

Trending Articles



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