[rules-dev] KnowledgeBaseEvent on KnowledgeAgent

Esteban Aliverti esteban.aliverti at gmail.com
Wed May 26 11:22:01 EDT 2010


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
<mohamed.ensi at gmail.com>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
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>



-- 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20100526/e6d8a210/attachment.html 


More information about the rules-dev mailing list