Bug 1294832
Summary: | Unable to create knowledge base with Rule Templates | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Kamlesh <kamlesh.pandey> | ||||
Component: | BRE | Assignee: | Mario Fusco <mfusco> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Marek Winkler <mwinkler> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 6.3.0 | CC: | kamlesh.pandey, manstis | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-01-18 09:54:59 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Kamlesh
2015-12-30 14:57:48 UTC
There is a "Template" example under: https://github.com/droolsjbpm/drools/blob/master/drools-examples/src/main/java/org/drools/examples/templates/SimpleRuleTemplateExample.java That said, I also tried modifying the "DTableWithTemplateKS" example (https://github.com/droolsjbpm/drools/blob/master/drools-examples/src/main/java/org/drools/examples/decisiontable/PricingRuleTemplateExample.java) as follows:- kmodule.xml ----------- <kbase name="DTableWithTemplateKB" packages="org.drools.examples.decisiontable"> <ruleTemplate dtable="org/drools/examples/decisiontable/ExamplePolicyPricing.xls" template="org/drools/examples/decisiontable/BasePricing.drt" row="3" col="3"/> <ruleTemplate dtable="org/drools/examples/decisiontable/ExamplePolicyPricing.xls" template="org/drools/examples/decisiontable/PromotionalPricing.drt" row="19" col="3"/> <ksession name="DTableWithTemplateKS"/> </kbase> Modified XLS file is also attached. This also worked fine. Created attachment 1113610 [details]
Modified XLS file
re: comment#2, can you provide a failing unit test demonstrating the issue as I am unable to reproduce. Thanks. Can you please check what reported by Michael and eventually send a reproducer of the problem if it still doesn't work for you? (In reply to Mario Fusco from comment #5) > Can you please check what reported by Michael and eventually send a > reproducer of the problem if it still doesn't work for you? I tried it with the spreadsheet and kmodule xml from your message and I'm getting the same error. Can you please confirm if your test was done with Drools 6.3? I just merged on master the pull request sent by Michael ( https://github.com/droolsjbpm/drools/pull/597/files ) that updates the example as you described. Please let me know if this is what you meant and if it works for you. (In reply to Mario Fusco from comment #8) > I just merged on master the pull request sent by Michael ( > https://github.com/droolsjbpm/drools/pull/597/files ) that updates the > example as you described. Please let me know if this is what you meant and > if it works for you. I'm able to get it working. The problem was in dev environment with another rule excel in the class path. Sorry for false alarm. please close. |