[rules-dev] New rules are not reflecting at runtime without Binary package build in Guvnor UI
Antin Brucelee -X (abrucele - INFOSYS TECHNOLOGIES LIMITED at Cisco)
abrucele at cisco.com
Mon Jun 3 03:29:57 EDT 2013
Hi,
I have a requirement of executing all the rules under a specific package. The new rules getting added in Guvnor API and Standalone editior are not getting reflected until I build the Binary package again using Guvnor UI. I want to allow users to create new rules and want them to be active immediately without coming to Guvnor to build the binary again.
I tried making a GET request to "http://... /rest/packages/SupplyChain/binary" to build the binary again, but the new rule is not reflected. I also tried the following configuration also.
ResourceChangeScannerConfiguration sconf = ResourceFactory.getResourceChangeScannerService().newResourceChangeScannerConfiguration();
sconf.setProperty("drools.resource.scanner.interval", "2");
ResourceFactory.getResourceChangeScannerService().configure(sconf);
KnowledgeAgentConfiguration kaconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
kaconf.setProperty( "drools.agent.scanDirectories","true" );
kaconf.setProperty("drools.agent.scanResources", "true");
kaconf.setProperty("drools.agent.newInstance", "false");
Please let me know if there is any other way of building the package with all the latest updates (including new assets) using REST API ?
Thanks
Bruce
Thanks
Antin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20130603/eec6a8f6/attachment-0001.html
More information about the rules-dev
mailing list