Package org.kie.internal.io

Examples of org.kie.internal.io.ResourceChangeScannerConfiguration


   
    @Before
    public void setUp() throws Exception {
        fileManager = new FileManager();
        fileManager.setUp();
        ResourceChangeScannerConfiguration config = ResourceFactory.getResourceChangeScannerService().newResourceChangeScannerConfiguration();
        config.setProperty("drools.resource.scanner.interval", "1");
        ResourceFactory.getResourceChangeScannerService().configure(config);
        ResourceFactory.getResourceChangeNotifierService().start();
        ResourceFactory.getResourceChangeScannerService().start();
    }
View Full Code Here


    file.delete();
    fileManager.write(file, first);
    Thread.sleep(1100);
   
    // start scanning service with interval 1s
    ResourceChangeScannerConfiguration config = ResourceFactory
        .getResourceChangeScannerService()
        .newResourceChangeScannerConfiguration();
    config.setProperty("drools.resource.scanner.interval", "1");
    ResourceFactory.getResourceChangeScannerService().configure(config);
    ResourceFactory.getResourceChangeNotifierService().start();
    ResourceFactory.getResourceChangeScannerService().start();

    // load knowledge base via knowledge agent
View Full Code Here

        File xlsChangeset = new File(TMP_DIR + "xlsChangeset.xml");
        xlsChangeset.deleteOnExit();
        writeToFile(xlsChangeset, XLS_CHANGESET);
       
        // scan every second
        ResourceChangeScannerConfiguration config = ResourceFactory.getResourceChangeScannerService().newResourceChangeScannerConfiguration();
        config.setProperty("drools.resource.scanner.interval", "1");
        ResourceFactory.getResourceChangeScannerService().configure(config);
       
        // create knowledge agent
        KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("xls agent");
        kagent.applyChangeSet(ResourceFactory.newFileResource(xlsChangeset));
View Full Code Here

TOP

Related Classes of org.kie.internal.io.ResourceChangeScannerConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.