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.
13 years, 10 months
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
13 years, 10 months
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?
13 years, 10 months
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.
13 years, 10 months
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
13 years, 10 months
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.
13 years, 10 months
Re: [rules-users] hardcore masterclass (west london)
by sam.squire@paretopartners.com
The hardcore masterclass sounds interesting to me.
Where would it be held and what would the entry fees be?
Sam Squire
From: rules-users-request(a)lists.jboss.org
To: rules-users(a)lists.jboss.org
Date: 12/02/11 23:39
Subject: rules-users Digest, Vol 51, Issue 40
Sent by: rules-users-bounces(a)lists.jboss.org
Send rules-users mailing list submissions to
rules-users(a)lists.jboss.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
rules-users-request(a)lists.jboss.org
You can reach the person managing the list at
rules-users-owner(a)lists.jboss.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of rules-users digest..."
Today's Topics:
1. Re: hardcore masterclass (west london) (Mark Proctor)
2. Re: hardcore masterclass (west london) (Mark Proctor)
3. Re: hardcore masterclass (west london) (Mauricio Salatino)
4. Re: hardcore masterclass (west london) (Salina Fung/UFL - ICIL)
----------------------------------------------------------------------
Message: 1
Date: Sat, 12 Feb 2011 17:49:03 +0000
From: Mark Proctor <mproctor(a)codehaus.org>
Subject: Re: [rules-users] hardcore masterclass (west london)
To: rules-users(a)lists.jboss.org
Message-ID: <4D56C80F.3090601(a)codehaus.org>
Content-Type: text/plain; charset="iso-8859-1"
On 12/02/2011 16:27, Mauricio Salatino wrote:
> I'm really interested in that kind of courses, but I'm pretty far
> away. Can I help you creating material and content for those courses?
> In that way we can share the meetups knowledge in different places.
Wasn't planning to do any preparation, far too much work. To formally
prepare teaching material for this that could be handled for people at
all levels would take me weeks :)
Mostly just taking people over code and doodling on board some of the
data structures and verbally explaining how things work.
Mark
>
> Greetings.
>
>
> On Sat, Feb 12, 2011 at 12:56 PM, Mark Proctor <mproctor(a)codehaus.org
> <mailto:mproctor@codehaus.org>> wrote:
>
> 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
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org <mailto:rules-users@lists.jboss.org>
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>
> --
> - CTO @ http://www.plugtree.com
> - MyJourney @ http://salaboy.wordpress.com
> - Co-Founder @ http://www.jbug.com.ar
>
> - Salatino "Salaboy" Mauricio -
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.jboss.org/pipermail/rules-users/attachments/20110212/7f5cc82...
------------------------------
Message: 2
Date: Sat, 12 Feb 2011 18:04:42 +0000
From: Mark Proctor <mproctor(a)codehaus.org>
Subject: Re: [rules-users] hardcore masterclass (west london)
To: rules-users(a)lists.jboss.org, Rules Dev List
<rules-dev(a)lists.jboss.org>
Message-ID: <4D56CBBA.5060606(a)codehaus.org>
Content-Type: text/plain; charset="utf-8"
On 12/02/2011 16:53, Greg Barton wrote:
> I'd be interested in listening in if you can webcast it.
See previous email :) probably way to unstuctured. Think of it more as
pair programming mentoring, than formal teaching. Which works great with
two or three people in a room together.
I could be tempted to do some remote sessions, shared desktop etc -
although in reality this would be no different from our current IRC
availability, where we are always willing to talk through core code with
people. Remote voice can also often by very dry and boring. What I need
to avoid is formal lecturing, I don't have the time to prepare for that.
But I could talk through some of the classes and data structures.
I guess it depends how serious peple are out there. If there are two or
three people that say they'll make time to do some core work each week,
I would be willing to formalise more of the content. But I'm reluctant
to do that without some quid pro quo :)
My goal from this is to help some people who have wanted to do core
engine work, who have the desire, but not quite sure how to start.
Mark
>
> GreG
>
> On Feb 12, 2011, at 10:27, Mauricio Salatino <salaboy(a)gmail.com
> <mailto:salaboy@gmail.com>> wrote:
>
>> I'm really interested in that kind of courses, but I'm pretty far
>> away. Can I help you creating material and content for those courses?
>> In that way we can share the meetups knowledge in different places.
>>
>> Greetings.
>>
>>
>> On Sat, Feb 12, 2011 at 12:56 PM, Mark Proctor <mproctor(a)codehaus.org
>> <mailto:mproctor@codehaus.org>> wrote:
>>
>> 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
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)lists.jboss.org <mailto:rules-users@lists.jboss.org>
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>>
>>
>> --
>> - CTO @ http://www.plugtree.com
>> - MyJourney @ http://salaboy.wordpress.com
>> - Co-Founder @ http://www.jbug.com.ar
>>
>> - Salatino "Salaboy" Mauricio -
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)lists.jboss.org <mailto:rules-users@lists.jboss.org>
>> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.jboss.org/pipermail/rules-users/attachments/20110212/c804585...
------------------------------
Message: 3
Date: Sat, 12 Feb 2011 17:07:42 -0300
From: Mauricio Salatino <salaboy(a)gmail.com>
Subject: Re: [rules-users] hardcore masterclass (west london)
To: Rules Users List <rules-users(a)lists.jboss.org>
Cc: Rules Dev List <rules-dev(a)lists.jboss.org>
Message-ID:
<AANLkTinZ4STQgka80PvD9ybTVfegU7qOSwt9q4KLFYz_(a)mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Count me in!
I will be thinking about how to reach west london :). I'm one of those
that
you mention.
It's a very good initiative!
Greetings!
2011/2/12 Mark Proctor <mproctor(a)codehaus.org>
> On 12/02/2011 16:53, Greg Barton wrote:
>
> I'd be interested in listening in if you can webcast it.
>
> See previous email :) probably way to unstuctured. Think of it more as
pair
> programming mentoring, than formal teaching. Which works great with two
or
> three people in a room together.
>
> I could be tempted to do some remote sessions, shared desktop etc -
> although in reality this would be no different from our current IRC
> availability, where we are always willing to talk through core code with
> people. Remote voice can also often by very dry and boring. What I need
to
> avoid is formal lecturing, I don't have the time to prepare for that.
But I
> could talk through some of the classes and data structures.
>
> I guess it depends how serious peple are out there. If there are two or
> three people that say they'll make time to do some core work each week,
I
> would be willing to formalise more of the content. But I'm reluctant to
do
> that without some quid pro quo :)
>
> My goal from this is to help some people who have wanted to do core
engine
> work, who have the desire, but not quite sure how to start.
>
> Mark
>
>
> GreG
>
> On Feb 12, 2011, at 10:27, Mauricio Salatino <salaboy(a)gmail.com> wrote:
>
> I'm really interested in that kind of courses, but I'm pretty far away.
> Can I help you creating material and content for those courses? In that
way
> we can share the meetups knowledge in different places.
>
> Greetings.
>
>
> On Sat, Feb 12, 2011 at 12:56 PM, Mark Proctor
<mproctor(a)codehaus.org>wrote:
>
>> 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
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
>
> --
> - CTO @ http://www.plugtree.com
> - MyJourney @ http://salaboy.wordpress.com
> - Co-Founder @ http://www.jbug.com.ar
>
> - Salatino "Salaboy" Mauricio -
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing
listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.jboss.org/pipermail/rules-users/attachments/20110212/5cb2934...
------------------------------
Message: 4
Date: Sun, 13 Feb 2011 07:29:43 +0800
From: "Salina Fung/UFL - ICIL" <salina(a)icil.net>
Subject: Re: [rules-users] hardcore masterclass (west london)
To: "Rules Users List" <rules-users(a)lists.jboss.org>
Message-ID: <20110212232943.564b16ad(a)icillx01.icil.net>
Content-Type: text/plain; charset="us-ascii"
I am interested in the webcast or the online course too
Thanks
Salina
----- Original Message -----
From: Greg Barton
[mailto:greg_barton@yahoo.com]
To: Rules Users List
[mailto:rules-users@lists.jboss.org]
Sent: Sun, 13 Feb 2011 00:53:33
+0800
Subject: Re: [rules-users] hardcore masterclass (west london)
> I'd be interested in listening in if you can webcast it.
>
> GreG
>
> On Feb 12, 2011, at 10:27, Mauricio Salatino <salaboy(a)gmail.com> wrote:
>
> > I'm really interested in that kind of courses, but I'm pretty far
away.
> Can I help you creating material and content for those courses? In that
way
> we can share the meetups knowledge in different places.
> >
> > Greetings.
> >
> >
> > On Sat, Feb 12, 2011 at 12:56 PM, Mark Proctor <mproctor(a)codehaus.org>
> wrote:
> > 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
> >
> > _______________________________________________
> > rules-users mailing list
> > rules-users(a)lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
> >
> > --
> > - CTO @ http://www.plugtree.com
> > - MyJourney @ http://salaboy.wordpress.com
> > - Co-Founder @ http://www.jbug.com.ar
> >
> > - Salatino "Salaboy" Mauricio -
> > _______________________________________________
> > rules-users mailing list
> > rules-users(a)lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
>
------------------------------
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
End of rules-users Digest, Vol 51, Issue 40
*******************************************
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.
13 years, 10 months
Travelling Salesman
by Lukáš Petrovický
Hello,
I've been making myself familiar with Drools Planner and in the process
of doing so, I've hacked together a simple algorithm for optimizing the
Travelling Salesman Problem:
https://github.com/triceo/DroolingTSP
At this point, I get a 7 % improvement over a route with 71 stops, which
was previously assembled using a nearest-neighbor algorithm. The reason
why the improvement isn't bigger is that I'm stuck with Tabu search only
- for my use case, simulated annealing doesn't work at all. (Exits
forcefully after 1 to 7 steps, resulting in only a minimal improvement.)
I'll be interested in any comments and suggestions you might be able to
provide.
Best regards!
--
Lukáš Petrovický
QA Engineer, JBoss Enterprise BRMS
JBoss by Red Hat,
Czech Republic
13 years, 10 months
Type Declaration upgrade
by delete
Hi.
I have such declaration of type
declare Contact
firstName : String
end
then I want to add new property to this type. so the next version is
declare Contact
firstName : String
newField : String
end
this type declaration is in separate drl file.
then I add this new type to current KnowledgeBase.
but when I execute knowledgeBase.getFactType("test.package", "Contact");
I get old version of Contact.
During debugging I found the place where is should be upgraded in the
KnowledgeBase.
org.drools.common.AbstractRuleBase.mergePackage
there is
// merge the type declarations
if ( newPkg.getTypeDeclarations() != null ) {
// add type declarations
for ( TypeDeclaration type :
newPkg.getTypeDeclarations().values() ) {
// @TODO should we allow overrides? only if the class is not
in use.
if ( !pkg.getTypeDeclarations().containsKey(
type.getTypeName() ) ) {
// add to package list of type declarations
pkg.addTypeDeclaration( type );
}
}
}
so according this comments it's not possible to upgrade Type on the fly.
Am I missing something?
Does someone had such problems or know the workaround.
Thanks in advance,
Yuriy
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Type-Declaration-upgr...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 10 months