Re: [rules-users] Error Inserting events into drools fusion stream

2010-10-22 Thread Ayush
Thanks for the reply. Can you please elaborate on it? Well we are facing issues keeping same session and entry point alive through out the application. As each event will be received as a new thread in my application so when I'm calling the class which inserts into session and fire-all rules

Re: [rules-users] Error Inserting events into drools fusion stream

2010-10-22 Thread Wolfgang Laun
This is more a Java question than a Drools specific problem. You have several producers, running in threads, parallel or (more or less) one after the other. You have one consumer, the thread running the single session. Consuming consists of accepting the fact and inserting it into the session;

Re: [rules-users] Error Inserting events into drools fusion stream

2010-10-22 Thread Ayush
-- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Error-Inserting-events-into-drools-fusion-stream-tp1746213p1750917.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list

Re: [rules-users] Error Inserting events into drools fusion stream

2010-10-22 Thread Ayush
Thank you for your reply. I think I was heading into the wrong direction. Now when I've synchronized the function which is creating session, session is static and is only called once, and firing the rules it's working fine. I'm planning to use JMS wherein consumer will be syncronized. Is this

Re: [rules-users] Error Inserting events into drools fusion stream

2010-10-22 Thread Ayush
Thank you for your reply. I think I was heading into the wrong direction. Now when I've synchronized the function which is creating session, session is static and is only called once, and firing the rules it's working fine. I'm planning to use JMS wherein consumer will be syncronized. Is this

[rules-users] Using Guvnor rule to check if page is in a list of pages (enumeration)? Contains?

2010-10-22 Thread Kevin
Hi, I'm investigating Drools Guvnor for use as both entitlements and business rules where entitlements means I am checking access to certain web pages (or partial page resources) based on a pre-defined a resource (given a role for example) that I would send in when executing the rule. Is it

Re: [rules-users] Error Inserting events into drools fusion stream

2010-10-22 Thread Ayush
Thanks a lot Wolfgang for your prompt reply. I'm able to move forward now -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Error-Inserting-events-into-drools-fusion-stream-tp1746213p1751531.html Sent from the Drools - User mailing list archive at Nabble.com.

Re: [rules-users] Check if all activations has been fired for a rule

2010-10-22 Thread ravibhatt
thanks for the response Michael. I looked into your solution and this is not working for me. I get a discouraged Access and when i try to remove that from windows-preferences eclipse is unable to find entire org.drools package. if i keep settings when i get discouraged access,

Re: [rules-users] How can i delete any object after executing the rules from the memory.

2010-10-22 Thread rouvas
Michael Anstis wrote: If you use a StatelessKnowledgeSession you won't need to remove the old facts. If however you want to use a StatefulKnowledgeSession for other reasons the insert method returns a FactHandle that can be later used to retrieve the fact: ksession.retract(factHandle).

Re: [rules-users] Use Knowledge Agent

2010-10-22 Thread developer researcher
Hello Michael, I included the code for authentication but occurs a new exception. I think that is by configuration of Guvnor. I attached the exception and the log of guvnor. I hope you can help me. Thanks and regards, 2010/10/21 Michael Anstis michael.ans...@gmail.com Hi, #2 You could

Re: [rules-users] How can i delete any object after executing the rules from the memory.

2010-10-22 Thread Michael Anstis
Sure, check out KnowledgeBase's removeRule(String, String) method. Modifications to you KnowledgeBase are going to be more expensive than with Sessions, so ask yourself whether manipulating KnowledgeBase's at runtime is something you really want to be doing when you (probably) will be able to get

Re: [rules-users] How can i delete any object after executing the rules from the memory.

2010-10-22 Thread Michael Anstis
When I said at runtime I meant during the normal course of your application's operation - obviously KnowledgeBase's need to be set up in some shape or form at runtime (initialisation)!! :-) On 22 October 2010 19:22, Michael Anstis michael.ans...@gmail.com wrote: Sure, check out KnowledgeBase's

Re: [rules-users] Check if all activations has been fired for a rule

2010-10-22 Thread Michael Anstis
I downloaded the attachment on http://article.gmane.org/gmane.comp.java.drools.user/22375 and pasted the source into a new Drools project. Worked a treat. On 22 October 2010 10:52, ravibhatt r...@qubitdigital.com wrote: thanks for the response Michael. I looked into your solution and this is

[rules-users] [FUSION] Detect the absence of an event when you don't know that the event is missing.

2010-10-22 Thread Tina Vießmann
Hi, I'm working on a use case where I want to know if 20 events with a specific value are contained in at maximum the last 150 events. So far I know what have to do. ;-) My problem is that as extension to my condition, the rule shall also trigger if one ore more events are missing. But I don't

Re: [rules-users] [FUSION] Detect the absence of an event when you don't know that the event is missing.

2010-10-22 Thread Mauricio Salatino
Sounds that you can use the Not Conditional Element for that right? something like $a: EventA() not EventB(this after[1d] $a) On Fri, Oct 22, 2010 at 5:49 PM, Tina Vießmann tviessm...@stud.hs-bremen.de wrote: Hi, I'm working on a use case where I want to know if 20 events with a specific

Re: [rules-users] [FUSION] Detect the absence of an event when you don't know that the event is missing.

2010-10-22 Thread Tina Vießmann
Yeah, normally I would solve it that way. But you're using a time (1d) which I unfortunately don't know off in my scenario. I'm afraid that there will be no other solution than that I have to use a time... Thanks anyway :) Sounds that you can use the Not Conditional Element for that

Re: [rules-users] [FUSION] Detect the absence of an event when you don't know that the event is missing.

2010-10-22 Thread Mauricio Salatino
You can use it without time.. but each time that you have an EventA and not an EventB the will be activated 2010/10/22 Tina Vießmann tviessm...@stud.hs-bremen.de Yeah, normally I would solve it that way. But you're using a time (1d) which I unfortunately don't know off in my scenario. I'm