<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
Hi ,<br>
<br>
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 :<br>
<br>
&nbsp;Event(this after $b &amp;&amp; $b after $a)<br>
<br>
that's because I am not limited to the sequence operator , for example
when I want to make a disjunction rule :<br>
Cmplx1 :- a OR b<br>
<br>
I can't separate the events , but I must write them packed like this ::<br>
<br>
&nbsp;Event(this after $b || $b after this)<br>
<br>
One more question :<br>
I assume that the relation between the different statements in a rule
is normal conjunction , i.e :<br>
<br>
rule "some rule"<br>
when<br>
&nbsp;&nbsp;&nbsp; a : ...<br>
&nbsp;&nbsp;&nbsp; b : ...<br>
&nbsp;&nbsp;&nbsp; c : ...<br>
then<br>
&nbsp;&nbsp;&nbsp; trigger action "act"<br>
end <br>
<br>
would be equivalent to :: <br>
act :- a,b,c .<br>
<br>
I hope I am correct ?<br>
<br>
Thanks for the help<br>
Khalil Hafsi<br>
<br>
Edson Tirelli wrote:
<blockquote
 cite="mid:e6dd5ba30908240644s22b92e22pd733e5f4a69522e9@mail.gmail.com"
 type="cite"><br>
&nbsp;&nbsp; Not sure what is the problem you see... <br>
  <br>
$a : Event()<br>
$b : Event( this after $a )<br>
$c : Event( this after $b )<br>
  <br>
&nbsp;&nbsp;&nbsp; []s<br>
&nbsp;&nbsp;&nbsp; Edson<br>
  <br>
  <div class="gmail_quote">2009/8/24 Ahmed Hafsi <span dir="ltr">&lt;<a
 moz-do-not-send="true" href="mailto:hafsi@fzi.de">hafsi@fzi.de</a>&gt;</span><br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi
guys ,<br>
    <br>
I am using the lastest version of DROOLS , i.e 5.0 , I am trying to
achieve<br>
forward chaining with the new features of Fusion<br>
I was looking for examples about the different operators and how to
make use<br>
of them but the broker example does not mention in it's DRL file any
time<br>
related operators , i.e after , meets ...<br>
I would be grateful if you guys provide me with a simple example of
forward<br>
chaining (sequence)<br>
My goal to achieve is to implement something like this :<br>
CmplxEvent :- a and then b and then c<br>
    <br>
my drools rule is :<br>
    <br>
rule "cmplx0"<br>
when<br>
&nbsp;$a : Event()<br>
&nbsp;$b : Event()<br>
&nbsp;Event(this after $b &amp;&amp; $b after $a)<br>
then<br>
&nbsp;//whatever<br>
end<br>
    <br>
however this does not work , it complains about "unable to create field<br>
exatractor"<br>
Event is an event that I have declared using declare Event and then the<br>
metadata @event as described in the docs.<br>
    <br>
    <br>
Thanks for help.<br>
Khalil Hafsi<br>
    <br>
_______________________________________________<br>
rules-users mailing list<br>
    <a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
    <a moz-do-not-send="true"
 href="https://lists.jboss.org/mailman/listinfo/rules-users"
 target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
&nbsp;Edson Tirelli<br>
&nbsp;JBoss Drools Core Development<br>
&nbsp;JBoss by Red Hat @ <a moz-do-not-send="true"
 href="http://www.jboss.com">www.jboss.com</a><br>
  <pre wrap=""><hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.9 (GNU/Linux)

mQGiBEooht0RBACklFwIcwGkxA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