Re: [rules-users] Agenda group doesn't stay set?

2008-04-28 Thread Kris Verlaenen
Ruleflow groups allow you to group rules together and rules inside a ruleflow group only execute when the ruleflow-group is active. You can use ruleflow groups inside a ruleflow but they can be used outside ruleflows as well. You could manually activate and deactivate ruleflow groups using wo

Re: [rules-users] Agenda group doesn't stay set?

2008-04-28 Thread Mark Proctor
Bagwell, Allen F wrote: I'm writing rules in different agenda groups and witnessing something curious. Right now when I put my fireAllRules() in a callback that is triggered every couple of seconds I have to do this: Callback executes on receipt of a heartbeat message: { session.setFoc

[rules-users] Agenda group doesn't stay set?

2008-04-28 Thread Bagwell, Allen F
I'm writing rules in different agenda groups and witnessing something curious. Right now when I put my fireAllRules() in a callback that is triggered every couple of seconds I have to do this: Callback executes on receipt of a heartbeat message: { session.setFocus("my_agenda"); session.fi

[rules-users] Casting an Object value in the LHS

2008-04-28 Thread rrogers
Suppose I have a "Measurement" class, with a getName() method that returns a String and with a getValue() method that returns an Object. Sometimes the Object is a String, sometimes a Integer, sometimes a Double. I know that a "Foo" Measurement must be an integer, so I could cast (or otherwise coer

Re: [rules-users] ShadowProxy & PersistentSet

2008-04-28 Thread vdelbart
I post a test case in the JIRA Mark Proctor wrote: > > Mock classes? > > vdelbart wrote: >> I create a JIRA : http://jira.jboss.com/jira/browse/JBRULES-1590 >> >> it's to complicate to me to create an unit test with a hibernate session. >> >> thanks, >> >> V. >> >> >> Mark Proctor wrote: >>

Re: [rules-users] StateFullSession / StatelessSession

2008-04-28 Thread Mark Proctor
Search the mailing list, this question has been asked a number of times. Use nabble, gmane or markmail. Seach for statefulsession and I'm sure you'll find lots of information. Mark anandhakrishnan wrote: Hi thanks for your message... but the below is what given in the manual...

RE: [rules-users] RuleBase relation with working memory

2008-04-28 Thread anandhakrishnan
HI, Thanks for explanation. I understood from ur words, but still i have one doubt. What is the necessary of creating so many WM object, in what scenario it is applicable, please one example... thanks in advance Anstis, Michael (M.) wrote: > > It will occur whenever you (the develope

Re: [rules-users] RuleBase relation with working memory

2008-04-28 Thread Mark Proctor
anandhakrishnan wrote: Please Explain, RuleBase 1:n relationship with Working memory, when will it occur. Please give an example rtfm thanks In Advance ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailma

RE: [rules-users] StateFullSession / StatelessSession

2008-04-28 Thread anandhakrishnan
Hi thanks for your message... but the below is what given in the manual... = The Rule Base also holds references to any stateful session that it has spawned, so that if rules are changing (or being added/removed etc. for long running sessions), they can be updated with the late

RE: [rules-users] RuleBase relation with working memory

2008-04-28 Thread Anstis, Michael (M.)
It will occur whenever you (the developer) make it occur. I guess Rulebase is the RETE network (without memory nodes) and the WM's are in essence the RETE network memory nodes. This is my interpretation of their roles. Here's an example:- Rulebase RuleBase ruleBase = RuleBaseFactory.ne

RE: [rules-users] StateFullSession / StatelessSession

2008-04-28 Thread Anstis, Michael (M.)
Have you read the manual? I would really, really suggest you do. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of anandhakrishnan Sent: 28 April 2008 15:37 To: rules-users@lists.jboss.org Subject: [rules-users] StateFullSession / StatelessSession What

Re[rules-users] traction In Engine

2008-04-28 Thread anandhakrishnan
What happens when retract method is called.. does it throws any nullpointerexception or what is happening at the backend.(in the engine) thanks in advance! -- View this message in context: http://www.nabble.com/Retraction-In-Engine-tp16940381p16940381.html Sent from the drools - user mailing

[rules-users] StateFullSession / StatelessSession

2008-04-28 Thread anandhakrishnan
What are statefulsession rules and statelesssion rules, What is the difference, Can I get any example When shud i use statefullsession, and when shud i use statelesssession Please help thanks in advance -- View this message in context: http://www.nabble.com/StateFullSession---Stat

[rules-users] Rulebase assignment to WorkingMemory

2008-04-28 Thread anandhakrishnan
I have A Rulebase, Is it possible to assign to current workingmemory.. I have a rulebase object, Is it very must to create new workingmemory else is it possible to assign workingmemory... Thanks in advance. -- View this message in context: http://www.nabble.com/Rulebase-assignment-to-Working

[rules-users] RuleBase relation with working memory

2008-04-28 Thread anandhakrishnan
Please Explain, RuleBase 1:n relationship with Working memory, when will it occur. Please give an example thanks In Advance -- View this message in context: http://www.nabble.com/RuleBase-relation-with-working-memory-tp16940200p16940200.html Sent from the drools - user mailing list archive

Re: [rules-users] ShadowProxy & PersistentSet

2008-04-28 Thread Mark Proctor
Mock classes? vdelbart wrote: I create a JIRA : http://jira.jboss.com/jira/browse/JBRULES-1590 it's to complicate to me to create an unit test with a hibernate session. thanks, V. Mark Proctor wrote: Can you open a JIRA for this? If you provide a unit test with it, we'll see if we can i

Re: [rules-users] Shadow Facts & update

2008-04-28 Thread Mark Proctor
vdelbart wrote: Hello, for hibernate reason I disable shadow facts; however I have 'update' like this : rule "e" when ... then obj.attr = "other"; update(obj); end and I can confirm, I have an "unpredictable behavior". Could I replace this sentence by this : rule "e" when ...

[rules-users] Shadow Facts & update

2008-04-28 Thread vdelbart
Hello, for hibernate reason I disable shadow facts; however I have 'update' like this : rule "e" when ... then obj.attr = "other"; update(obj); end and I can confirm, I have an "unpredictable behavior". Could I replace this sentence by this : rule "e" when ... then retract(o

Re: [rules-users] ShadowProxy & PersistentSet

2008-04-28 Thread vdelbart
I create a JIRA : http://jira.jboss.com/jira/browse/JBRULES-1590 it's to complicate to me to create an unit test with a hibernate session. thanks, V. Mark Proctor wrote: > > Can you open a JIRA for this? If you provide a unit test with it, we'll > see if we can include this in 4.0.7. 5.0 wi

RE: [rules-users] When is eval unavoidable?

2008-04-28 Thread Bagwell, Allen F
(Monday morning, back in the office.) Ah, thanks! I took out the final keywords and sure enough, it works. Read the page link you provided. Good info there. I hadn't really delved into shadow facts much yet. Thanks for clearing this up! :-) -A From: [EMAIL PRO

[rules-users] RE: Drools Tomcat

2008-04-28 Thread Hehl, Thomas
Please direct your e-mails to the list and I will respond if I can. I have used both tomcat 5.5 and tomcat 6 with Drools 4.x (4.04 I think) and it was completely transparent. I haven't published any advice, although I think the docs are a little lacking on decision tables, which is primarily how w

[rules-users] MissingPackageName Exception | Eclipse | brl to drl

2008-04-28 Thread vmuthupal
Hi, We created a brl rule using guided editor in Eclipse 3.3 On trying to create a rule package we are getting a 'MissingPackageName' exception. As like a brl rule created in BRMS, on eclipse, the DRL source of the created brl shows only the rule body `with the exception of the package statement