Re: [rules-users] Drools 6 problem with events when using after

2014-05-14 Thread Jan Šťastný
Hi Mario, thanks for your response. I use Drools 6.0.0.Final and jBPM 6.0.0.Final. The problem is that the outcomes of tests that check firing the specified rules differ every time. Mostly everything fails, but sometimes a test or two pass. I haven't tried removing jBPM related stuff, right

[rules-users] Drools 6 problem with events when using after

2014-05-13 Thread Jan Šťastný
Hi, I use rules together with processes. One global process signals the TurnEvent to other processes in the working memory. declare TurnEvent @role(event) end Then, when started a process, which waits for TurnEvent another event is signaled - the ProcessWaitsForTurnEvent

Re: [rules-users] Any form of groub by or distinct in accumulate/collect ?

2014-05-10 Thread Jan Šťastný
Hi, maybe I misunderstood you, but what about a set collection. Just implementd equals method of A properly and use accumulate function collectList when accumulate( C( $a:b.a ) , $uniqueASet:collectSet($a) ) then do whatever you want Hope

Re: [rules-users] Drools 6.0.0 activation-group + salience bug or feature?

2014-05-07 Thread Jan Šťastný
/main/java/org/drools/games/invaders Mark On 6 May 2014, at 23:12, Jan Šťastný newohy...@gmail.com wrote: Hi, I came across in my view strange behaviour of rules defined with activation-group and salience. I use this combination to set the priority of exclusively fired rules Democracy City Tiles

[rules-users] Drools 6.0.0 activation-group + salience bug or feature?

2014-05-06 Thread Jan Šťastný
Hi, I came across in my view strange behaviour of rules defined with activation-group and salience. I use this combination to set the priority of exclusively fired rules Democracy City Tiles Production and Basic City Tiles Production. Their definitions: rule Democracy City Tiles Production

[rules-users] Drools 6 inject ksession with configured persistence

2014-04-16 Thread Jan Šťastný
Hi, I have a kjar with kmodule.xml, where my kbase and its ksession are defined. Then I'd like to inject the ksession into my service component and work with it. But. I don't know where to configure persistence for the session. Well, in kmodule.xml there is not such an entry. And after

[rules-users] Drools Declaring New Types To Use Across Multiple Files

2014-04-07 Thread Jan Šťastný
Hi, can anybody tell me, how can I declare a type which I can use in multiple files? Sure, I can create a java class and then import to respective files. But I was wondering whether there was a solution which wouldn't demand compilation of source code after each change of rules (extending the