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

Type to Scripting object mapping in VCO

$
0
0

Hi All,

 

I am trying to build my own plugin. I have exposed my java objects into javascript api of VCO. (http://communities.vmware.com/message/2217337#2217337)

 

But I suppose the way I have defined finders, the types are not associated with scripting objects.

Below are the steps I followed, please let me know if I missed anything:-

 

1. Defined finders in vso.xml for every exposed object in the format:-

 

  <finder datasource="test-datasource" type="aObject" script-name="TESTaObject" java-class="com.test.aObject">
   <relations/>

  </finder>

 

2. Defined scripting objects in vso.xml for every exposed  object in the format:-

 

  <object java-class="com.test.aObject" script-name="TESTaObject">

   <description>this is a test object</description>

   <attributes/>

   <methods/>

  </object>

 

3. Defined Factory (and Adaptor classes) with find (and findAll functions) function, with returns a new instance of the java-class object.

 

 

When I find the types in VCO in Search Api, then the types do not show the associated script objects in it. It shows FinderResult as the associated script object.

 

Please let me know if I am missing anything due to which I am not able to associate types with script objects.

 

Best Regards,

Sumit Tyagi.


Viewing all articles
Browse latest Browse all 176760

Trending Articles



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