Re: [rules-users] KnowledgeAgent to update knowledge base built with Guvnor pkg

2013-05-03 Thread riri
Thank you very much for the detailed explanation, things are clearer now. I would have liked to be able to initialize the KA with an empty KB but I need to be able to set the configuration options for it and for now I don't see how that is done. Can the options, like STREAM mode be set when creatin

Re: [rules-users] KnowledgeAgent to update knowledge base built with Guvnor pkg

2013-05-02 Thread riri
Ok so I've added the listeners and I have run 2 scenarios: 1. I do not recreate the KA before I re-run a session, and all the info that I get even after having deleted a rule from the package is : // at the beginning [2013-05-02 23:23:32,031:info] ResourceChangeNotification scanner has started [2

Re: [rules-users] KnowledgeAgent to update knowledge base built with Guvnor pkg

2013-05-02 Thread riri
Thank you for the tips! I did change the scanning interval to 20s and I wait before restarting the session. I have also tried to compile the package manually in Guvnor after changing a rule but still no effect. The problem is that I use the embedded editor in my application for creating a rule and

Re: [rules-users] KnowledgeAgent to update knowledge base built with Guvnor pkg

2013-05-02 Thread riri
As an addition to my post earlier, there is an error in the loggs regarding the change-set.xml: ERROR ExtensibleXmlParser:666 - (null: 6, 119): cvc-elt.1 : Declaration of element 'change-set' not found. My change-set.xml file is as follows: http://drools.org/drools-5.0/change-set";

Re: [rules-users] KnowledgeAgent to update knowledge base built with Guvnor pkg

2013-05-02 Thread riri
Here is the code I am using to create the knowledge base, knowledge agent and to retrieve the resources: public static KnowledgeBase createKnowledgeBase(List resources, EventProcessingOption eventProcessingOption) { KnowledgeBuilder builder = Know

Re: [rules-users] KnowledgeAgent to update knowledge base built with Guvnor pkg

2013-05-01 Thread riri
Nobody has any ideas on how to solve this? I am willing to try anything that might work short of re-creating the knowledge base everytime I start a new session. And when using the changeSet() method for the knowledge agent, how would one set the knowledge base properties? Like functioning in STRE

[rules-users] KnowledgeAgent to update knowledge base built with Guvnor pkg

2013-04-30 Thread riri
Hello everyone, I am trying to take advantage of the automatic uploading that the KnowledgeAgent provides and am using the 5.5.Final Drools version. The Drools Expert documentation states that one can use an existing knowledge base to create an agent, and the agent will subscribe to the resources

Re: [rules-users] Working memory - database synchronisation approach

2013-03-28 Thread riri
I may not have explained the architecture I have very well so here it is: I have plain JPA entities, some of which I want to insert as facts in the working memory, all entities have repositories defined for them via the Spring Data JpaRepository and these repositories are called by Spring Services

Re: [rules-users] Working memory - database synchronisation approach

2013-03-28 Thread riri
Thank you very much for the quick replies! I would very much like to avoid having persistence in my rules but I am not sure how to get notified of changes of an object inside the working memory so that the service to update it can be called outside the WorkingMemoryEventListener. What I have now

[rules-users] Working memory - database synchronisation approach

2013-03-28 Thread riri
Hello everyone, I am currently working on a Spring, Hibernate, Bitronix project and am trying to integrate Drools functionality. I have a set of JPA Entities that I can manage using Spring Data and Hibernate and I would like to use these entities as facts inside a StatefulKnowledgeSession. As I un

Re: [rules-users] Delpoying Guvnor 5.5.0 on Tomcat 7.0.34 does not work

2013-02-17 Thread riri
Hi, I installed Guvnor 5.5.0 on my Tomcat 7.0.35 and got the same exception as you. What I did was to edit the web.xml file of the drools-guvnor/WEB-INF/ folder to include the following lines : org.jboss.seam.transaction.disableListener true This removed the nullPointerException for m

[rules-users] User specific packages for Guvnor

2013-01-30 Thread riri
Hello everyone, I am interested in working with Guvnor and would like to know if rule packages can be user specific. For example I would need to have each user be able to have his own rules to work on and have only these ones available the next time he logs in. I think that would be the same as ha

Re: [rules-users] DSRL rule access in web editor

2013-01-24 Thread riri
Hi, I did take a look at the editor for the dsrl rules and that's why I wanted to use it because it has great functionality. Sadly it might be too powerful for unexperienced users and I have to find a way to implement my own dsrl file reader and create an interface for it. Thank you very much th

[rules-users] DSRL rule access in web editor

2013-01-24 Thread riri
Hello everyone, I need to provide a way to allow non technical users to modify and possibly create rules by using a web based editor. I thought about using Guvnor because it already has validation functionality for the dsrl rule files and I wouldn't have to implement that from scratch. The problem

Re: [rules-users] Web services and Drools

2013-01-14 Thread riri
Stephen Masters wrote > The main risk would be memory usage if you have a large knowledge base or > lots of facts, as a knowledge base and session is relatively memory > hungry. Depends on how many users you have I guess. Yes, I am aware of the potential memory problems but as of now I do not have

Re: [rules-users] Web services and Drools

2013-01-14 Thread riri
Thank you for your very quick replies. > You just need to create a Spring bean to act as the interface to your > knowledge > base. That way, Spring ensures that you have only one knowledge base > instance in play, so it is configured and compiled when the application > starts. Does this mean th

[rules-users] Web services and Drools

2013-01-14 Thread riri
Hello everyone, I need to develop a web application that includes Drools as its rule engine and would like to expose its functionality as web services. I would appreciate some expert opinion on which framework would be easiest to learn and to work with. Some of the posts I have seen regarding Droo

Re: [rules-users] Rules with variable timers

2012-12-19 Thread riri
Thank you for the detailed response and clarifications. I agree that using a timer for my purpose is not the best idea and am going to try and make use of event timestamps and then check these values inside the rules. I understand that by default the timestamp for a given event is read from the Se

Re: [rules-users] Rules with variable timers

2012-12-18 Thread riri
Hy, Thank you very much for your response, I will definitely think about using declared types for user input. I'm not exactly sure I understood how the attributes of UserParameter are set from outside the rule file in the code you posted. I found that in the documentation in section 5.7.6. "Acc

Re: [rules-users] Rules with variable timers

2012-12-18 Thread riri
Hy, I would also be interested in having a timer working with variables. In my case I need to have a rule that fires when an event is detected inside a certain interval of time (say 22h-07h in a day), and this interval should be configurable at runtime. I tried using a global value but I get an "U

Re: [rules-users] Drools scalability in home automation scenarios

2012-11-16 Thread riri
Thank you for your input! A separate KB for each user seems to me to be a "cleaner" solution at this time since I'm not sure how to work with rule packages and parametrized facts between users. I was also considering using the session for testing purposes, letting the user create test cases for his

Re: [rules-users] Drools scalability in home automation scenarios

2012-11-16 Thread riri
Thank you for your response! Yes, you are right, there will be some rules that are absolute and available to all the users so a single knowledge base approach would make sense. From what I can gather from the Drools Expert documentation you can have a knowledge agent that can update the knowledge b

[rules-users] Drools scalability in home automation scenarios

2012-11-16 Thread riri
Hy everyone, I have recently decided to use Drools in my project and being a newbie I would greatly appreciate some input. The idea is to have a web application that simulates home automation using rules. The user could define the configuration of his home environment (based on virtual representat