Hello Michael, Yes, I'm using guvnor 5.3.0.Final. I upgraded from 5.1.0 since the restful API in that version did not include these API's. I'm open to moving to any stable release.
Thanks again, 2011/12/15 Michael Anstis <[email protected]> > I'd like to here from a few people.... > > You - are you using 5.3.0.Final or something newer (if only 5.3.0.Final > then Geoffrey's possible changes below should not matter). > > Geoffrey de Smet - who has been making changes in the way assets are > returned from the REST API recently. > > Nicolas Heron - who has been doing exactly what you are asking for some > time. > > Jervis Liu is the original REST API developer, who might also have a > clearer insight. > > What you require should be possible, but I defer to those above who have > more knowledge. > > > 2011/12/15 Mariano Gonzalez <[email protected]> > >> Hello Michael, >> >> Thank you for your answer. Maybe I should have been more specific. What I >> need is to be able to: >> >> >> - Communicate with guvnor and obtain some kind of object >> representation of a package containing an asset that has been created >> using >> decision tables >> - Modify the state of this object representation >> - Submit the changes back to guvnor and have the rule change >> accordingly >> >> >> This is pretty much what is described in the source examples of >> http://docs.jboss.org/drools/release/5.3.0.Final/drools-guvnor-docs/html/ch09.html#d0e2735 >> >> Do you know how can I do this? >> >> Thanks, >> >> >> 2011/12/15 Michael Anstis <[email protected]> >> >>> Populate it from what? >>> >>> The obvious answer would be to use GuidedDecisionTable52 (and related >>> classes) API direct, but that's not what I suppose you are looking for? >>> >>> There was some debate (on IRC) recently whether /source should return >>> DRL or something else. >>> >>> @Geoffrey (de Smet), did you change anything recently that would affect >>> what was returned? >>> >>> I suspect Jervis's example *used to* work. >>> >>> >>> On 15 December 2011 15:27, gonzalez.mariano < >>> [email protected]> wrote: >>> >>>> Hello all, >>>> >>>> I've seen the following example from the guvnor 5.3.0 rest api >>>> documentation: >>>> >>>> WebClient client = WebClient.create("http://127.0.0.1:8080/"); >>>> String >>>> >>>> content=client.path("guvnor-webapp-${project.version}/rest/packages/essaiRest/assets/tab2/source").accept("text/plain").get(String.class); >>>> >>>> GuidedDecisionTable52 dt = >>>> GuidedDTXMLPersistence.getInstance().unmarshal(content); >>>> >>>> >>>> I'm trying this locally but it doesn't work because the source that >>>> guvnor >>>> is returning is a plain DRL text file while the GuidedDTXMLPersistence >>>> is >>>> expecting something in XML format. I also took a look at >>>> GuidedDTDRLPersistence but it does not support the unmarshal operation. >>>> >>>> Does anybody knows how can I populate a GuidedDecisionTable52 instance >>>> using guvnor's rest API (or any API whatsoever?) >>>> >>>> Thanks, >>>> >>>> -- >>>> View this message in context: >>>> http://drools.46999.n3.nabble.com/Get-GuidedDecisionTable-from-Guvnor-tp3588937p3588937.html >>>> Sent from the Drools: User forum mailing list archive at Nabble.com. >>>> _______________________________________________ >>>> rules-users mailing list >>>> [email protected] >>>> https://lists.jboss.org/mailman/listinfo/rules-users >>>> >>> >>> >>> _______________________________________________ >>> rules-users mailing list >>> [email protected] >>> https://lists.jboss.org/mailman/listinfo/rules-users >>> >>> >> >> _______________________________________________ >> rules-users mailing list >> [email protected] >> https://lists.jboss.org/mailman/listinfo/rules-users >> >> > > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users > >
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
