[rules-users] 6.0.1.F How to set Maven repo used by KieScanner?
SrjTx
clickthex at yahoo.com
Wed Mar 19 15:28:16 EDT 2014
I am doing the following, but no rules ever fire. I suspect the maven repo
location is not right -and that no rules are getting loaded - how do I set
it?
I am using /root/.m2/repository
It would be the programmatic equivalent of
-Dorg.guvnor.m2repo.dir=/root/.m2/repository"
Also, how do you list the rules that are in the base? I see there is a
getRule(...), but no getRules.
kieServices = KieServices.Factory.get();
releaseId = kieServices.newReleaseId("com.xyz.policy", "cep",
"LATEST");
kieContainer = kieServices.newKieContainer(releaseId);
kieBase = kieContainer.newKieBase(config);
kieSession = kieBase.newKieSession();
kieSession.addEventListener((RuleRuntimeEventListener) this);
kieScanner = kieServices.newKieScanner(kieContainer);
kieScanner.start(10000L);
--
View this message in context: http://drools.46999.n3.nabble.com/6-0-1-F-How-to-set-Maven-repo-used-by-KieScanner-tp4028804.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list