1

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?

gammay
  • 5,957
  • 7
  • 32
  • 51

1 Answers1

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

http://docs.jboss.org/drools/release/6.2.0.CR1/drools-docs/html/wb.Workbench.html#wb.systemProperties

Please note :

  1. default host is localhost so you yoou need to change this with

    org.uberfire.nio.git.ssh.host

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

Community
  • 1
  • 1
skay
  • 1,681
  • 1
  • 14
  • 13
  • Take a look at this http://stackoverflow.com/questions/30378587/compile-drools-guided-decision-table-into-rules – thisdotnull Aug 11 '16 at 14:52