Deactivate rule automatically activated via KnowledgeAgent
by FlyingEagle
Hi,
I want to adminstrate and deploy my rules with Guvnor. The deployment is
done with a binary file (.pkg). On my target system, a KnowledgeAgent with
defned change-set is running and activates automatically the rules defined
in the pkg file. Up to this point everything is fine.
How can I now deactivate a rule (remove it from the KnowledgeBase)?
Is there a standard mechanism available to undeploy via Guvnor?
Or must I deploy a new pkg file, which does not contain the rule to be
deactivated?
Are rules automatically deactivated, when the pkg file is deleted on the
target system?
Is this an approach for solution?
What is the best way to solve the problem?
Thanks a lot for your help!
--
View this message in context: http://drools.46999.n3.nabble.com/Deactivate-rule-automatically-activated...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 12 months
Please add me to rule users list
by Atif Tahir/TVM/TCS
Hi
Please add me to rule users list and mail me the updates.
--
Regards,
Mohd Tahir
Tata Consultancy Services Limited
Mail to : atif.tahir(a)tcs.com
Website : http://www.tcs.com
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
13 years, 12 months
cdi support
by Kelly Goedert
Hi,
I asked this same question on seam forum and they told me to ask
here... does drools support cdi?
Thanks
Kelly
13 years, 12 months
StatefulSession finalize() memory question
by sefarm
I'm just beginning at a project that is using Drools in a Desktop
application, currently V 5.2.0.
This is my first contact with Drools.
My first task was to analyze the application's memory usage. I noticed that
there were quite a number of
ReteooStatefulSession's hanging around on the Finalizer queue--they never do
get GC'd (at least not in
normal operation). My question is the motivation for implementing
StatefulSession's with a finalize()
method. My understanding is that it is best practice to call dispose() in
any case, when finished with the
session.
I built drools-core here locally and removed the finalize() method which had
the desired effect--no Sessions
on the Finalizer queue.
The application uses rules as the logic behind data entry masks. One rule
per mask type, one session per
mask instance. There may be several instances of a mask type active at any
time.
Thanks,
Steve
--
View this message in context: http://drools.46999.n3.nabble.com/StatefulSession-finalize-memory-questio...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 12 months
Knowing which constraints are broken for final best solution in drools-planner
by Manuel Aráoz
Hi! I'm new to this forum so... my name is Manuel and I'm using drools
planner to solve an exam scheduling problem :)
I need to analyze which constraints are broken while the algorithm is
running and when the solver finishes also. Geoffrey pointed me to the
examples, where that is done.
I copied the getScoreDetailList() idea from that example, and it works
perfectly fine for when the algorithm is running (constraints are found and
I can inspect them). The basic idea is that this method obtains the working
memory and obtains from it the objects of type ConstraintOccurrence.
The thing is, when the solver finishes and I call this method, it returns
no constraints, even though I know by the score that some constraints are
still broken. Am I doing something wrong? Or is this the expected
behaviour? It seems as if working memory erases the ConstraintOccurrences
when the solver finishes, but I don't really know. In that case, how can I
obtain the constraints broken for the final solution?
Hope I made myself clear! Thanks!
Manuel
14 years
Is it safe to 'build' a knowledgebase (compile rules) in a web app?
by groovenarula
Hello,
In our environment we need to develop a framework wherein we would have
about a dozen rule templates whose data will be provided by users using
spreadsheets. Basically users will upload excel workbooks containing 10-12
worksheets and we'll be using ExternalSpreadsheetCompiler to generate the
appropriate DRLs that will then be 'add'ed to a KnowledgeBuilder class to
create a KnowledgeBase. We need to provide this capability use a web
application deployed in Tomcat.
Question - Are KnowledgeBuilder/ExternalSpreadSheetCompiler thread safe ? Is
it safe to develop this KnowledegeBase build process in a web application ?
If these classes are not thread safe, can someone please advise me on how to
make this framework single threaded ? It's perfectly acceptable for the
framework to be single threaded (essentially if more than a single session
tries to upload a workbook, they will have to wait a few mins if there are
other workbooks being processed ahead of theirs). I know the last question
is not drools centric, but it would be great to hear from the gurus on how
best I can make the build/compile process single threaded.
Please let me know if this is a safe approach to take or if there are ways
to make this approach safe !
Thanks in advance,
-G
--
View this message in context: http://drools.46999.n3.nabble.com/Is-it-safe-to-build-a-knowledgebase-com...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years
global identifier
by Bobby Richards
Is there a way to create a 'global' that is completely specific to a drl
file rather than the working memory? I only wish to use this in rhs
notification/persistence operations, ie passing a user's unique id to a db
or sms operation.
I know this does not work but perhaps it will help to better illustrate my
question:
global int user_id = 123;
...
then
notification.sendSMS(user_id);
14 years
Performance boost separating accumulates or removing typecasting
by ploaiza
I wanted to find out if anyone has a comment on what would increase the
performance of the rules more.
1. Removing the typecasting from strings to enumerations back to strings for
1/3 of all the rules
2. Splitting a rule that gets executed for every request multiple times with
4 accumulates with sum into 4 different rules with single accumulates with
sum
My guess is that the second one would increase the performance more because
keeping all the accumulates in one rule, every time the first accumulate
changes, the other accumulates would have to be recalculated. This could
exponentially affect the performance.
Any comments on this would be greatly appreciated.
--
View this message in context: http://drools.46999.n3.nabble.com/Performance-boost-separating-accumulate...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years
Using Enum list in the guvnor
by Sean Su
Has anyone here successfully used Enum in the guided editor in Guvnor?
I am trying to build a patter with the following pseudo condition but could
not get the Enum list displayed in the drop down of the Enum:
"There is an Event with Event.type (Enum EventType) equal to
EventType.someType".
Here, someType is one of the enum defined in EventType.java.
Event.java has getType() method returns EventType.
Everything seems working fine, exception in the drop down of EventType,
there is no enum defined. It only has the standard API from Enum listed
there.
Any input is appreciated.
Thanks
Sean
14 years
Best way to write a rule where pattern has multiple constraints
by larryc
I was reviewing some of our DRLs and noticed some rules written like this:
when
RuleContext(billingSystem == "ABC")
RuleContext(policyStatus == "active")
RuleContext(renewalDueDate != null)
then ...
while others were written this way:
when
RuleContext(billingSystem == "ABC", policyStatus == "active",
renewalDueDate != null)
then ...
There should only be one RuleContext fact in the knowledge base at one time.
Which approach is better? Is one approach more efficient for Drools than
the other? Does it matter?
Thanks!
--
View this message in context: http://drools.46999.n3.nabble.com/Best-way-to-write-a-rule-where-pattern-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years