Package org.kie.api.builder

Examples of org.kie.api.builder.KieScanner


        KieSession ksession = kieContainer.newKieSession("KSession2");
        checkKSession(ksession, "rule1", "ruleX");

        resetFileManager();

        KieScanner scanner = ks.newKieScanner(kieContainer);

        InternalKieModule kJar2 = createKieJar(ks, includedReleaseId, "rule2");
        repository.deployArtifact(includedReleaseId, kJar2, createKPom(fileManager, includedReleaseId));
        resetFileManager();

        InternalKieModule containerKJar2 = createIncludingKJar(containerReleaseId, includedReleaseId, "ruleY");
        repository.deployArtifact(containerReleaseId, containerKJar2, createKPom(fileManager, containerReleaseId, includedReleaseId));
        resetFileManager();

        scanner.scanNow();

        KieSession ksession2 = kieContainer.newKieSession("KSession2");
        checkKSession(ksession2, "rule2", "ruleY");

        ks.getRepository().removeKieModule(containerReleaseId);
View Full Code Here


            }
            long si = scanInterval.longValue();
            if (si < 1) {
                throw CommonKnowledgeMessages.MESSAGES.containerScanIntervalMustBePositive();
            }
            KieScanner scanner = KieServices.Factory.get().newKieScanner(_kieContainer);
            addDisposals(Disposals.newDisposal(scanner));
            scanner.start(si);
        }
    }
View Full Code Here

        //step 5: reploy the module
        redeployModule(repository, ks);

        //step 6: force the kie-scanner to scan
        KieScanner releaseIdScanner = context.getBean("spring-scanner-releaseId#scanner", KieScanner.class);
        releaseIdScanner.scanNow();

        //step 7: retest the value to ensure the scanner has picked up the new value
        checkForValue(SECOND_VALUE);

        //step 8: cleanup. Remove the module
View Full Code Here

        ReleaseId releaseId = context.getBean("spring-scanner-releaseId", ReleaseId.class);
        assertNotNull(releaseId);
    }

    protected void lookupReleaseIdScanner() throws Exception {
        KieScanner releaseIdScanner = context.getBean("spring-scanner-releaseId#scanner", KieScanner.class);
        assertNotNull(releaseIdScanner);
    }
View Full Code Here

TOP

Related Classes of org.kie.api.builder.KieScanner

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.