Ah, I see. Then I probably don't need to worry about it in my application :)
-----Original Message-----
From: Wolfgang Laun [mailto:wolfgang.laun@gmail.com]
Sent: den 29 juni 2012 12:19
To: Rules Users List
Subject: Re: [rules-users] ResourceCompilationFailedEvent - when does it happen, and why?
I'd add another <resource type="DRL">, pointing to a file
source="x.drl" and experiment with that file. Making syntax errors in DRL is
easy enough ;-) -W
On 29/06/2012, Gustaf Cele <gustaf.cele(a)databyran.se> wrote:
I'm trying to understand what KnowledgeAgentEventListener.
resourceCompilationFailed signifies, and when it occurs. The javadocs
don't say anything, and it's not entirely obvious from looking at the
code what causes it. Suppose I have KnowledgeAgent with
newInstance=true and initialized with a changeset which links to a Guvnor instance like
this:
<change-set >
<add>
<resource type="PKG"
source="http://guvnor-host/drools-guvnor/org.drools.guvnor.Guvnor/package/com.example.rules/LATEST"
/>
</add>
</change-set>
Just throwing syntax errors into the rules in Guvnor obviously doesn't
work, since I can't even build the binary package then. Is there any
way to provoke this event with the above setup, so I can see how it
affects my application? I'm using Drools 5.4.0.Final.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users