[jboss-jira] [JBoss JIRA] (DROOLS-427) ResourceChangeScanner problem
Davide Sottara (JIRA)
issues at jboss.org
Fri Feb 14 12:35:28 EST 2014
[ https://issues.jboss.org/browse/DROOLS-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12944813#comment-12944813 ]
Davide Sottara commented on DROOLS-427:
---------------------------------------
Could you plase try version 5.6.0.Final? Many KnowledgeAgent bugs were fixed in that version
The 6.x series no longer implements the KnowledgeAgent and the associated scanners.
Please see the documentation on how to upgrade to the KieScanner
Thanks
Davide
> ResourceChangeScanner problem
> -----------------------------
>
> Key: DROOLS-427
> URL: https://issues.jboss.org/browse/DROOLS-427
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 5.5.0.Final, 6.0.1.Final
> Environment: Windows 7 64bit
> Java jdk1.5.0_22
> Tomcat 6
> Reporter: Xavier Bourdon
> Assignee: Mark Proctor
> Priority: Critical
>
> 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"))
> {
> kBuilder.add(ResourceFactory.newFileResource(_droolsWorkspace + file), ResourceType.DRL);
> }
> }
> KnowledgePackage pkg = null;
> if (kBuilder.getKnowledgePackages().iterator().hasNext())
> {
> pkg = kBuilder.getKnowledgePackages().iterator().next();
> }
> 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)
> {
> DroolsStreamUtils.streamOut(out, pkg);
> }
> }
> finally
> {
> out.close();
> }
> 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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list