drools-guvnor

KIE Drool Workbench: Unable to get to workbench UI due to “Forbidden” screen

人盡茶涼 提交于 2021-02-11 14:31:01
问题 I have been trying follow the links and details available to set up a KIE Drools workbench for Drools like https://www.intertech.com/simple-setup-of-drools-kie-workbench-and-kie-server-in-one-wildfly-instance/. From what I could analyze and read up KIE Drools Workbench will let me configure a rule engine through a front end and that Guvnor used to handle this aspect prior to workbench. These configured rules can be blended into my Spring Boot application to drive my loan application

Rule development and deployment management with Drools Guvnor

不问归期 提交于 2021-01-28 20:22:21
问题 Introduction Drools Guvnor has it's own versioning system, that in production use allows the users of an application to modify the rules and decision tables in order to adapt to change in their business. Yet, the same assets continue to live on the development version control system, where new features to the app are developed. This post is for looking insight/ideas/experience on rule development and deployment when working with Drools rules and Guvnor. Below are some key concepts I've been

I need to add .drl files at runtime (From an S3 bucket) and supply it to drools rule engine

ぃ、小莉子 提交于 2020-01-16 18:25:19
问题 Unable to add rules at runtime through ResourceFactory.newURLResource() Also , KnowledgeBase is deprecated or cannot be resolved I have tried all the snippets from the documentation public class RuleRunner { public RuleRunner() { } public void runRules(String[] rules, Object[] facts) throws Exception { KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); for ( int i = 0; i < rules.length; i++ ) { String

How to use null safe operator in drools decision table

天大地大妈咪最大 提交于 2020-01-05 20:42:21
问题 Please let me know how to use ".?" (null safe operator) in drools decision table(Spreadsheet). Attached my spreadsheet, where for mdcl object I need to add null safe operator. Please let me know if I need to add additional information, as I'm new to Drools. 回答1: The null-safe operator in Drools is !. , not .? - see the documentation. You can use it inside decision tables just as you would when writing rules. In your example, change the condition from mdcl.MDCL_Health.get("MDCL").Value to mdcl

How to use null safe operator in drools decision table

不羁的心 提交于 2020-01-05 20:41:55
问题 Please let me know how to use ".?" (null safe operator) in drools decision table(Spreadsheet). Attached my spreadsheet, where for mdcl object I need to add null safe operator. Please let me know if I need to add additional information, as I'm new to Drools. 回答1: The null-safe operator in Drools is !. , not .? - see the documentation. You can use it inside decision tables just as you would when writing rules. In your example, change the condition from mdcl.MDCL_Health.get("MDCL").Value to mdcl

wrong class format Bulding a Package from Java 7 to Java 8

无人久伴 提交于 2019-12-24 11:35:03
问题 i have two installations of Guvnor 5.6.0.Final, one (Machine A) is runnig over Java 7, the second one (Machine B) is runnig over Java 8. I made an export of the repository from Machine A and imported into Machine B. Every time i do the Build Package i have this stack trace Sep 29, 2014 9:58:48 AM org.apache.catalina.core.ApplicationContext log SEVERE: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract org.drools

How to integrate KIE Workbench 6.1.0.Final (Drools Guvnor) Project with Java Application

点点圈 提交于 2019-12-18 09:12:35
问题 I am using KIE Workbench 6.1.0.Final and my Eclipse project where I am trying to execute rules is also 6.1.0 Runtime enabled. I like to know how I can execute/load rules created using Drools Guvnor, from my java application. Before posting this question, I have looked at the following similar questions and tried the given approaches but none of them worked for me. Integrating Drool 6 work bench with Java Application why does loading Drools 6 KIE JAR into code fail? Loading Drools/KIE

Throwing exception in Guvnor (Guided Editor Rule)

▼魔方 西西 提交于 2019-12-13 03:59:55
问题 I'm building a rules project using Guvnor. In one of my DSL, I've the follow "consequence" statement for wrong operations: [when]Error "{message}"=throw new Exception( "{message}" ); If I use the DSL rule, writing all the rule with DSL sentences, it works perfectly. However, using the Guided Editor, this doesn't work and the validation says anything like that: [Error: unable to resolve method using strict-mode: org.drools.spi.KnowledgeHelper.throw()] [Near : {... throw new Exception( " ...

Create alias for conditions in Drools Decision table

十年热恋 提交于 2019-12-12 02:13:12
问题 Attached is my decision table, where in I'm using sv2.SV202_CompMedProcedId.get("SV202-02") several times in my condition. Is there any way that we can create an alias for sv2.SV202_CompMedProcedId.get("SV202-02") (for example, S) and use that alias in my condition instead of using the entire line every time? CONDITION sv2.SV202_CompMedProcedId.get(""SV202-02"").Value >= '70010' && sv2.SV202_CompMedProcedId.get(""SV202-02"").Value <= '76499' || sv2.SV202_CompMedProcedId.get(""SV202-02"")