drools.kbuilder.severity.duplicateRule/duplicateFunction" properties without success. (Cfr doc: 4.2.2.5. Changing the Default Build Result Severity).
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/0800206a-3823-4cd4-a235-f2629aecba59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
17:27:30,056 ERROR [AbstractKieModule] Unable to build KieBaseModel:kb-qualification[28,0]: Duplicate rule name: Qualification##Commons##Unblock Messages##From ExpectedMessage fact[45,0]: Duplicate rule name: Qualification##Commons##Unblock Messages##From Process fact[63,0]: Duplicate rule name: Qualification##Commons##Unblock Messages##Replay messageRule Compilation error : [Rule name='Qualification##Commons##Unblock Messages##From Process fact'] qualification/standard/commons/unblockMessages/Rule_Qualification$u35$$u35$Commons$u35$$u35$Unblock_Messages$u35$$u35$From_Process_fact644692114.java (6:1116) : Duplicate method defaultConsequence(KnowledgeHelper, Message, FactHandle) in type Rule_Qualification$u35$$u35$Commons$u35$$u35$Unblock_Messages$u35$$u35$From_Process_fact644692114 qualification/standard/commons/unblockMessages/Rule_Qualification$u35$$u35$Commons$u35$$u35$Unblock_Messages$u35$$u35$From_Process_fact644692114.java (13:1502) : Duplicate method defaultConsequence(KnowledgeHelper, Message, FactHandle) in type Rule_Qualification$u35$$u35$Commons$u35$$u35$Unblock_Messages$u35$$u35$From_Process_fact644692114 qualification/standard/commons/unblockMessages/Rule_Qualification$u35$$u35$Commons$u35$$u35$Unblock_Messages$u35$$u35$From_Process_fact644692114.java (3:939) : The type Rule_Qualification$u35$$u35$Commons$u35$$u35$Unblock_Messages$u35$$u35$From_Process_fact644692114 is already defined
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/0266be81-2148-4095-8458-dcd95c970813%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANinqmfkjwwx0qBifJXbuLsuL%3DtckXvgkLTk6c%3D-VXvdNZL1Mg%40mail.gmail.com.
KnowledgeBuilder builder = KnowledgeBuilderFactory.newKnowledgeBuilder();
builder.add(defaultFileResource, ResourceType.DRL); //compiles the default file
builder.add(customFileResource, ResourceType.DRL); //compiles the custom file, overriding rules with the same name in the default
KnowledgeBase base = KnowledgeBaseFactory.newKnowledgeBase();
base.addKnowledgePackages(builder.getKnowledgePackages());To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/14c41bbc-e5a2-4cde-8e7d-b36c5d40c80b%40googlegroups.com.
KieServices kieServices = KieServices.Factory.get()
KieModuleModel kieModuleModel = kieServices.newKieModuleModel()
...
KieBaseModel kieBaseModel = kieModuleModel.newKieBaseModel('statelessKieBase')
...
kieBaseModel.newKieSessionModel('statelessKieSession')
...
KieFileSystem kfs = kieServices.newKieFileSystem()
kfs.writeKModuleXML(kieModuleModel.toXML())
// write some resources to the file system
kfs.write(...)
kfs.writeKModuleXML(kieModuleModel.toXML())
KieBuilder kieBuilder = kieServices.newKieBuilder(kfs)
kieBuilder.buildAll()
...
KieContainer kieContainer = kieServices.newKieContainer(kieServices.getRepository().getDefaultReleaseId())
StatelessKieSession kieSession = kieContainer.newStatelessKieSession('statelessKieSession')
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/6a9a5fa7-783e-4377-9998-21b562f430b2%40googlegroups.com.
So does that mean that the new customer version would need to contain all relevant rule files, not just their modification?
Say we deploy a default version with three rules ("Rule 1", "Rule 2", and "Rule 3") as version 1.0. The client wants to alter the functionality of "Rule 2", but leave the other rules alone. Does their version 1.1 jar contain just "Rule 2", or would it need to contain the default versions of "Rule 1" and "Rule 3"?
If version 1.1 must contain all three rules, what is the expected upgrade path when we eventually modify the default "Rule 1" and "Rule 3" and release version 2.0?
Does that mean the client would need to re-package their modified "Rule 2" along with the newer versions of the other rules and upload a version 2.1 jar?
Using the 5.x API, we can safely update the default "Rule 1" and "Rule 3", and as long as we install the default rule files before the client-configured rule files, the client does not need to do anything when we release updates.
I hope this helps,Mario
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CAPYjU_mXF-G%3DCHZATYWWmzzmWjFs4ij%3DZJZ%2BwstNtoZtDiRZcw%40mail.gmail.com.