drools

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

dynamically add rules in Drools 6 during stateful session

痞子三分冷 提交于 2019-12-08 06:30:26
问题 Hello dear programmers, I try to add a DRL to the KieFilesystem after the KnowledgeBase and the KnowledgeSession is built. But the rules actually won't fire. Could you guys please try to help me? Thanks to every solution attempt in advance! MyCode: public class Playground { private String newline = System.getProperty("line.separator"); private int MIN_VALUE = -2147483648; public static void main(String[] args) { Playground pg = new Playground(); pg.doRules(); } private String

Retrieve drools working memory from Optaplanner solution

北城以北 提交于 2019-12-08 06:24:04
问题 When drl file used while solving constraints one could use insertLogical() which insert facts in drools working memory only and may not be retracted till completion of solution(LHS stay true forever for that insertLogical() ). When we get solution from Optaplanner's solver.solve() , we receive our own solution classes option like NurseRoster, CloudBalance. But how could I retrieve facts which stayed in Drools working memory till my solution stayed so I can see what caused solution? I'm

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

Calling a REST service using business central and JBPM

风格不统一 提交于 2019-12-08 03:56:50
问题 We're trying to do a POC showing we can call an external REST service using JBPM in business-central. We've created a new BPM, then added a REST service task. We notice at this point that a WID file is created that has REST definition. Inside the WID file, it defines things like URL, Method, and authentication. We've sifted through all the 7.2 docs, but for the life of us, we cannot figure out how to actually set those parameters and do something useful. Does anyone have a simple "Hello World

Drools - Using “from” in decision table

房东的猫 提交于 2019-12-08 03:56:19
问题 I'm having some trouble getting a rule that I know works in .drl form, to work in a decision table. Here is my rule in drl form: rule = "slider1" dialect "mvel" when $person: Person() ArrayList( size >= 2 ) from collect( TestResult( name in ("TestA","TestB"), result == "high" ) from $person.getLabResults() ) then $person.setString("It worked"); end Here is what I am trying in the spreadsheet: CONDITION ------------------- $person:Person() ------------------- ArrayList( size >= 1 ) from

Very basic running of drools 5, basic setup and quickstart

旧城冷巷雨未停 提交于 2019-12-08 03:40:03
问题 Is there a more comprehensive quick start for drools 5. I was attempting to run the simple Hello World .drl rule but I wanted to do it through an ant script, possibly with just javac/java: I get the following error: Note: I don't am running completely without Eclipse or any other IDE: Is there a more comprehensive quick start for drools 5. I was attempting to run the simple Hello World .drl rule but I wanted to do it through an ant script, possibly with just javac/java: I get the following

Drools Rule format for firing only once

谁都会走 提交于 2019-12-07 23:20:39
问题 I'm using the drools 6 engine. Suppose I have an account object that has a collection of sections and each section has a status flag that can be "GOOD" or "BAD". If I was to write the following: rule "Check if account has a good subsection" when $account : Account() SubSection (status == "GOOD") from $account.getSubSections() then insertLogical(new AccountIsGood($account)); end I would expect this to simply add the logical rule AccountIsGood($account) if atleast one section was good. However,

Configure drools with spring. xsd errors

霸气de小男生 提交于 2019-12-07 22:04:02
问题 I'm trying to create spring roo application with Drools. But I faced with errors in applicationContext.xml. Error: Multiple annotations found at this line: - Unable to locate Spring NamespaceHandler for element 'drools:execution-node' of schema namespace 'http://drools.org/schema/ drools-spring' - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'drools:execution-node'. this is a piece of applicationContext.xml: <beans xmlns="http://www

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