-
Bug
-
Resolution: Obsolete
-
Critical
-
5.5.0.Final, 6.0.1.Final
-
None
-
None
-
Windows 7 64bit
Java jdk1.5.0_22
Tomcat 6
I have a problem of execution of all my rules after PKG compilation.
STEP :
1) DRL files generation (43 rules).
2) PKG compilation
KnowledgeBuilder kBuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
File droolsWorkspaceFile = new File(_droolsWorkspace);
for (String file: droolsWorkspaceFile.list())
{
if (file != null && file.endsWith(".drl"))
}
KnowledgePackage pkg = null;
if (kBuilder.getKnowledgePackages().iterator().hasNext())
if (kBuilder.getErrors() != null && !StringUtil.isEmpty(kBuilder.getErrors().toString()))
{ LOGGER.error(kBuilder.getErrors().toString() + "\n"); } FileOutputStream out = new FileOutputStream(_droolsWorkspace + "MarketingActionEngineRules.pkg");
try
{
if (pkg != null)
}
finally
3) Launch rules (43 rules executed)
kSession.fireAllRules();
4) DRL files generation (43 rules : same rules).
5) PKG compilation
6) Refresh Knowledge Agent
ResourceFactory.getResourceChangeScannerService().scan();
7) Launch rules (41 rules executed)
The first two rules are not executed