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
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
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
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";
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
23 matches
Mail list logo