how to stop rule execution
by Sathya Prakash
Hi,
How to stop rule execution in technical rule,
Example
rule "Error Check"
salience 100
when
error condition check
then
System.Out.Println("Response has errors");
XXXXXXXXXXXXXXXXXXXXXXXX to exit from rule execution
end
rule "Rule-01"
salience 99
when
repsonse.getxx()
then
end.
if first rule then part executed means the response is error hence we should
not execute second.
Is there any way to exit rule execution.
Regards,
Sathya Prakash.
15 years
Drools - behaviour
by Bala
Hi,
I am using drools - 5.0.1. In my application, knowledge session is created
each time for each user request. After server startup when the user request
for the first time, it's taking too much time to respond. But on subsequent
request, the response time is good.
Whether it could be beacause of drools classes dynamically loaded when user
request it for the first time??
Seriously i am clueless in this regard... can anyone help?????
Thanks in advance...
-Bala
-----
Thanks,
Bala
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-behaviour-tp25...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years
why inject the kagent: drools-spring api
by mmjose26
Hi!
I'm new using spring-drools api, and I have some doubts about api
implementation:
I review the source code of KnowledgeAgentDefinitionParser, I don't
understand why we need to inject the kagent into any stateless sessions.
and this code:
// inject the kagent into any stateless sessions (why?)
for ( String beanName : parserContext.getRegistry().getBeanDefinitionNames()
) {...}
only iterates over the spring beans that has been loaded (at run time) in
the memory but not over all beans defined,
so it isn't the desired effect.
it happens too whith KnowledgeSessionDefinitionParser:
// find any kagent's for the current kbase and assign (why?)
for ( String beanName :
parserContext.getRegistry().getBeanDefinitionNames() ) {
and may ocurr the exception with stateful sessions: Error setting property
values; nested exception is
org.springframework.beans.NotWritablePropertyException: Invalid property
'knowledgeAgent'
this not happens in test cases because the order of drools-spring beans
definitions
Tanks for your help!
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/why-inject-the-kagent...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years
Re: [rules-users] Drools 5.1: What happens when an incremental KA rebuild fails?
by Esteban Aliverti
I will check this problem. I'll need to create a test scenario first.
Which version of drools are you using? Does the error still occurrs if you
point to the drl instead of the directory?
Best regards!
El ene 14, 2011 5:14 p.m., "ljnelson" <ljnelson(a)gmail.com> escribió:
Seeing some strange things on a production system.
I have Drools set up to use a KnowledgeAgent.
I have the KnowledgeAgent set up to scan resources and directories.
The agent is pointed at--let's say--C:\LEAD\rules, where "LEAD" is the name
of the project in question and "rules" is a directory underneath which I
would like to have several .drl files.
I begin by placing one well-known, valid .drl file under there. That
obviously loads up fine and the rules go into effect.
If I deliberately introduce a syntax error, I hear about it in the
logs--that's fine too.
But if I then remove the syntax error, it's as though scanning stops. The
KnowledgeAgent appears as though it is never rebuilt again, so it appears
simply to be broken.
I will obviously supply more details as needed, but thought I'd fire this
quick flare to see if anyone knows of any simple cause here.
Best,
Laird
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Drools-5-1-What-happe...
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
15 years
Trigering flows from rules
by Luciano A. Andrade
Theres any way to triger a flow (process) from a Rule or shuld be
allway the flow that trigers the rules.
Maybe ¿Inserting a even fact?
15 years
Drools Server and BPMN2
by rtmacphail
Hi,
Does the Drools Server (v. 5.1) support the new BMPN2 implementation of the
drools flow? If so, how do I configure my knowledge session in the
knowledge-services.xml?
I have tried:
<drools:resource type="BPMN2" source="classpath:reg-fee-calc.bpmn"/>
and
<drools:resource type="DRF" source="classpath:reg-fee-calc.bpmn"/>
But neither work.
Thanks in advance for any help.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Server-and-BPM...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years
hardcore masterclass (west london)
by Mark Proctor
I was just wondering if anyone was interested in learning hard core rule
engine theory, with the aim of helping you to develop some core engine
features and be involved in the next generation Drools engine. If this
interests anyone let me know and I can organise some meetups, probably
based in West London (Chiswick).
Mark
15 years
Re: [rules-users] hardcore masterclass (west london)
by sam.squire@paretopartners.com
Apologies, lotus notes doesn't put the replied message into >> blocks.
Sam Squire
This message may contain confidential and privileged information and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorised. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator and then immediately delete this message. Although we attempt to sweep e-mail and attachments for viruses, we do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of viruses.
Please refer to http://www.bnymellon.com/disclaimer/piml.html for certain disclosures.
15 years