Hello Folks,
I am new to activiti as well as drools and we are evaluating the tool as an orchestration engine for one of our products.
After some struggle today I could deploy the activiti jars and in activiti-explorer\WEB-INF\lib and my ServiceTask and POJO class deployed in ctiviti-explorer\WEB-INF\classes.
Here is the code snip :
try {
// load up the knowledge base
KieServices ks = KieServices.Factory.get();
KieContainer kContainer = ks.getKieClasspathContainer();
KieSession kSession = kContainer.newKieSession("ksession-rules");
ApporveReject approveReject = new ApporveReject();
approveReject.setStatus(0);
kSession.insert(approveReject);
kSession.fireAllRules();
}catch (Throwable t) {
t.printStackTrace();
}
Now, it seems that the drl file is not to be found. Check below :
04:49:43,078 [http-8080-1] INFO org.drools.compiler.kie.builder.impl.ClasspathKieProject - Found kmodule: file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat6.0/webapps/activiti-explorer/WEB-INF/classes/META-INF/kmodule.xml
04:49:43,133 [http-8080-1] INFO org.drools.compiler.kie.builder.impl.KieRepositoryImpl - KieModule was added:FileKieModule[ ReleaseId=1:1:1file=\Program Files\Apache Software Foundation\Tomcat6.0\webapps\activiti-explorer\WEB-INF\classes]
04:49:43,697 [http-8080-1] WARN org.drools.compiler.kie.builder.impl.AbstractKieModule - No files found for KieBase rules, searching folder \Program Files\Apache Software Foundation\Tomcat6.0\webapps\activiti-explorer\WEB-INF\classes
I have tried putting my drl file in following locations without success, any suggestions, pls?
activiti-explorer\WEB-INF\classes
activiti-explorer\WEB-INF\lib
activiti-explorer\WEB-INF\classes\mypkg\
Appreciate any help on this.
-Raj