rules for equal / not equal

507 views
Skip to first unread message

Michel Michaels

unread,
Nov 17, 2015, 2:42:50 AM11/17/15
to Drools Setup
Hi,

we have several decision tables in form like in the attachment. They should be used with Drools.

Questions:

1) Is it   possible to use in this form ?  (most probably no)
2) If not:

a) Is it possible to use  only logical expressions (Object1.Attribute3 = 7) and check if the value of the logical expression is TRUE / FALSE ?
b) if not, how to formulate the comparison  Object1.Attribute3 not equal 7 ?

Thanks a lot in advance,

Michel







capture.png

Michael Anstis

unread,
Nov 17, 2015, 4:07:18 AM11/17/15
to drools...@googlegroups.com
1) Yes and no. No, you cannot use it "out of the box". Yes you can implement your own RuleSheetListener that handles your XLS format. See here for the default implementation.

2) Assuming you don't want to write your own RuleSheetListener look at Drools XLS Decision Table format. You can optionally put operators in the column definition.

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@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-setup/5dda28cf-e139-4bdb-a975-3be42ef1b8d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michel Michaels

unread,
Nov 18, 2015, 3:14:54 AM11/18/15
to Drools Setup
Thanks a lot for your effort !
Reply all
Reply to author
Forward
0 new messages