I want to write a rule that says "Find all long-eared dogs that do not have
short, black hair". This seems like the simple way to do it:
collect( Dog( ears=="long", not (hair=="short" && color=="black") )
But that doesn't parse. Some digging through the archives unearthed a mention
of De Morgan
I am not sure if anyone else is having this issue or not, but I can not do
in-line attribute compares to null.
For instance.
when
ObjectA(
objectBKey == null
)
then
objectBKey is a String in this case.
This doesn't evaluate properly as the rule was firing even though the slot
re Engineer
IntelliData, Inc
3173 s. uravan way
aurora, colorado 80013
T: 720.524.4864
[EMAIL PROTECTED]
____
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
there is a regression in the latest 4.0.6 code base. with 4.0.2 the following
rule would fail with an exception because i have defined a java "short" type
for the variable "vshort" and the value "99" is too large for a short
type. but now this rule will execute without exceptions. is it
Hi Brian,
>> The goal here is to monitor the directory above for any changes to
the files or additional files that show up. Any help would be
appreciated.
If you want to monitor a local dir try using the "dir" property instead
of "url". In your case you would then have something like:
Ok. I put that in but I'm having trouble getting it to recognize the uri I'm
passing in. I'm passing in
"file:///c:/svn/code/sleuth/src/net/intellidata/sleuth/description/rules/"
and I'm getting the following exception:
RuleAgent(default) INFO (Mon Apr 07 13:14:40 MDT 2008): Configuring with
newI
Thanks a lot, I will try this.
From: [EMAIL PROTECTED]
To: rules-users@lists.jboss.org
Subject: RE: [rules-users] decision tables and attributes as parameters in
function calls
Date: Mon, 7 Apr 2008 14:31:49 +
Jonathan,
The decision table mandates atleast one condition. I ha
Jonathan,
The decision table mandates atleast one condition. I have faced this problem
before. Assuming you always have some +ve value for cheese.price, do you want
to try following?
RuleSet
Cheese rules
Import
com.xxx.entity.Cheese
Variables
Sequential
TRUE
RuleTable
Hi there,
is there a way to "reset" the working memory so that all the rules are
run again when fireAllRules() is called?
I know that normaly rules will only be run again when there was a change
and the fact was updated. but in my case I like to run all rules again
in some situations without
hi,
I have no problem for this kind of rule :
rule "Primitive support"
when
$c : Cheese( price < 10 )
then
$c.setPrice( 10 )
end
but I would like to know what is the decision table for this small rule
rule "Primitive support"
when
If you cannot combine the rules into new rules I would suggest looking at
rule flow.
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chong Minsk Goh
Sent: 04 April 2008 10:57
To: rules-users@lists.jboss.org
Subject: [rules-users] Rules File Design Consideration
Hi,
A
All facts are matched against all patterns upon insertion into working
memory. The (Drools) techniques you describe affect the execution of
activations (i.e. RHS) not pattern matching.
I think (but it's a vague recollection) however that the sequence of
patterns has an affect (so you want most re
Each fact inserted into working memory will be checked against each rule
pattern.
Java
wm.insert(pto1);
wm.insert(pto2);
DRL
rule "smurf"
when
$p : PersonTO( )
then
System.out.println("Property = " + $p.getSomeProperty());
end
Output
Property = pto1 property
Prop
Hi Markus,
Thanks a lot.. Now I am able to fire the rules dynamically by fetching
rules from Database.
I have modified the code as follows:
While filling the VO's iteself, I am concatinating the .* to the field
fileMask, and the drl code.
And the .drl is as follows:
rule "Process A
14 matches
Mail list logo