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.<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">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 class="HOEnZb"><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">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>