Knowledge Agent doesn't listen on changeset changes. What you can do is to create a new changeset and apply it into the agent whenever you want to add a new resource.

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Thu, Aug 4, 2011 at 4:31 AM, varces <varces78@yahoo.com.ar> wrote:
I need to scan changes in the changset.xml file, when I  add a new  resource
entry  in the changeset.xml file, I need to update the knowledgebase  with
the new package.
If I have this  changeset.xml whent startup the drools engine:

<change-set xmlns="http://drools.org/drools-5.0/change-set"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"


xs:schemaLocation="http://drools.org/drools-5.0/change-set
change-set-1.0.0.xsd" >

 <add>

 <resource
source='http://myguvnor/guvnor/org.drools.guvnor.Guvnor/package/ar.com.urgencias/LATEST'

   type='PKG'/>

 </add>



</change-set>

Later (in runtime) I need to add a new package from guvnor
<change-set xmlns="http://drools.org/drools-5.0/change-set"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"


xs:schemaLocation="http://drools.org/drools-5.0/change-set
change-set-1.0.0.xsd" >

 <add>

 <resource
source='http://myguvnor/guvnor/org.drools.guvnor.Guvnor/package/ar.com.urgencias/LATEST'

   type='PKG'/>

 <resource
source='http://myguvnor/guvnor/org.drools.guvnor.Guvnor/package/ar.com.alertas/LATEST'

   type='PKG'/>

 </add>



</change-set>

Can Drools update the knowledge base automatically with the agent detecting
the change in the changeset.xml file?
Is there any way to update the knowledge base with a new  package in runtime
from guvnor?
Thanks

--
View this message in context: http://drools.46999.n3.nabble.com/Scanning-changeset-changes-tp3224198p3224198.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users