http://blog.athico.com/2008/07/new-drools-logos.html
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Yes i know this. I've tried to use activationCancelled method to
discover when a rule isn't more true but it doesn't work. The code was
public static class FiredRulesListener extends
DefaultAgendaEventListener static class FiredRulesListener extends
DefaultAgendaEventListener
{
List firedRules =
As an update, MVEL author fixed this and will do an MVEL release soon.
When he does, we will test here and let you know, but you should be able to
simply replace MVEL jar and it will work.
[]s
Edson
2008/7/29 Edson Tirelli <[EMAIL PROTECTED]>
>
>Hi Thomas and all,
>
>Drools d
thomas kukofka wrote:
Hello,
I get the following Nullpointer exception when building the package:
Looks like a bug, please opn a JIRA with a test case.
java.lang.NullPointerException
at
org.drools.rule.AbstractCompositeRestriction.getRequiredDeclarations(AbstractCompositeRestriction.java
Hello,
I have a Hashmap hm as Input and want to execute the rule
for each key respectively value.
when
hm: HashMap()
value: Number() from hm.values()
key: String() from hm.keySet()
then ...
But unfortunately it doesn't work like this. Any ideas?
Regards
Thomas
__
Hello,
I get the following Nullpointer exception when building the package:
java.lang.NullPointerException
at
org.drools.rule.AbstractCompositeRestriction.getRequiredDeclarations(AbstractCompositeRestriction.java:29)
at
org.drools.rule.MultiRestrictionFieldConstraint.getRequiredDeclaratio
Thanks everyone for their answers. Apologies for not providing more details,
but yes I am using Stateful Session and I also took care to call dispose
once I am done with it.
By the way, I am not really looking for memory leakage, a project this size
with many users will have people screaming left
If you have each character in a different attribute, you can use "in" and
"not in" to list the valid/invalid characters:
a : Abbreviation( pos1 == 'A', pos2 in ('-','D','H'), pos3 == '-',
pos4 in ('O', 'R', 'U', 'L') )
a : Abbreviation( pos1 == 'A', pos2 not in ('-','D','H'), pos3 !
Sorry I replied to the wrong message, doh! So here it is again.
I've thought about some callback mechanism that is executed when a rule
is no longer true, the problem I have is which variable changed to make
the rule no longer true and how do I expose the bound variables to the
user, especiall
For Drools 4.0.x we eventually run profiling tools to make sure we got
not leak. A couple were found and fixed in the past and we are not aware of
any leak in 4.0.7.
It is very important though to make sure that if you are using stateful
sessions, you call dispose() on the session after usi
The same interface you are using (AgendaEventListener) has 2 methods for
activations created and canceled:
void activationCreated(ActivationCreatedEvent event,
WorkingMemory workingMemory);
void activationCancelled(ActivationCancelledEvent event,
thanks a lot
2008/7/29, Ingomar Otter <[EMAIL PROTECTED]>:
>
> There is a mechanism called truth maintenance ensuring for example
>
> A -> B
> B -> C
>
> that C becomes false when it's premise (B) becomes false as well.
> What it basically does it track the LHS side of the rule and undoes
> assert
What about:
Number( intValue > 1 ) from accumulate(
LabEvent( eval( dateWithinLastMonths(effectiveTime,1)), results :
laboratoryResult ) and
LabResult( value > 1.8 ) from results,
count( 1 ) )
Accumulate supports multiple patterns and has the count() function.
T
I've thought about some callback mechanism that is executed when a rule
is no longer true, the problem I have is which variable changed to make
the rule no longer true and how do I expose the bound variables to the
user, especially if the rule is no longer true due to a retraction, and
ofcours
Hi Thomas and all,
Drools delegates most of the complex expression evaluation to MVEL and it
seems that it currently does not support variables as indexes in the
map/collection simplified syntax. So, it will not work for now.
The good news is that we work very close with MVEL's author and
There is a mechanism called truth maintenance ensuring for example
A -> B
B -> C
that C becomes false when it's premise (B) becomes false as well.
What it basically does it track the LHS side of the rule and undoes
asserted facts when there are no more "facts" to support it (activate
the rul
i'm sorry i'm a new drools user.. Can you try to be a little more clear?
thanks..
2008/7/29, Ingomar Otter <[EMAIL PROTECTED]>:
>
> Use logicals.
>
> Am 29.07.2008 um 11:20 schrieb Claudio Rainoldi:
>
> Hi everyone,
>> isn'it there a way to find when a rule isn't more active.
>> For example if i
Hi all,
Our object deals with the clinical domain. We have a class LabEvent that
represents a visit in the laboratory. Each event is associated (using the
laboratoryResult association) with one or more LabResult objects (children),
each represents the results of a particular test.
in the rule LH
Use logicals.
Am 29.07.2008 um 11:20 schrieb Claudio Rainoldi:
Hi everyone,
isn'it there a way to find when a rule isn't more active.
For example if i have this rule:
rule "light 2 on"
dialect "java"
when
Light (name=="0/0/2", actualvalue=="1");
then
System.out.println("luce 2 on");
end
whe
Hi everyone,
isn'it there a way to find when a rule isn't more active.
For example if i have this rule:
rule "light 2 on"
dialect "java"
when
Light (name=="0/0/2", actualvalue=="1");
then
System.out.println("luce 2 on");
end
when someone turn on the light 2 i discover that the rule is fired usi
We used two approaches to double check results.
At first we used an approach similiar to what you haved described.
Please note that (depneding on platfom) freeMemory is not byte-
exact). Wo you won't see little changes.
Also, if you were using stateless sessions the result you have seen
may
Do you use a stateful session?
Are your measurements before and after you've inserted facts into
working memory?
Would be helpful to the group to post your use-case source?
Thanks,
Mike
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf O
22 matches
Mail list logo