no.. the first option
Looks for two instances of Party() and the second just for one
instance of Party()
No, if you bind a variable inside a Pattern, the $e variable in your
case will contain only the errors from the party that matches.
The second rule will evaluate two instances of Parties, that means
that if you have more than one Party instance inside your working
memory, a cross product will be generated with all the possibilities,
causing more activations that the ones that you need.
Using two patterns is similar to do in sql
select * from party and joining that with select * from party
Cheers
On Wed, Dec 21, 2011 at 2:05 PM, freejava <freejava3(a)gmail.com> wrote:
I guess so :
In the first case it is Assign "errors" to $e for all parties.
and in the second case it is Assign "errors" to $e for the parties matching
the condition.
Is that a correct statement ?
It is working as expected in my local environment but in the development
env.
--
View this message in context:
http://drools.46999.n3.nabble.com/Rules-Evalution-tp3602504p3604590.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
- CTO @
http://www.plugtree.com
- MyJourney @
http://salaboy.wordpress.com
- Co-Founder @
http://www.jugargentina.org
- Co-Founder @
http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -