I&#39;d like to here from a few people....<br><br>You - are you using 5.3.0.Final or something newer (if only 5.3.0.Final then Geoffrey&#39;s possible changes below should not matter).<br><br>Geoffrey de Smet - who has been making changes in the way assets are returned from the REST API recently.<br>
<br>Nicolas Heron - who has been doing exactly what you are asking for some time.<br><br>Jervis Liu is the original REST API developer, who might also have a clearer insight.<br><br>What you require should be possible, but I defer to those above who have more knowledge.<br>
<br><div class="gmail_quote">2011/12/15 Mariano Gonzalez <span dir="ltr">&lt;<a href="mailto:mariano.l.gonzalez@gmail.com">mariano.l.gonzalez@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Michael,<div><br></div><div>Thank you for your answer. Maybe I should have been more specific. What I need is to be able to:</div><div><br></div><div><ul><li>Communicate with guvnor and obtain some kind of object representation of a package containing an asset that has been created using decision tables</li>

<li>Modify the state of this object representation</li><li>Submit the changes back to guvnor and have the rule change accordingly</li></ul></div><div><br></div><div>This is pretty much what is described in the source examples of <a href="http://docs.jboss.org/drools/release/5.3.0.Final/drools-guvnor-docs/html/ch09.html#d0e2735" target="_blank">http://docs.jboss.org/drools/release/5.3.0.Final/drools-guvnor-docs/html/ch09.html#d0e2735</a></div>

<div><br></div><div>Do you know how can I do this?</div><div><br></div><div>Thanks,<div><div class="h5"><br><br><div class="gmail_quote">2011/12/15 Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Populate it from what?<br><br>The obvious answer would be to use GuidedDecisionTable52 (and related classes) API direct, but that&#39;s not what I suppose you are looking for?<br>


<br>There was some debate (on IRC) recently whether /source should return DRL or something else. <br>
<br>@Geoffrey (de Smet), did you change anything recently that would affect what was returned?<br><br>I suspect Jervis&#39;s example *used to* work.<div><div><br><br><div class="gmail_quote">On 15 December 2011 15:27, gonzalez.mariano <span dir="ltr">&lt;<a href="mailto:mariano.l.gonzalez@gmail.com" target="_blank">mariano.l.gonzalez@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
<br>
I&#39;ve seen the following example from the guvnor 5.3.0 rest api<br>
documentation:<br>
<br>
WebClient client = WebClient.create(&quot;<a href="http://127.0.0.1:8080/" target="_blank">http://127.0.0.1:8080/</a>&quot;);<br>
String<br>
content=client.path(&quot;guvnor-webapp-${project.version}/rest/packages/essaiRest/assets/tab2/source&quot;).accept(&quot;text/plain&quot;).get(String.class);<br>
<br>
GuidedDecisionTable52 dt =<br>
GuidedDTXMLPersistence.getInstance().unmarshal(content);<br>
<br>
<br>
I&#39;m trying this locally but it doesn&#39;t work because the source that guvnor<br>
is returning is a plain DRL text file while the GuidedDTXMLPersistence is<br>
expecting something in XML format. I also took a look at<br>
GuidedDTDRLPersistence but it does not support the unmarshal operation.<br>
<br>
Does anybody knows how can I populate a GuidedDecisionTable52  instance<br>
using guvnor&#39;s rest API (or any API whatsoever?)<br>
<br>
Thanks,<br>
<span><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Get-GuidedDecisionTable-from-Guvnor-tp3588937p3588937.html" target="_blank">http://drools.46999.n3.nabble.com/Get-GuidedDecisionTable-from-Guvnor-tp3588937p3588937.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" target="_blank">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>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<br></blockquote></div><br></div></div></div>
<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>
<br></blockquote></div><br>