How to add a drools rules builder UI to my application ?

4,455 views
Skip to first unread message

tna...@gmail.com

unread,
Jul 18, 2016, 4:34:56 AM7/18/16
to Drools Usage
Hello,

I would like a HTML 5 UI to build/configure rules similar to the guided or limited decision table UIs shown an the drools.org homepage. Is there an API (or better a REST API) to do that ?

Thanks

Michael Anstis

unread,
Jul 18, 2016, 4:41:12 AM7/18/16
to Drools Usage
Sorry, do I understand you correctly: you're asking if there is a REST API to build HTML5 UI's?

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/93985ae7-fe60-4cd0-81e4-6260c3fa6ed9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

tna...@gmail.com

unread,
Jul 18, 2016, 5:04:14 AM7/18/16
to Drools Usage
Yes basically I know that I would like my application to use Drools as a rules engine. But the rules that should be evaluated can't be hardcoded, my application requires the user to define every rule. Therefore a need a user friendly interface to build these rules. A configuration using an excel file or an external web based rule builder is not acceptable, I need a perfect integration with my existing UI framework. So I'm looking for the best way to transform UI actions (add new dimension, add rule, add condition, remove rule...) into a persistable ruleset, basically a need a solution to build a rule editor backend. 

Michael Anstis

unread,
Jul 19, 2016, 5:59:57 AM7/19/16
to Drools Usage
OK, you'll be best writing your editor to generate DRL. 

The different Rule authoring screens in the Workbench (guided decision tables, guided templates, decision trees etc) all have class models you could re-use.. but 

(1) They may not match the UI you are writing

(2) They all ultimately output DRL anyway. 

If

On 18 July 2016 at 10:04, <tna...@gmail.com> wrote:
Yes basically I know that I would like my application to use Drools as a rules engine. But the rules that should be evaluated can't be hardcoded, my application requires the user to define every rule. Therefore a need a user friendly interface to build these rules. A configuration using an excel file or an external web based rule builder is not acceptable, I need a perfect integration with my existing UI framework. So I'm looking for the best way to transform UI actions (add new dimension, add rule, add condition, remove rule...) into a persistable ruleset, basically a need a solution to build a rule editor backend. 

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

hareesh kumar

unread,
Jul 19, 2016, 8:24:41 AM7/19/16
to Drools Usage
Hi @Michael,

Can i embed only guided decision table in my web UI using iframe??

Michael Anstis

unread,
Jul 19, 2016, 9:17:58 AM7/19/16
to Drools Usage
Yes, please see "standalone mode" in the User Guide.


Reply all
Reply to author
Forward
0 new messages