While there are ways to add DRL rules programmatically, could not find if it is possible to add "Guided Decision Table" programmatically. These rules are visible in WebDAV as gdst files are just XML. Are there API to create these rules without the guvnor UI, upload to guvnor using WebDAV or REST and use the UI later to make changes?
Asked
Active
Viewed 1,798 times
1
-
Did you ever figure this out yet? I need to do the same thing. – Rocky Pulley Oct 11 '12 at 23:58
-
1No luck. I posted in the drools forum too - no response. One way I could see was the gdst is XML. So possibly we can create the file and upload with REST or WebDAV. But need the XML definition. – gammay Oct 12 '12 at 05:43
-
thanks, I'll let you know if I find something. – Rocky Pulley Oct 12 '12 at 18:10
-
same here .. i need to do the same thing. :) – Sarde Sep 12 '14 at 10:45
-
Take a look at this -http://stackoverflow.com/questions/30378587/compile-drools-guided-decision-table-into-rules – thisdotnull Aug 11 '16 at 14:51
1 Answers
0
You can add/move/update gdst via Drools WB internal GIT :) Fisrt of all, you need have a look to the documentation about configuration/properties / and stay on WB 6.2.0-beta2 (don't go to beta3 or CR1).
Please note :
default host is localhost so you yoou need to change this with
org.uberfire.nio.git.ssh.host
move default git dir, M2 repo to some exteral path to Jboss AS.
Finally, you'll notice that only 'edited' files are shered through GIT / not the 'generated ones. So if you are focused on .gdst, you'll not be able to retrieve/edit the generated .drl you can see in WB.
Good luck :)
-
Take a look at this http://stackoverflow.com/questions/30378587/compile-drools-guided-decision-table-into-rules – thisdotnull Aug 11 '16 at 14:52