[rules-users] ResourceCompilationFailedEvent - when does it happen, and why?

Wolfgang Laun wolfgang.laun at gmail.com
Fri Jun 29 06:19:23 EDT 2012


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 at 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.
>


More information about the rules-users mailing list