Hi ,
Thanks for the reply , the code that you gave works , but what I wanted
to achieve is to pack it in one "statement" , i.e :
Event(this after $b && $b after $a)
that's because I am not limited to the sequence operator , for example
when I want to make a disjunction rule :
Cmplx1 :- a OR b
I can't separate the events , but I must write them packed like this ::
Event(this after $b || $b after this)
One more question :
I assume that the relation between the different statements in a rule
is normal conjunction , i.e :
rule "some rule"
when
a : ...
b : ...
c : ...
then
trigger action "act"
end
would be equivalent to ::
act :- a,b,c .
I hope I am correct ?
Thanks for the help
Khalil Hafsi
Edson Tirelli wrote:
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
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.9 (GNU/Linux)
mQGiBEooht0RBACklFwIcwGkxAFQK8Qls2Gd9obpVDFhc48hHny9q0b7pmOFjiQP
ApwpC/tnKsMzJdN3NEDUr6iWJd8vgcFMsm24oOlpwwOmdR5ldFXhnANJkyCjIubI
b3aD+6uhM0CJLL2Aa9vw3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