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

2013-09-23 Thread ashish6276
You can do this. There is a property called ruleflowGroup. Associate this propert with all 3 of your rule. So now your Rule 1 has ruleflowgroup 1, Rule 2 has ruleFlow group2 and rule3 has ruleflowgroup3. Now create a rule flow. create rule task 1. go to property tab. associate the ruleflowgroup1

[rules-users] performance of ruleflowGroup

2013-09-23 Thread ashish6276
Hi I am exploring ruleflow. Can somebody help me in knowing how RuleFlOWGROUP affects the performance of rules. Say i have 1 lakh rules. what will be difference in performance if i keep all rules without any group and if i group rules in diff small small ruleflowgroup and then create a

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

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

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

[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

[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

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 andrzej.grze...@g.plwrote: Hello again, Im making some

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 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 agenda

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

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