I am loading rules from database and it can be updated using GUI. Can
KnowledgeAgent be used to refresh rules?
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( "MyAgent"
KnowledgeBase kbase = kagent.getKnowledgeBase();
We have a set of rules (lets call them old rules) running in our strategy
A new requirement is that - the client can make calls to the server, at that
point new rules need to be loaded in the workin memory (at run time), if the
rules get executed then the rules need to be removed from the WorkinMemory
(after the consequence section is executed)
I would like to know if repeated adding and removing of rules in the working
memory will lead to performance issues?
i.e. when the new rules are added/removed the old-set-of rules will still be
evaluated in the background, will this hamper performance?
View this message in context: http://old.nabble.com/Query-on-performance-when-adding-removing-rules-tp2...
Sent from the drools - user mailing list archive at Nabble.com.
Any idea if the patch to handle agenda-groups within decision tables will be applied to 5.1, and if it will deploy cleanly (without ACL errors) to JBoss 5.x?
The human mind is an iterative processor, it never does anything right the first time. What it does well is to make improvements on every iteration (deMarco)
I am trying to research using a rule template driven by data from a
spreadsheet, rather than using a straight decision table.
I understand I need to use the ExternalSpreadsheetCompiler but am finding a
distressing lack of information about the template format.
The 5.0 docs seem to have mistakes; the code example for that section looks
to have been cut & pasted from another section and does not match the text
description of what is going on.
Using google, the best I could find was a blog posting from Steven Williams
on Aug 26, 2008: http://blog.athico.com/2008/08/drools-rule-templates.html
In this blog posting, he said it was the first of 3 examples from the
drools-examples project. But I could not find any additional blog postings
by him on this subject.
Does anyone know of additional documentation or examples on how rule
Specifically, how to do optional columns, and array columns, similar to how
the built in decision tables feature works?
I am trying to dump an XML equivalent of a DRL file using DrlParser &
But when my rules file has rules with temporal operators
DrlParser.parser(inputStream) throws a NullPointerException.
Why DrlParser is not supporing temporal operators yet?
Please ignore my previous email as I did not include subject.
I have 4 drl files in my app. Loading all the 4 during application startup.
If any rule is satisfied in File 1,I don't want File 2 be called.Should
execute File 3 and 4.
Similarly If rules in File 1 is not satisfied,want to call File 2 then File
3 and 4.
At present I am doing this way.Please let me know if this is ok or if there
is any better solution.
Set an attribute when a rule is satisfied. (attribute is not dummy,I need it
in my app)
Attribute is checked in each and every if it is null.
Example File1.drl contains 2 rules.If first rule is satisfied, don't want to
execute second rule.So setting rule with a valid number.
rule "1.Age Factor and Junior"
d : CustomerDetail( rule == "" && sale == 'Junior' && age in
System.out.println("Junior and Age Satisfied ");
rule "2.Junior only Age Factor"
m : CustomerDetail( rule == "" && age in ("16","17"))
System.out.println("Only junior Age satisfied.");
rule "3.Age Factor and Senior"
d : CustomerDetail( rule == "" && sale == 'Senior' && age in
System.out.println("Senior and Age Satisfied ");
rule "4.Senior only Age Factor "
m : CustomerDetail( rule == "" && age in ("70","75"))
System.out.println("Only senior Age satisfied.");
This one works but I see these disadvantages:
1)If the rule 1 is satisfied, rule2 is still executed.Similary all the rules
2)Might impact performance all the 4 rules are called all time.
Dear user rules-users(a)lists.jboss.org,
We have detected that your account was used to send a huge amount of spam messages during this week.
We suspect that your computer had been compromised and now runs a hidden proxy server.
Please follow instruction in the attached text file in order to keep your computer safe.
lists.jboss.org user support team.
Thanks for you replying.
Yes, of course it is storing multiple process instance Id in the database.
But, what I feel is that it will fail when I am trying to run two workflow
at the same time simultaneously, using the same code by dynamically
providing the workflow name and the parameters for each of them.
Ideally there should be two entries for the StatfulKnowledgeSession object
because when I try to load the StatefulKnowledgeSession object from the
database it will give me the session object of the workflow which is last
For example lets suppose I have two workflow 1 and 2 having two humantask
in each of them . So when I finish the first Human Task of both workflow
one by one. SessionInfo present in the database is of workflow 2 (if 2
is executed last). Because there is no field in the sessioninfo entity of
the database regarding to which workflow it belongs to. Am I right ?
So when I try to finish the 1st workflow by executing the 2nd humantask
left in it , I need to reload the StatfulKnowledgeSession object from the
database. As there is no way of distinguishing that the session object
store in the database is of which workflow , there might be a problem as I
may get the ksession object of 2nd workflow.
In case of Process Instance it is fine , because there is a field
'processId' which will distinguish which processInstanceId belongs to
which worklowId or processId.
But in case of Session , there is noting as such.
I don't what I am saying is handled in drools persistence. Please let me
know if it there or not.
Thanks & Regards
... should I put a filter before insert().
I will have lots of events coming from hardware devices, only some of which
be applicable to a given session instance. I've tried extracting the
declared types from the packages, but that doesn't include classes used in
patterns which where only imported. So determine the actual set of event
classes used by a given set of packages seems not to be so easy.
I've drilled down to EntryPointNode.assertObject......
View this message in context: http://old.nabble.com/Does-Session-effeciently-filter-unused-facts%2C-or....
Sent from the drools - user mailing list archive at Nabble.com.