<div>For some reason I don't know, it is not possible to retrieve assets using their UUID in REST-API. Everything must be done using asset's name</div><div>If you want to get all the assets' uuid from all your packages in guvnor you could do something like:</div>
<div><ol><li>Get all the packages: <a href="http://localhost:8080/drools-guvnor/rest/packages">http://localhost:8080/drools-guvnor/rest/packages</a> This will return you a list of all the packages with their corresponding assets.</li>
<li>The problem is that the list returned in step1 doesn't contain the uuid of the assets, so you have to query each url returned as <asset> to get asset information. </li><li>Each individual asset will have its uuid under metadata/uuid attribute</li>
</ol><div>Best Regards,</div> </div><br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>
- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Wed, Jan 11, 2012 at 10:42 AM, srinivasasanda <span dir="ltr"><<a href="mailto:srinivasasanda@gmail.com">srinivasasanda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
How to get or retrieve Asset UUID's which are present in guvnor.I've<br>
referred Interacting with guvnor stand-alone editor in guvnor docs,but<br>
couldn't able to get the way to retrieve.Could you please suggest me REST<br>
API url or any other way to retrieve each Asset UUID.<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-to-get-Asset-UUID-tp3650138p3650138.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-get-Asset-UUID-tp3650138p3650138.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></span></blockquote></div><br>