DRL & Year of Date
by Saleem Lakhani
Hi,
What is the best way of writing such a rule in drools 4.0 without using
eval ? In the following rule 'date' is a global variable for my own
dateUtil class and {year} is the variable I will pass.
brotherDOB != null, $brotherDOB : brotherDOB
eval(boy.getYearBorn() < (date.yearOfDate($brotherDOB)-{years}))
Saleem Lakhani
17 years, 3 months
dialect meaning
by hypnosat7
Hi,
when the dialect for a package config is java, that's mean that in the
rule LHS we can't write something like this :
p:Person(age > 18)
because this is not supported by java, am I right ?
In fact my problem is the dialect concept, I don't understand this :(
--
View this message in context: http://www.nabble.com/dialect-meaning-tf4251371.html#a12099881
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 3 months
Guided DRL Editor
by kissro@lidp.com
Hi, I'm new to drools and I was hoping to use the new gui editor as an
"easy" way to create rules. Is there any documentation anywhere
explaining how to use the new DRL editor or can someone tell me how to
get started using it to create rules?
Thanks,
Rod
17 years, 3 months
Accessing the site?
by Robert Crawford
I've been trying to get to the project site, to check the manual and
download the latest release, but can't access it. I always get sent
to a 404 page with an "about the developer" section. Interesting, but
not what I was looking for.
Any ideas?
--
Robert Crawford
crawford(a)kloognome.com
17 years, 3 months
Minor Issue in writing DSL
by Saleem Lakhani
Hi,
If I had a rule written in DSL using Drools 3.0 like;
1. [when] when1=r : ObjectA( )
2. [when] when2=eval(r.isApplication() || r.isBanker())
There are no attributes in class Object with name application and banker
but there are methods in ObjectA with names isApplication() & isBanker()
which does some work and return Boolean based on some facts.
What is the correct way of writing the same rule using Drools 4.0 ?
Also, if the above attributes were present in ObjectA what would have
been the best way to write it in DSL using Drools 4.0
Thanks,
17 years, 3 months
Unable to return Declaration for identifier
by Saleem Lakhani
Thanks Edson. That helped alot.
Can't we execute something simple like: ObjectA(units != families)
When both units & families are defined as int in ObjectA with their
public get and set methods. This is the exception I am receiving.
org.drools.rule.InvalidRulePackage: Unable to return Declaration for
identifier 'families' : [Rule name=Rule6, agendaGroup=Rating,
salience=0, no-loop=false] Its even showing correctly in drl editor. If
I swap the positions of units & families then the same exception is
thrown for 'units'.
regards,
saleem
17 years, 3 months
pdf manual
by Krishnan
Hi,
If anyone has a copy of the latest 4.0 GA
release manual in pdf format, can you please share it with the
group.
thanks,
Krishnan.
--
Sivaramakrishna Iyer Krishnan (Anand)
Never assume the obvious is true.
- William Safire
17 years, 3 months