guvnor

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

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

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( " ...

StatelessKnowledgeSession Focus Agenda

泪湿孤枕 提交于 2019-12-11 07:08:51
问题 I have a problem with a rules execution in drools, when I execute the rules with a StatefulKnowledgeSession there aren't problems: final KnowledgeBase kbase = knowledgeAgent.getKnowledgeBase(); final StatefulKnowledgeSession session = kbase.newStatefulKnowledgeSession(); session.getAgenda().getAgendaGroup("Third").setFocus(); session.getAgenda().getAgendaGroup("Second").setFocus(); session.getAgenda().getAgendaGroup("First").setFocus(); session.execute(CommandFactory.newBatchExecution

Access to Drools returned fact object in Java Code

≡放荡痞女 提交于 2019-12-07 18:59:54
问题 I have a drools rule created via the Guvnor console and the rule validates and inserts a fact into the working memory if conditions were met. The rule is: 1. | rule "EligibilityCheck001" 2. | dialect "mvel" 3. | when 4. | Eligibility( XXX== "XXX" , YYY== "YYY" , ZZZ== "ZZZ" , BBB == "BBB" ) 5. | then 6. | EligibilityInquiry fact0 = new EligibilityInquiry(); 7. | fact0.setServiceName( "ABCD" ); 8. | fact0.setMemberStatus( true ); 9. | insert(fact0 ); 10. | System.out.println( "Hello from

Access to Drools returned fact object in Java Code

早过忘川 提交于 2019-12-06 10:21:31
I have a drools rule created via the Guvnor console and the rule validates and inserts a fact into the working memory if conditions were met. The rule is: 1. | rule "EligibilityCheck001" 2. | dialect "mvel" 3. | when 4. | Eligibility( XXX== "XXX" , YYY== "YYY" , ZZZ== "ZZZ" , BBB == "BBB" ) 5. | then 6. | EligibilityInquiry fact0 = new EligibilityInquiry(); 7. | fact0.setServiceName( "ABCD" ); 8. | fact0.setMemberStatus( true ); 9. | insert(fact0 ); 10. | System.out.println( "Hello from Drools"); 11. | end Java code that executes the rule is as follows RuleAgent ruleAgent = RuleAgent

How and is it worth to integrate Java Webapp + drools + Guvnor?

和自甴很熟 提交于 2019-12-03 08:55:52
问题 I am planning on introducing Java rules and currently in the process of evaluating Drools to externalize (physically and logically) the business rules from the application. Since these business rules would be very often by the business, I would want the business to make necessary changes to the rules via GUI. I have Googled on integrating java web app + Drools + Guvnor and I'm not getting anywhere. My Questions: Does Drools support a lightweight GUI for editing the rules? Is Drools Guvnor a

How and is it worth to integrate Java Webapp + drools + Guvnor?

末鹿安然 提交于 2019-12-02 23:05:45
I am planning on introducing Java rules and currently in the process of evaluating Drools to externalize (physically and logically) the business rules from the application. Since these business rules would be very often by the business, I would want the business to make necessary changes to the rules via GUI. I have Googled on integrating java web app + Drools + Guvnor and I'm not getting anywhere. My Questions: Does Drools support a lightweight GUI for editing the rules? Is Drools Guvnor a lightweight GUI, or is there are a way to step it down? How easy to integrate an application to Guvnor

Drools Guvnor on Glassfish error

匆匆过客 提交于 2019-12-02 08:53:34
问题 I'm trying to deploy Guvnor (guvnor-5.5.0.Final-tomcat-6.0) to a fresh glassfish server ( 3.1.2.2 build 5) and am getting the error below. I did try the other WARs without any luck and I get the same error on OSX and windows. Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.NoClassDefFoundError: org/apache/AnnotationProcessor. Please see server.log for more