Update a DRL file or Decision table using custom UI

673 views
Skip to first unread message

Swati maheshwari

unread,
Mar 7, 2015, 11:05:30 PM3/7/15
to drools...@googlegroups.com
Hello all,

Please mind the question. I am a newbie to Drools.
1. I have a DRL file generating from the excel decision table. I want to be able to add and delete rules from the file or excel from the custom UI. Is there a way to do it??
2. Can actions contain Java code. I need to create a new Object in Action and set hardcoded values to it from the rules. Is it possible?
I guess these questions must have been asked already, but I couldnt find any solution to this.

Many thanks

Michael Anstis

unread,
Mar 9, 2015, 6:19:07 AM3/9/15
to drools...@googlegroups.com
1) The best you can do is upload the XLS to KIE Workbench and elect to convert to a Guided Decision Table. However once converted you cannot, at present, convert back to XLS.

If you're using your own UI (you state "custom UI..") then it's entirely up to you how you want to handle your requirement.

2) The Action section can contain any Java you like. 

--
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/3327978e-aad8-4176-95ce-310a439a568b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Swati maheshwari

unread,
Mar 9, 2015, 12:34:30 PM3/9/15
to drools...@googlegroups.com
Thank you for the reply.

My requirement needed a JSON to be passed from excel to action (Each row containing the content of json). Is there a way to do it. 
The only examples I have seen or the cases I was trying, it looked like only String (and other types) is allowed.

Michael Anstis

unread,
Mar 9, 2015, 12:48:11 PM3/9/15
to drools...@googlegroups.com
"...String (and other types)..."

Erm... isn't JSON just a String? Even if your domain model encapsulates JSON as an object; isn't that an "other type"? Rules don't really care what types values are.

Swati maheshwari

unread,
Mar 9, 2015, 1:10:02 PM3/9/15
to drools...@googlegroups.com
Ohh oops...... was using JsonSimple instead of json.org

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/Ta88uoCPLwI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage...@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Swati Maheshwari 
MTech CSE I
IIT Roorkee, India

Reply all
Reply to author
Forward
0 new messages