[rules-users] How to define keywords that represent objects(in facts) to be able to use in rules

san_drools pathasantosh at yahoo.co.in
Thu Aug 9 10:22:23 EDT 2012


Hello Laune, 
                 Yes, the Object and attribute names are meaningful but in
our case they are a bit lengthy and wanted to give rule author more
convinience in writing rules. 

                For example, when we need to write Object1($contactNo :
contactNumber && contacttype == "mobile") to get contact number and use it
further in rule, we will give a keyword "PersonMobileContact" to represent
the above line. So that, rule author simply uses this keyword. This is i
want in my requirement. 



--
View this message in context: http://drools.46999.n3.nabble.com/How-to-define-keywords-that-represent-objects-in-facts-to-be-able-to-use-in-rules-tp4019065p4019068.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list