[rules-users] Scanning changeset changes

varces varces78 at yahoo.com.ar
Wed Aug 3 22:31:56 EDT 2011


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.



More information about the rules-users mailing list