kie

Creating XML with JAXB KieServicesClient fails (KIE 6.5.0)

好久不见. 提交于 2019-12-13 03:39:57
问题 I have an Object like this: @XmlRootElement(name="com.Operation") @XmlAccessorType(XmlAccessType.FIELD) public class Operation implements java.io.Serializable { static final long serialVersionUID = 1L; @org.kie.api.definition.type.Label("systemCode") @XmlElement private int systemCode; [...] When I marshall this manually with following code it seems it works well: [...] JAXBContext jaxbContext = DroolsJaxbHelperProviderImpl.createDroolsJaxbContext(classNames, null); Marshaller marshaller =

ServiceResponse Result is always null (JAXB, KIE Workbench & KIE Server 6.5.0)

你。 提交于 2019-12-12 04:33:01
问题 I have a project setup in KIE Workbench, version 6.5.0 and a KIE execution server 6.5.0 running, all on the same local Wildfly 10. It is working fine. I have a simple rule that is being executed in a stateless KieSession, no process or whatsoever. I expect the rule to validate basic information and to add information about the fired validations to a global variable. In the example I am testing I just modify a global variable to see if it works, but for some reason I never get a result from

Setting KieContainer kie.maven.settings.custom

感情迁移 提交于 2019-12-12 01:47:29
问题 I am using drools with scala in apache spark. In order for KIE to know to look at my private nexus repository for the compiled rules, I am attempting to set the system property: "kie.maven.settings.custom" to a custom settings.xml file which is included in the working directory of the jar file. I am attempting to set this system property at run time, but am having mixed results. Here is my code to set "kie.maven.settings.custom" val userDir = System.getProperty("user.dir") val customPath =

How to set Parameter in WorkItem to be reached within BPMN Process in jbpm-WorkBench

佐手、 提交于 2019-12-12 01:25:02
问题 I have created a custom WorkItem with some parameters, which I have registered in WorkDefinitions.wid file. Then in Business Process I also create Variable Definitions for the entire Process and reference those from WD.wid of my custom WorkItem to those created in BP. WorkItem execute the code, which takes those parameters from the form after starting the process. For this purpose I use getParameter()- method; It looks as follows: public void executeWorkItem(WorkItem workItem, WorkItemManager

Created drools Kie session and I get this “class not found exception”

匆匆过客 提交于 2019-12-11 13:04:33
问题 I am new to drools, testing it out to create kie session and while I tried to do that, I get this error. Followed this tutorial to do it http://javainuse.com/drools_hello_kie my pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.javainuse</groupId> <artifactId>drools-hello-world<

Error in jbpm sample project using persistence and postgres

你离开我真会死。 提交于 2019-12-11 07:29:24
问题 I am trying to run a sample jbpm project in eclipse and I am using persistence.Whereas it gives an error on this line RuntimeManager runtimeManager = RuntimeManagerFactory.Factory.get().newSingletonRuntimeManager(environment) Error : (I have also attached the error screenshot ) Any sort of information would be really helpful. Caused by: org.postgresql.util.PSQLException: ERROR: null value in column "id" violates not-null constraint Detail: Failing row contains (null, null, null, 2017-05-21 19

Add new rule file to an existing knowledge session

与世无争的帅哥 提交于 2019-12-11 03:42:45
问题 I want to add a new rule-file (or modify an already existing one) to an existing KieSession dynamically at runtime. I found an answer regarding this and tried the solution mentioned there, but got a runtime exception. The code used is as follows: Driver.java : package app1; import java.io.FileInputStream; import java.io.FileNotFoundException; import org.kie.api.KieBase; import org.kie.api.KieServices; import org.kie.api.builder.KieBuilder; import org.kie.api.builder.KieFileSystem; import org

ruleflow-group vs agenda-group in Drools 6.5

假如想象 提交于 2019-12-11 01:53:41
问题 I am trying to create two independent groups of rules in Drools 6.5 and I can't figure out what's the usecase for the ruleflow-group and agenda-group strategies. They both seem similar. 回答1: Reading the documentation ... 2.6.4. RuleFowGroup and AgendaGroups are merged These two groups have been merged and now RuleFlowGroup's behave the same as AgendaGroups. The get methods have been left, for deprecation reasons, but both return the same underlying data. When jBPM activates a group it now

How to use a Spring Service in Drools rules?

冷暖自知 提交于 2019-12-10 14:13:38
问题 I'm working with drools engine in the construction of an alert system. we need to execute a method of a @Service instantiated by Spring Framework on the actions of the rule (RHS), when the conditions are met. What would be the way to get the @service instance created by Spring Framework to be used by the action (RHS) of the Drools rule? I have followed the following indications: Using the form import function ( Rule1.drl ). This solution does not work because the class is instantiated in

Dynamic Drools Endpoint Update in Drools Camel Server

陌路散爱 提交于 2019-12-10 11:45:49
问题 The "User Guide" for Drools 6 states that a camel endpoint for drools shall be in the below format: <to uri="kie:{1}/{2}" /> where {1} : Execution Node identifier that is registered in the CamelContext {2} : Knowledge Session identifier that was registered in the Execution Node with identifier {1} Doubt # 1 : If the sessions are created before the endpoints are built, how the incremental changes in kmodule will be picked up by the sessions created before? Statement about KScanner from the