[rules-users] Activation-group ignored when working with events in Drools 6 ?

2014-06-03 Thread kenota
It seems that activation-group rule attribute is ignored when rule works with
events (@role(event)). Example rule file:


declare LocalEvent
@role(event)
end

rule Rule1
activation-group test
when
$event : LocalEvent()
then
System.out.println(I am rule 1  + $event);
end

rule Rule2
activation-group test
when
$event : LocalEvent()
then
System.out.println(I am rule 2  + $event);
end


If i create event and insert it into KieSession both rules are fired, if i
remove @role(event) line then only one rule is fired.

I am experiencing this behaviour in 6.0.1.Final and 6.1.0.Beta4, but seems
like everything is working as expected in 5.5.0.Final.

Is that expected behaviour or a bug?



--
View this message in context: 
http://drools.46999.n3.nabble.com/Activation-group-ignored-when-working-with-events-in-Drools-6-tp4029834.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Activation-group ignored when working with events in Drools 6 ?

2014-06-03 Thread Mark Proctor
We’ll look into it, it may already be fixed by this:
https://github.com/sotty/drools/commit/15cfe29d946d7e33520c20b4f3a61bedeeab05cc

Mark
On 3 Jun 2014, at 18:33, kenota unpla...@gmail.com wrote:

 It seems that activation-group rule attribute is ignored when rule works with
 events (@role(event)). Example rule file:
 
 
 declare LocalEvent
@role(event)
 end
 
 rule Rule1
activation-group test
 when
$event : LocalEvent()
 then
System.out.println(I am rule 1  + $event);
 end
 
 rule Rule2
activation-group test
 when
$event : LocalEvent()
 then
System.out.println(I am rule 2  + $event);
 end
 
 
 If i create event and insert it into KieSession both rules are fired, if i
 remove @role(event) line then only one rule is fired.
 
 I am experiencing this behaviour in 6.0.1.Final and 6.1.0.Beta4, but seems
 like everything is working as expected in 5.5.0.Final.
 
 Is that expected behaviour or a bug?
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Activation-group-ignored-when-working-with-events-in-Drools-6-tp4029834.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


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