Re: [rules-users] Truth maintenance and RHS variables

2012-02-10 Thread juankera
99.n3.nabble.com/rules-users-Truth-maintenance-and-RHS-variables-tp3722632p3731857.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/

Re: [rules-users] Truth maintenance and RHS variables

2012-02-09 Thread juankera
// resource changes results in a new instance of the KnowledgeBase being built, // this cannot currently be set to false for incremental building/ So, why is this property changing the behaviour of the rules? -- View this message in context: http://drools.46999.

Re: [rules-users] Truth maintenance and RHS variables

2012-02-08 Thread Wolfgang Laun
t((RuleEvent) new StateEvent(item, state)); > ksession.fireAllRules(); > (...) > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/rules-users-Truth-maintenance-and-RHS-variables-tp3722632p3726783.html > Sent from the Drools: User forum mailing list arc

Re: [rules-users] Truth maintenance and RHS variables

2012-02-08 Thread juankera
session.insert((RuleEvent) new StateEvent(item, state)); ksession.fireAllRules(); ksession.insert((RuleEvent) new StateEvent(item, state)); ksession.fireAllRules(); (...) -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Truth-maintenance-and-RHS-variables-tp3722632p3726783.h

Re: [rules-users] Truth maintenance and RHS variables

2012-02-08 Thread Wolfgang Laun
ct?? Have i missed anything to register this declared fact? > > -- > View this message in context: > http://drools.46999.n3.nabble.com/rules-users-Truth-maintenance-and-RHS-variables-tp3722632p3726534.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > &g

Re: [rules-users] Truth maintenance and RHS variables

2012-02-08 Thread juankera
fact? -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Truth-maintenance-and-RHS-variables-tp3722632p3726534.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rul

Re: [rules-users] Truth maintenance and RHS variables

2012-02-08 Thread Wolfgang Laun
teEvent( $in: itemName ) > then > org.openhab.demo.Monitor m = new Monitor( $se, $in ); > insert( m ); > System.out.println( "yikes¡"); > end > > > rule "nothing for 1m" > when > $m: Monitor( $in: itemName ) > then > System.out.println( "not wor

Re: [rules-users] Truth maintenance and RHS variables

2012-02-08 Thread juankera
"); end rule "nothing for 1m" when $m: Monitor( $in: itemName ) then System.out.println( "not working: " + $in ); end -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Truth-maintenance-and-RHS-variables-tp3722632p3726201.html S

Re: [rules-users] Truth maintenance and RHS variables

2012-02-07 Thread Wolfgang Laun
"start monitoring" rule without problems. > And i've checked that it's fired. > > But rule "nothing for 1m" is not working, even with the most basic LHS > > rule "nothing for 1m" > when > $monitor : Monitor( ) > then > Sys

Re: [rules-users] Truth maintenance and RHS variables

2012-02-07 Thread juankera
red. But rule "nothing for 1m" is not working, even with the most basic LHS rule "nothing for 1m" when $monitor : Monitor( ) then System.out.println( ">>>>>>>>>>>>>>>>>>>>>>> not working: &

Re: [rules-users] Truth maintenance and RHS variables

2012-02-07 Thread Wolfgang Laun
Absence of facts (and events) is not a good foundation for rules, as you have discovered. Consider that the arrival of an event with some specific itemName is another fact, and you want to monitor the aging of that secondary fact, or cancel it as soon as yet another one arrives. rule "start monit

Re: [rules-users] Truth maintenance and RHS variables

2012-02-07 Thread juankera
Thanks -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Truth-maintenance-and-RHS-variables-tp3722632p3722724.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@

[rules-users] Truth maintenance and RHS variables

2012-02-07 Thread Juanker Atina
Hi there, I'm working on a rule that will alert me when there is no events from the sensors for a while. So, first idea was to use time window and matches in condition side, to match all types of sensors, and then to print that something is wrong. rule "Alert if there is no activity" when no

AW: [rules-users] Truth maintenance

2009-02-24 Thread Andreas Volz
nance, I'll give the agenda groups a try... Cheers, Andreas -Ursprüngliche Nachricht- Von: rules-users-boun...@lists.jboss.org im Auftrag von David Sinclair Gesendet: Di 17.02.2009 22:39 An: Rules Users List Betreff: Re: [rules-users] Truth maintenance Have you considered using Droo

Re: [rules-users] Truth maintenance

2009-02-17 Thread David Sinclair
Have you considered using Drools built in phase control instead of your own? Either agenda groups or a rule flow should do the trick and I neither of these options affect logical inserts. On Sun, Feb 15, 2009 at 4:07 PM, Andreas Volz wrote: > Hi, > > I have a question concerning the truth mainten

[rules-users] Truth maintenance

2009-02-15 Thread Andreas Volz
Hi, I have a question concerning the truth maintenance mechanism in Drools: Is it possible to exclude some preconditions from truth maintenance? We want to implement a rule flow by using an attribute of a special fact (ProcessPhaseController.phase). We have some phases that we want to traverse.

Re: [rules-users] Truth Maintenance, equals, and hashCode

2008-08-05 Thread Mark Proctor
[EMAIL PROTECTED] wrote: I have a question about logical assertions and truth maintenance. First of all, the Drools manual states: 2.5.8.2. Important note: Equality for Java objects It is important to note that for Truth Maintenance (and logical assertions) to work at all, your Fac

[rules-users] Truth Maintenance, equals, and hashCode

2008-08-05 Thread ringsah
I have a question about logical assertions and truth maintenance. First of all, the Drools manual states: 2.5.8.2. Important note: Equality for Java objects It is important to note that for Truth Maintenance (and logical assertions) to work at all, your Fact objects (which may be Javabeans) over