Michael Neale wrote:
Hi Steve - right - so it was luck that it was working in the first place?

Do you have the DSL listed in the agent before the DRL? that much
*should* be required - as it needs to have the DSL loaded before it
can apply it to the subsequent dslrs.

If they are in the order which is required, and doesn't work - could
you create a JIRA for this (perhaps with a sample to try it with) as
it is clearly a bug, it can't rely on luck or names ;)
  
Someone was on IRC the other day and found the source of this bug. We keep the list of resources in a hashmap, which loses the order. Need to change that to a LinkedHashMap. I believe they opened a JIRA for it, don't recall it's number off the top of my head.

Mark

On Wed, Nov 25, 2009 at 7:53 AM, Steve Ronderos <steve.ronderos@ni.com> wrote:
  
Hello Rules Devs,

I'm experiencing an issue in Drools 5.0.1.FINAL using a KnowledgeAgent to
build my rules which are defined in a change-set.xml file.  My rules
resources contain a dsl and a dslr.  Everything was working perfectly until
today when I changed the names of the dsl and dslr files.  All of the sudden
the Agent started throwing exceptions saying that the dsl patterns could not
be expanded.  After a little research it appears that the reason this is
happening is that the Agent does not necessarily build the resources defined
in the change-sets provided to it in the order that the resources are
defined.  For now I have stopped using the KnowledgeAgent.  It turns out
that I'm not really using any of the KnowledgeAgent features and that a
KnowledgeBase will work fine for now.  In the future I would like to use the
KnowedgeAgent.  I googled around a little to try to find any other
information on this issue but found nothing.  Is this a known issue? Should
I log a JIRA request?

Thanks,

Steve Ronderos
_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev