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
