Not sure what is the problem you see...

$a : Event()
$b : Event( this after $a )
$c : Event( this after $b )

    []s
    Edson

2009/8/24 Ahmed Hafsi <hafsi@fzi.de>
Hi guys ,

I am using the lastest version of DROOLS , i.e 5.0 , I am trying to achieve
forward chaining with the new features of Fusion
I was looking for examples about the different operators and how to make use
of them but the broker example does not mention in it's DRL file any time
related operators , i.e after , meets ...
I would be grateful if you guys provide me with a simple example of forward
chaining (sequence)
My goal to achieve is to implement something like this :
CmplxEvent :- a and then b and then c

my drools rule is :

rule "cmplx0"
when
 $a : Event()
 $b : Event()
 Event(this after $b && $b after $a)
then
 //whatever
end

however this does not work , it complains about "unable to create field
exatractor"
Event is an event that I have declared using declare Event and then the
metadata @event as described in the docs.


Thanks for help.
Khalil Hafsi

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com