<br>> would be equivalent to :: <br>> act :- a,b,c .<br>Yes, the implicit conditional operator between patterns is the conjunction (AND).<br><br>> Event(this after $b && $b after $a)<br>If you read the drools manual you saw that all field expressions in drools have a field name as the left operand (note that "this" is a special field name). So you can't say "$b after $a". Nevertheless, even if it was possible to do what you want, it would be awful for performance, because you would be joining all events among themselves and only after joining, would the constraints be applied. <br>
<br>Also, please note that Drools is FOL complete, so any FOL expression can be represented. Please read about the conditional elements too, not only restriction connectives && and ||.<br><br>[]s<br>Edson<br><br><br>
<div class="gmail_quote">2009/8/25 Khalil Hafsi <span dir="ltr"><<a href="mailto:hafsi@fzi.de">hafsi@fzi.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
Hi ,<br>
<br>
I am using the last version of drools fusion , what I wanted
to achieve is to pack the rules in one "statement" , i.e :<br>
<br>
Event(this after $b && $b after $a)<br>
<br>
instead of <br>
<br>
Event(this after $b)<br>
Event(this 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>
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>
a : ...<br>
b : ...<br>
c : ...<br>
then<br>
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,<br>
Khalil Hafsi<br>
<br>
<pre cols="72"></pre>
</div>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>