Remote debug as Drools App on Eclipse
by rogelio_sevilla1
Good day everyone, sorry if this is a basic question.
I'm using eclipse and I know that you can debug an App as a Drools
application to be able to debug the .drl contents. I have always used this
feature on apps that reside on my local machine.
I have also used the "Debug as a Remote Java Application" feature within
eclipse, however, I honestly don't know how to Debug a Remote App as a
Drools Application; is it possible??
Thanks a lot in advance for your time.
--
View this message in context: http://drools.46999.n3.nabble.com/Remote-debug-as-Drools-App-on-Eclipse-t...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 7 months
Knowledge Agent subdirectry scanning
by rogelio_sevilla1
Hello everyone,
I have already searched for this, and although is quite simple, I just don't
find how to do it. I want my knowledge agent to scan the subdirectories that
lie within the directory specified on the changeset.
Suppose my changeset has this:
<resource source='file://home/myuser/myrules/' type='DRL' />
The agent scans the drl files within my /home/myuser/myrules/ folder, but
if I add another folder like
/home/myuser/myrules/mysubdirectory , the agent does not find them, is
there any option I'm missing?? , I'm using drools 5.1.1 .
thanks a lot in advance :)
--
View this message in context: http://drools.46999.n3.nabble.com/Knowledge-Agent-subdirectry-scanning-tp...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 7 months
Re: [rules-users] Sir, Seekin your's Help on Drool
by Wolfgang Laun
San,
(1) Do NOT post the same thing four times.
(2) Do NOT start with decision tables. After one month you should be
able to write a simple rule in DRL.
(3) Do NOT post questions without providing sufficient context. is
maturityAge a field of PremiumCalculatorFormBean? Why do you define
this function getMaturityAge? How is it defined?
(4) Do NOT say that there is an error unless you show sufficient
context. You do not pass "pp" to any function in the code you show -
so what's the point in saying "not able to find" etc.
(5) Use the list, do NOT email me directly. I answer the list if I
have the time.
-W
On 18/04/2012, Sangram Jethy <sangram.jy(a)gmail.com> wrote:
> Hi
>
> I am a student who recently working as a java developer on drools.I have
> been going thru drools over last one month.
>
> Nw I hav a couple of doubt...i am struck ....pz reply me if u cud find time
> out of yr busy schedule...
>
> I am trying to cal a local function getMaturityAge() in the decision table
> condition column like
>
> RuleTable MaturityAge Validation
> CONDITION
> ACTION
> pp:PremiumCalculatorFormBean
> getMaturityAge() > "$1"
> System.out.println("invalid maturity age");
> Premium Payment Term Print out
> message?
> 70 X
>
> The method is defined localy using functions key word.
> This is showing error in function line is ...... getMaturityAge() >
> "$1"......
> And moreover whenever I trying to pass pp as the argument to my functions,
> its not able to find pp. I am getting cud not parse knowledge error.
> Pz tel me how to make it work...
>
> Also pz suggest some extensive reading material for rules both in( ddr and
> decision table format ). I am also goin thru d documentation n Mr Paul
> Brown book. But i cudnt find more on using decision table and its syntax.
> Pz suggest me on dat.
>
>
> Tnks n Regards
>
> Sangram Jethy (San)
>
12 years, 7 months
JBPM 5 Console
by Alberto R. Galdo
Hi,
Our set-up consists in a KnowledgeSession that lives in an OSGi
environment wich contains rules, processes, events, .... and it is
connected to an Guvnor installation in a JBoss aplication server ...
What we are trying to accomplish is to be able to use the JBPM Console
with our current Knowledge Session. Our plan is to install JBPM-Console in
our current JBoss connected to our session in the OSGi container ( Equinox
).
There seem to be a lack of documentation for this kind of installation
and in the manual the automated installation is recommended ( the one that
has Guvnor, JBPM Console, Drools, etc... all in one package ). We've
tested the automated installation and indeed there it is the console,
drools and so on, and it works, but when we peek at the code to find ways
of integrating our "remote" ( at least in another virtual machine )
session we saw that whenever jbpm-console doesn't find a current knowledge
session it starts one in the current virtual machine using processes,
rules that exist there on purpose. In other words jbpm-console seems to
work only for local ( as in the same virtual machine ) knowledge sessions.
Also there's an integration API wich solves this problem and abstracts
different knowledgesessions providers from the knowledge-api point of view
... but we couldn't find any definitive documentation that fills the gaps.
Can you give us any pointers to documentation on the subject. Will we be
able to get a JBPM-Console accessing ( and managin ) our processes living
in a session on another virtual machine?
Best regards,
Alberto R. Galdo
argaldo(a)gmail.com
12 years, 7 months
jbpm and rule flow
by sumatheja
Hi All,
I'm a bit confused regarding the differences between the two. I
understand that JBPM is a complete workflow with full workflow
capabilities. But will the rule-flows continue to work? I've created a
sample rule-flow, but it doesn't work until I put the jbpm jars in the
classpath. I can remember in older versions of drools I never used to
import these jars seperately.
Is it recommended to continue writing rule-flows with the latest
versions?? I'll be grateful if someone can provide me a link where I can
get my confusions cleared.
Thanks in advance
--
cheers
Sumatheja Dasararaju
12 years, 7 months
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.
12 years, 7 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
12 years, 7 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
12 years, 7 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.
12 years, 7 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
12 years, 7 months