And here is how my Java code looks like :
public class HelloWorldRuleExecutor {
public static void main(String[] args) {
// TODO Auto-generated method stub
String msg = "xxx";
KieServices ks = KieServices.Factory.get();
KieContainer kContainer = null;
kContainer = ks.newKieContainer(ks.newReleaseId("au.com.xyz",
"HelloWorld", "1.0.0-SNAPSHOT"));
if (kContainer == null)
System.out.println("Null");
KieSession kSession = kContainer.newKieSession();
//kSession.addEventListener( new DebugRuleRuntimeEventListener());
//kSession.setGlobal("message",msg);
//defaultStatelessKieSession
kSession.fireAllRules();
// System.out.println(msg);
}
}
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools6-Having-trouble-in-using-kie-ci-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.