kie

Disable JIT in Drools 6.2 with Java 8

最后都变了- 提交于 2019-12-08 16:41:34
We are working with Drools version 6.2.0.Final for parsing some of our rules. But sometimes when we have a lot of runs, Drools invokes the JIT compiler which is causing failures. We have this covered in our Junit tests and we are getting the following error java.lang.NoSuchMethodError: org.mvel2.compiler.BlankLiteral.<init>(Ljava/lang/String;)V at ConditionEvaluatoref4dc802b6174038b0307f5e6196e229.evaluate(Unknown Source) at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:248) at org.drools.core.rule.constraint.MvelConstraint.isAllowed(MvelConstraint.java:204) at

Drools: how to retrieve the fact in response from Kie Execution Server?

送分小仙女□ 提交于 2019-12-08 10:20:34
问题 I am using Kie Execution Server 6.2 final and I have a simple rule file deployed on the server and I am accessing it through rest api. When I try to execute the rules, everything goes well, but I do not get newly inserted fact in the response. Here is my drl file rule "Odd Rule" dialect "mvel" when testRecord : TestRecord((integerValue & 1) == 1 && integerValue != 0 , testId: testRecordId , intValue :integerValue ) then System.out.println( "Odd Rule- Test ID "+ testId ); TestResult

How do I use jbpm demo in a professional environment?

早过忘川 提交于 2019-12-08 08:10:37
问题 I have installed http://download.jboss.org/jbpm/release/6.4.0.Final/jbpm-6.4.0.Final-installer-full.zip found here http://www.jbpm.org/download/download.html and this is a self contained environment with ant and commands like: "ant install.demo". You end up with a nice environment for learning the kie workbench. This is great for learning, but I really want to take it to the next step which is to have a single wildfly server with ear/war file(s). I can't seem to find instructions or advice on

Deploy programatically created KIE-Drools-Artifact to Maven repository

亡梦爱人 提交于 2019-12-08 07:00:24
问题 Is there a way to deploy a programatically created Drools 6 artifact to the underlying maven repository? I do NOT want to explicitly somehow call mvn deploy but do that from the program itself: public static void main(String[] args) { String ruleString = "rule \"TestRule\"\nthen\nSystem.out.println(\"This is a testrule.\");\nend"; KieServices kieServices = KieServices.Factory.get(); KieModuleModel kieModuleModel = kieServices.newKieModuleModel(); KieBaseModel kieBaseModel = kieModuleModel

Problems in Firefox and Chrome with “Kie Drools Workbench 6.2.0 Final” after the login

删除回忆录丶 提交于 2019-12-08 06:35:16
问题 I'm trying to test Kie Drools Workbench 6.2.0 Final in several web navigators (Internet Explorer , Google Chrome and Firefox ) and I'm having problems with Google Chrome and Firefox after the login, the message with the information "Please wait, loading application..." is shown but that message never dissapears and the application doesn't load. I haven't that problem with Internet Explorer after the login but I need to test Kie Drools Workbench in the others web navigators, my operating

Drools Android Integration

一世执手 提交于 2019-12-08 04:26:14
问题 I am working on drools implementation in android, stuck in an issue java.lang.RuntimeException: Unable to start activity ComponentInfo{com.decurtis.drooldemo/com.decurtis.drooldemo.MainActivity}: java.lang.RuntimeException: Unable to instantiate object for class 'org.drools.android.DexPackageClassLoader' with constructor public org.drools.android.DexPackageClassLoader(org.drools.core.rule.JavaDialectRuntimeData,java.lang.ClassLoader) at android.app.ActivityThread.performLaunchActivity

How do I use jbpm demo in a professional environment?

折月煮酒 提交于 2019-12-06 16:08:04
I have installed http://download.jboss.org/jbpm/release/6.4.0.Final/jbpm-6.4.0.Final-installer-full.zip found here http://www.jbpm.org/download/download.html and this is a self contained environment with ant and commands like: "ant install.demo". You end up with a nice environment for learning the kie workbench. This is great for learning, but I really want to take it to the next step which is to have a single wildfly server with ear/war file(s). I can't seem to find instructions or advice on how to do this. I cannot imagine having a VM where I have to remote desktop in and issue an "ant

Drools 6.4 KieScanner : How create and add Jar with rules in Maven?

谁都会走 提交于 2019-12-03 20:55:19
I am a beginner with Drools and Maven and I am facing a problem to load rules with KieScanner. The aim of the project is to be able to dynamically load rules in a permanent KieSession. I wonder if it is possible to manage rules with the KieFileSystem (not sure it is possible without a dispose of the session and starting another one leading to the lack of the previous inserted facts), but the good way is to use KieScanner. It seems this requires the creation of a Jar containing the rules and having a Maven ID (ReleaseId), but I could not find detailed documentation about creation of these Jar

Is there any API in drools to create the drl files dynamically by just passing values?

China☆狼群 提交于 2019-12-03 10:38:53
问题 I know how to create DRL files inside KIE workbench by using all the methods. But what my problem is without using the KIE workbench, can we create the .drl file by using our required values.If any possibility is there please suggest me. Same way suggest me any API is regarding to that. Thanks in advance. 回答1: You can use Drools Fluent API. Try below sample code : package com.sample; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import org.drools.lang

Is there any API in drools to create the drl files dynamically by just passing values?

时间秒杀一切 提交于 2019-12-03 00:13:10
I know how to create DRL files inside KIE workbench by using all the methods. But what my problem is without using the KIE workbench, can we create the .drl file by using our required values.If any possibility is there please suggest me. Same way suggest me any API is regarding to that. Thanks in advance. Chris_F I interpret your question in two different ways. 1. Is it possible to write rules for Drools without using the KIE workbench? Yes, it should support importing rules so all you need to do is open up a text editor and start typing. The rules are written as text using a fairly simple