kie

helloworld on Kie Server version 6.4.0

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 21:10:55
问题 I am currently evaluating KIE Server without using KIE Workbench. The scenario am evaluating is, 1) A third party will give me a drl file its value object (VO which will be used inside drl). I need to create a kjar or jar programmatically through a standard maven project structure and also create a container for that artifact and store it in maven repo. 2) When i receive a request for execution along with the input data, against that artifact, through REST call, i need to execute the above

Migrating Spring drools-context.xml from 5.0 to 6.0

。_饼干妹妹 提交于 2019-12-02 18:52:04
问题 In drools 6, there have been some changes to the Spring integration, such that the resources are no longer specified. <drools:resources> <drools:resource type="DRL" source="classpath:rules/products.drl"/> </drools:resources> How do I specify them in version 6, then? 回答1: Note that in Drools 6, drl files to be loaded should be placed under main/resources folder in your maven project. During runtime say in Tomcat, drl files will appear under <yourwebapp>/WEB-INF/classes folder. Sample xml

HelloWorld using Drools Workbench & KIE Server

China☆狼群 提交于 2019-12-02 15:02:51
问题 Have KIE Drools Workbench 6.2.0 Final installed inside a JBoss 7 Application Server local instance and Kie Server 6.2.0 Final inside a local Tomcat 7 instance. Using the web based KIE Workbench strictly for evaluation purposes (am using it to code generate Java based Maven projects and am not using a particular IDE such as Eclipse or IntelliJ IDEA): Created a new repository called testRepo Created a new project called HelloWorld Created a new Data Object called HelloWorld with a String

helloworld on Kie Server version 6.4.0

烂漫一生 提交于 2019-12-02 11:48:55
I am currently evaluating KIE Server without using KIE Workbench. The scenario am evaluating is, 1) A third party will give me a drl file its value object (VO which will be used inside drl). I need to create a kjar or jar programmatically through a standard maven project structure and also create a container for that artifact and store it in maven repo. 2) When i receive a request for execution along with the input data, against that artifact, through REST call, i need to execute the above created container with that input data. I followed the examples this and this to do a simple "HelloWorld"

HelloWorld using Drools Workbench & KIE Server

三世轮回 提交于 2019-12-02 03:54:37
Have KIE Drools Workbench 6.2.0 Final installed inside a JBoss 7 Application Server local instance and Kie Server 6.2.0 Final inside a local Tomcat 7 instance. Using the web based KIE Workbench strictly for evaluation purposes (am using it to code generate Java based Maven projects and am not using a particular IDE such as Eclipse or IntelliJ IDEA): Created a new repository called testRepo Created a new project called HelloWorld Created a new Data Object called HelloWorld with a String property called message: package demo; /** * This class was automatically generated by the data modeler tool.

is newKieSession thread-safe?

谁都会走 提交于 2019-12-01 23:27:47
问题 We used Drools kieSessions in our project. Many threads can create new kieSession. Sometimes thread can hang while creating session. Hence the question: Firstly is kieContainer.newKieSession thread-safe operation? Can the reason of hanging be a dirty writing or reading the collection of kie sessions or something like that? 回答1: As I checked in practice newKieSession isn't thread-safe operation. 回答2: I couldn't find any explicit statement in the drools documentation, but my understanding is

'Drools Camel Server' vs 'KIE-WB Execution Server'

拥有回忆 提交于 2019-12-01 20:13:38
What is the difference between "Drools Camel Server" and "KIE-WB Execution Server" ? Do they serve the same purpose of executing rules/processes in remote server ? KIE-WB document: The workbench contains an execution server (for executing processes and tasks), which also allows you to invoke various process and task related operations through a remote API. As a result, you can setup your process engine "as a service" and integrate this into your applications easily by doing remote requests and/or sending the necessary triggers to the execution server whenever necessary (without the need to

'Drools Camel Server' vs 'KIE-WB Execution Server'

烈酒焚心 提交于 2019-12-01 19:00:05
问题 What is the difference between "Drools Camel Server" and "KIE-WB Execution Server" ? Do they serve the same purpose of executing rules/processes in remote server ? KIE-WB document: The workbench contains an execution server (for executing processes and tasks), which also allows you to invoke various process and task related operations through a remote API. As a result, you can setup your process engine "as a service" and integrate this into your applications easily by doing remote requests

Disable JIT in Drools 6.2 with Java 8

我只是一个虾纸丫 提交于 2019-12-01 11:21:45
问题 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

kie workbench deploy war not working (tomcat)

谁说胖子不能爱 提交于 2019-12-01 06:57:39
I have downloaded the kie workbench and extracted kie-drools-wb-distribution-wars-6.2.0.Final-tomcat7.war . I've never used tomcat before, but I wanted to use the workbench and there didn't appear to be an option for the workbench to simply spin itself up. Consequently, I installed tomcat 8. After doing this I accessed the tomcat manager and deployed the war. (I had to increase the memory limit on acceptable file sizes) I now have /kie-drools-wb-distribution-wars-6.2.0.Final-tomcat7 listed as an application, but it won't start. When I try to start it I get the following: FAIL - Application at