Sorry, I forgot to ask you the version of drools you are using.

On Wed, May 26, 2010 at 12:14 PM, Mohamed BEN AYED
<[email protected]>wrote:

>
> ok
>
>  String xml;
>                         xml="<change-set xmlns='
> http://drools.org/drools-5.0/change-set'\n"+
>                           " xmlns:xs='
> http://www.w3.org/2001/XMLSchema-instance'\n"+
>
> "xs:schemaLocation='http://drools.org/drools-5.0/change-set.xsd'>\n"+
>                   "<add>\n"+
>                      "<resource source='file:C:/package/package1'
> type='PKG'/>\n"+
>                   "</add>\n"+
>                "</change-set>\n";
>                          InputStream stream=new
> StringBufferInputStream(xml);
>
>  agent.applyChangeSet(ResourceFactory.newInputStreamResource(stream));
>
> when I add: kbase=kagent.getKnowledgeAgent(); it's fine, the rule will be
> executed, but if I delete it, rule will not be executed
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/KnowledgeBaseEvent-on-KnowledgeAgent-tp842269p845120.html
> Sent from the Drools - Dev mailing list archive at Nabble.com.
> _______________________________________________
> rules-dev mailing list
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-dev
>



-- 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
_______________________________________________
rules-dev mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-dev

Reply via email to