XLS decision tables are not converted into GuidedDecisionTable52 models, only as the class name suggests "guided" decision tables authored in Guvnor. I am however working on providing BRL columns in the guided decision table (which will include free-format DRL) which is a pre-cursor for round-tripping between XLS->Guvnor guided dtables->XLS. <br>
<br><div class="gmail_quote">2011/12/15 Mariano Gonzalez <span dir="ltr"><<a href="mailto:mariano.l.gonzalez@gmail.com">mariano.l.gonzalez@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ok, thank you all for the help.<div><br></div><div>I think it might be an error in the doc. I'm currently downloading/uploading the spreadsheet using the webdav interface and was planning on parsing the excel with POI when I ran into that doc and my understanding of it is that it was doing what I need. Looks like there's no alternative but doing my own work :)</div>
<div><br></div><div>Thanks,</div><div class="HOEnZb"><div class="h5"><div><br><div class="gmail_quote">2011/12/15 Vincent Legendre <span dir="ltr"><<a href="mailto:vincent.legendre@eurodecision.com" target="_blank">vincent.legendre@eurodecision.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
I can't see anything telling that XLS tables are converted to guided
tables in this chapter ... and I am not sure of how it could be done
safely (semantics are not really equivalent).<br>
<br>
To me, the only thing you can do with an uploaded XLS, is to
download it back (may be using "/binary") and save the response to a
file) and then manipulate it with something like POI ou JXLS ...
before re-PUTting it in Guvnor.<br>
<br>
But this doc do use "/source". Is that a doc mistake ? <br>
<br>
<br>
Le 15/12/2011 18:41, Mariano Gonzalez a écrit :
<div><div><blockquote type="cite">according to <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>
the functionality already exists<br>
<br>
<div class="gmail_quote">2011/12/15 Vincent Legendre <span dir="ltr"><<a href="mailto:vincent.legendre@eurodecision.com" target="_blank">vincent.legendre@eurodecision.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> ok, so there is another
initial problem : Excel spreadsheets are not converted to
guided tables ...<br>
(unless a new feature that I don't know about).<br>
<br>
Le 15/12/2011 18:28, Mariano Gonzalez a écrit :
<div>
<div>
<blockquote type="cite">Thank you all for your help!
<div><br>
</div>
<div>I followed Vincent's link and as he says,
invoking any of those rest apis returns a valid xml
instead of the DRL. The problem is that the XML
describes the metadata of the package or the asset
itself but it doesn't provide information on the
excel spreadsheet that was used to create the
decision table. Therefore, the parser can't
unmarshall that XML into a valid
GuidedDecisionTable52 instance.</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
<div class="gmail_quote">2011/12/15 Michael Anstis <span dir="ltr"><<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Sorry Vincent, nothing
personal :)<br>
<br>
Obviously everyone is free to assist in the
community :)<br>
<br>
<div class="gmail_quote">2011/12/15 Vincent
Legendre <span dir="ltr"><<a href="mailto:vincent.legendre@eurodecision.com" target="_blank">vincent.legendre@eurodecision.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>
<div bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
I'm not listed in people you would
like to answer, but there is something
that could be the main problem here.<br>
<br>
In your URL, you use "source", so it
is normal that you get the
corresponding DRL in response :
<div><br>
String<br>
content=client.path("guvnor-webapp-${project.version}/rest/packages/essaiRest/assets/tab2/<big><big><b>source</b></big></big>").accept("text/plain").get(String.class);<br>
<br>
</div>
If you want the XML, ie the asset XML
representation in the repository,
don't use "source". I am not very sure
of the correct URL to use, but
according to <a href="http://blog.athico.com/2011/03/atompub-interface-for-guvnor.html" target="_blank">http://blog.athico.com/2011/03/atompub-interface-for-guvnor.html</a>,
it should be the same, without
"/source" at end, and then you should
get the XML in the response. May be
you should use "Application/XML" in
the accept instead of "text/plain".<br>
<br>
<br>
</div>
<br>
</div>
</div>
<div>_______________________________________________<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>
</div>
</blockquote>
</div>
<br>
<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>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
rules-users mailing list
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</div>
</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>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
rules-users mailing list
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
<br>
</div></div><span><font color="#888888"><div>-- <br>
<span style="font-size:13.5pt;font-family:"Arial","sans-serif";color:#15185a">Vincent
LEGENDRE</span><br>
<i><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#15185a">Consultant
Sénior</span></i><br>
<span style="font-size:4.5pt"> <br>
</span>
<span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#15185a">EURODECISION<u></u><u></u></span><br>
<span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#15185a">9A
rue de la Porte de Buc 78000 VERSAILLES<br>
Tél. : <a href="tel:%2B33%20%280%291%2039%2007%2012%2040" value="+33139071240" target="_blank">+33 (0)1 39 07 12 40</a><br>
Direct : <a href="tel:%2B33%20%280%291%2039%2007%2026%2016" value="+33139072616" target="_blank">+33 (0)1 39 07 26 16</a><br>
<a href="http://www.eurodecision.com" target="_blank">www.eurodecision.com</a></span><br>
<a href="http://www.eurodecision.com/" target="_blank"><span> <img src="cid:part1.08080908.08090006@eurodecision.com" alt="EURODECISION" border="no"></span></a><a href="http://www.eurodecision.com/" target="_blank"><span> </span></a>
</div>
</font></span></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>