Re: [rules-users] CLOSED - JUnit Test, Mockito, AgendaEventListener Problem.

2013-09-23 Thread melchoir55
If this is fixed, could you please explain how you fixed it? Thank you. -Reposting after joining mailing list. -- View this message in context: http://drools.46999.n3.nabble.com/JUnit-Test-Mockito-AgendaEventListener-Problem-tp4025470p4026100.html Sent from the Drools: User forum mailing list

Re: [rules-users] performance of ruleflowGroup

2013-09-23 Thread Mark Proctor
In 5.x ruleflow groups do not impact performance at all. All rules are evaluated at all times, when data is changed, regardless of the group they are in. In 6.x only rules for the active ruleflowgroup are evaluated. In 5.x if you are having performance issues, I'd recommend a root context patt

Re: [rules-users] Indicating "used" rules

2013-09-23 Thread Wolfgang Laun
Usually a set of rules fires all rules when you call fireAllRules. So, what's keeping you from collecting the solutions derived from the fired rules and presenting them in some order to the user? If the sequental addition or update of properties is interleaved with calls to fireAllRules I'd attach

Re: [rules-users] Indicating "used" rules

2013-09-23 Thread Davide Sottara
You might also try the new Belief System capabilities.. (JTMS and/or Defeasible), see Mark's email/blog about how to insert "negative" or "defeated" facts On 09/23/2013 08:18 AM, Mauricio Salatino wrote: > yeah you can do that, you can write rules about rules activations with > the declarative ag

Re: [rules-users] Indicating "used" rules

2013-09-23 Thread rjr201
Could you post an example rule and some code that uses it? It'll make it easier to understand what you're trying to achieve. -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Indicating-used-rules-tp4026093p4026095.html Sent from the Drools: User forum mailing list

Re: [rules-users] Indicating "used" rules

2013-09-23 Thread Mauricio Salatino
yeah you can do that, you can write rules about rules activations with the declarative agenda feature. Check this out: http://planet.jboss.org/post/declarative_agenda_and_control_rules On Mon, Sep 23, 2013 at 4:06 PM, Andrzej Grzelak wrote: > Hello again, > > Im making some kind of expert syste

[rules-users] Indicating "used" rules

2013-09-23 Thread Andrzej Grzelak
Hello again, Im making some kind of expert system. And now i got new problem: User is asked sequentially for propetieries of object, than I modify object propetieries, then i call update() and fireAllRules() to check for any answers. It is repeated for every object property till we fire rule with

[rules-users] replace session clock at runtime

2013-09-23 Thread Alexander Wolf
Drools 5.5 Hey guys, Is it possible to replace the session clock of an existing stateful knowledge session (STREAM mode) while it is running or at least by pausing and restarting it? I need to feed old events into the session to restore a certain session state before switching the sessions t

Re: [rules-users] Declared Types and Globals in different files with incremental KnowledgeAgent

2013-09-23 Thread De Rooms Brecht
Op 20/09/2013 21:23, Davide Sottara schreef: Brecht, thanks for reporting this, but I don't think these are bugs. Thanks for the explanations. I tested it to be sure and it works as expected. The "drools.agent.useKBaseClassLoaderForCompiling" option indeed fixes the issue unless the agent dete

Re: [rules-users] Exception in thread "main" java.lang.ClassCastException: org.drools.io.impl.FileSystemResource cannot be cast to org.drools.io.InternalResource

2013-09-23 Thread AlesD
Please check if: a) both classes are loaded by same classloader - Are you using Drools in web-container or in OSGi? b) you do not have multiple classes with same name on your classpath - Do you have multiple drools JARs (possibly with different versions) on classpath? Ales -- View this mes

Re: [rules-users] How To Implement Rule Flow

2013-09-23 Thread Michael Anstis
You could use RuleFlow, sure. But you don't have to. Consider the following:- *1) Intermediate facts * when $p : Person( age < 18 ) then insertLogical( new Juvenile( $p ) ); end when $p : Person( age >= 18 ) then insertLogical( new Adult( $p ) ); end when Juvenile() then

[rules-users] Guvnor 5.5 Final: Can I restrict LOGIN Attempts by user

2013-09-23 Thread Zahid Ahmed
Hi, I have a requirement to restrict login attempts to Guvnor to prevent BruteForceAttacks. For authentication I am using JAAS authentication with Guvnor. Is there any option in Guvnor/Seam/JAAS to configure such requirement ? E.g., A user can try a maximum of 3 unsuccessful attempts for logi