[rules-users] How to enforce dependecy rules

2009-11-27 Thread pdario
Hello, I need some help to understand how to enforce dependency rules with Drools. Suppose you have two objects - A and B - and two business rules that say: if A is selected, unselect B and if B is selected, unselect A. How can I be sure that Drools unselects B when user selects A and

Re: [rules-users] unable to resolve Type Declaration class

2009-11-27 Thread richarda
Yeah, its in the classpath.. and to be doubly sure just before the code I do a Message s=new Message(); and that works.. so jvm can find the Message object. I have created https://jira.jboss.org/jira/browse/JBRULES-2348 I would love to know if any workarounds are possible, this has ground my

Re: [rules-users] unable to resolve Type Declaration class

2009-11-27 Thread richarda
Ok, i have looked at the drools source and I see the following: TypeDeclaration lastType = null; try { // Add the type declarations to the RuleBase if ( newPkg.getTypeDeclarations() != null ) { // add type declarations for (

[rules-users] Import and Export at Package level

2009-11-27 Thread krishna.cj
Hi, We are running Guvnor on two machines, out of which one is used for developing and testing rules, say test environment, and another is used for providing rules for production application. Our test environment typically contains more than one package and each in turn contains multiple

Re: [rules-users] Drools with Web Application

2009-11-27 Thread সাহিদ
On Fri, Nov 27, 2009 at 9:45 AM, Jervisliu j...@redhat.com wrote: [snipped..] Let me know if you have interest to explore this further, I can provide more information on this. [1].http://cwiki.apache.org/CXF20DOC/jax-rs.html [2]. http://www.jboss.org/resteasy/ Thank you Jervis for the

[rules-users] Updates with property change on facts. How???

2009-11-27 Thread Jason Smith
I implemented the following listener for my bean and I am calling .update() directly on the StatefulKnowledgeSession. QUESTION 1: Is there a better way? The old API supported .insert(fact,boolean). The new one does not. I am not finding any documentation that explains the new API (version

Re: [rules-users] drools-solver NPE in DefaultSimpleScore

2009-11-27 Thread Andrew Waterman
Hi Geoffrey, I'll check that out today for you and let you know what I find out with my case. I'm using the following solver dependency: dependency groupIdorg.drools.solver/groupId artifactIddrools-solver-core/artifactId version5.1.0.M1/version

[rules-users] Timer Node Period not firing repeatedly (running in active mode using fireUntilhalt())

2009-11-27 Thread Boardman, Paul
I 'm using Drools flow 5.1m1 and have created a simple Timer test flow. It has a simple Action node after the timer that Prints out Hello. I have set the timer delay to 5000 and the Timer Period to 2000. What I expect to happen is I get Hello printed after 5 seconds, then followed by Hello

Re: [rules-users] Updates with property change on facts. How???

2009-11-27 Thread Jason Smith
Here is a twist. If I call update($fact) explicitly in the rule, the rule is NOT called twice. Can someone point me to the code used by update($fact)? Maybe I can figure out what I did wrong to cause the rule to fire incorrectly a second time. Jason Smith

Re: [rules-users] Updates with property change on facts. How???

2009-11-27 Thread Jason Smith
The Update command appears to be processed in org.drools.process.commands.UpdateCommand. It's doing the update the same way I am. Why does this code work when Drools uses it, and it doesn't work for me? package org.drools.process.command; import org.drools.reteoo.ReteooWorkingMemory;

Re: [rules-users] Updates with property change on facts. How???

2009-11-27 Thread Jason Smith
I think I've solved this. You have to fire the property change event *AFTER* you change the underlying property. As long as session.update() is called *AFTER* the value has changed, things seem to work correctly. Does this sound like a reasonable solution? I think I saw in the documentation

Re: [rules-users] drools-solver NPE in DefaultSimpleScore

2009-11-27 Thread Andrew Waterman
Hi Geoffrey, My bad; when I migrated to the new Score implementation I failed to update my code to properly clone scores in my cloneSolution() implementation. Thanks for letting me know where to look! best wishes, Andrew On Nov 26, 2009, at 12:16 PM, Geoffrey De Smet wrote: Hi Andrew,

[rules-users] Knowledge Agent resource auto loading (.drl/java obj)

2009-11-27 Thread nadeem mehmood
hi friends, I am working with Knowledge Agent to automatic loading of resources (.drl, .java objects) into the statefullKnowledgeSession KB, and then firing them automatically. The problem is although I have set true the scanDirectories and scanResources configurations of the knowledge agent,

[rules-users] tutorial movies

2009-11-27 Thread zubin
Hello, the tutorial movies available at the following link are not working, only the Drools Expert Intro is valid. The other movies are invalid and not working, can these be reinstated? http://www.jboss.org/drools/videos/index.html Expert is working .mov file is fine. Guvnor, Fusion, and Flow