[rules-users] Get GuidedDecisionTable from Guvnor

Mariano Gonzalez mariano.l.gonzalez at gmail.com
Thu Dec 15 13:48:19 EST 2011


Ok, thank you all for the help.

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 :)

Thanks,

2011/12/15 Vincent Legendre <vincent.legendre at eurodecision.com>

>  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).
>
> 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.
>
> But this doc do use "/source". Is that a doc mistake ?
>
>
> Le 15/12/2011 18:41, Mariano Gonzalez a écrit :
>
> according to
> http://docs.jboss.org/drools/release/5.3.0.Final/drools-guvnor-docs/html/ch09.html#d0e2735the functionality already exists
>
> 2011/12/15 Vincent Legendre <vincent.legendre at eurodecision.com>
>
>>  ok, so there is another initial problem : Excel spreadsheets are not
>> converted to guided tables ...
>> (unless a new feature that I don't know about).
>>
>> Le 15/12/2011 18:28, Mariano Gonzalez a écrit :
>>
>> Thank you all for your help!
>>
>>  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.
>>
>>  Regards,
>>
>> 2011/12/15 Michael Anstis <michael.anstis at gmail.com>
>>
>>> Sorry Vincent, nothing personal :)
>>>
>>> Obviously everyone is free to assist in the community :)
>>>
>>> 2011/12/15 Vincent Legendre <vincent.legendre at eurodecision.com>
>>>
>>>>   Hi all,
>>>>
>>>> I'm not listed in people you would like to answer, but there is
>>>> something that could be the main problem here.
>>>>
>>>> In your URL, you use "source", so it is normal that you get the
>>>> corresponding DRL in response :
>>>>
>>>> String
>>>>
>>>> content=client.path("guvnor-webapp-${project.version}/rest/packages/essaiRest/assets/tab2/
>>>> *source*").accept("text/plain").get(String.class);
>>>>
>>>>  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
>>>> http://blog.athico.com/2011/03/atompub-interface-for-guvnor.html, 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".
>>>>
>>>>
>>>>
>>>>  _______________________________________________
>>>> rules-users mailing list
>>>> rules-users at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>>
>>>>
>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>
>>
>> _______________________________________________
>> rules-users mailing listrules-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
>
> _______________________________________________
> rules-users mailing listrules-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> --
> Vincent LEGENDRE
> *Consultant Sénior*
>
>  EURODECISION****
> 9A rue de la Porte de Buc 78000 VERSAILLES
> Tél. : +33 (0)1 39 07 12 40
> Direct : +33 (0)1 39 07 26 16
> www.eurodecision.com
>  [image: EURODECISION] <http://www.eurodecision.com/>
> <http://www.eurodecision.com/>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111215/e7620aca/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 3345 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20111215/e7620aca/attachment.gif 


More information about the rules-users mailing list