[rules-users] Possible bug in ruleflow result mappings

2009-12-16 Thread nuzz
Hi everyone, I have setup a ruleflow. Within that ruleflow I have create a custom workflow item Handler. At the completion of execution I am calling: manager.completeWorkItem(workItem.getId(), results); Where results contains an item called batchRequest which is a map. Now I want to map this ba

[rules-users] confused on when to call fireAllRules

2009-12-16 Thread Charles Binford
Hi, I'm trying to add some functionality to my 4.0.7 based project and am realizing I don't understand some basics as well as I thought I did. Until now, I've been using a very simple model: create session, insert facts, fire rules, destroy session. My new functionality needs to use a long

[rules-users] timestamps fusion

2009-12-16 Thread Khalil Hafsi
Hi Guys, I am using last version of fusion. do events in stream mode get automatic timestamps ? do I need to change my Event class like in the broker example (in the way of Event ) ? class Event{ int symbol; int load; } say if I have a simple code : ..drools initiation.. (stream mode) session

Re: [rules-users] not matches

2009-12-16 Thread RichardA
Ok, ignore this, found that previously the ^TEST never matched. Its just now with fusion my rules are looping more. Sorry to spam. RichardA wrote: > > In drools5 I have taken the standard Eclipse demo project, and changed the > Sample.drl to contain only the following: > > > package com.samp

Re: [rules-users] Using work items in the Eclipse ruleflow editor

2009-12-16 Thread bbking
Thanks so much! Following this screencast worked like a charm for me! My problem was that I had been creating a resources folder under root (which shows up as "resources" src folder in eclipse) rather than src/main/resources (which shows up as "src/main/resources" src folder in eclipse). Thanks

[rules-users] not matches

2009-12-16 Thread RichardA
In drools5 I have taken the standard Eclipse demo project, and changed the Sample.drl to contain only the following: package com.sample import com.sample.DroolsTest.Message; rule "Hello World" when m : Message( message not matches "^TEST" ) then

[rules-users] Drools 5.1.0.M1 - Retrieve return value of GenericCommand from ExecutionResults

2009-12-16 Thread Vijay K Pandey
Hi, If I execute a GenericCommand against the statefulknowledgesession it returns the ExecutionResults, but how do I retrieve the actual returned value of the GenericCommand which I had implemented. Lets says something like this - so how do I get hold of the Boolean object return value from th

Re: [rules-users] Drools KnowledgeBuilderImpl.add(...) not thread safe???

2009-12-16 Thread Grigoriev, Grigoriy
Wolfgang, Thank you for your idea, but, unfortunately, in our case it is not really suitable, because we'll have to complicate our system very much. Mark, I have created the issue: https://jira.jboss.org/jira/browse/JBRULES-2380 Wbr, Grigoriy ___ rule

Re: [rules-users] Problem when uploading a rule file with XOR into Guvnor

2009-12-16 Thread ramram
ramram wrote: > > Hi All, > > I have found the exception in the fluent API. that is causing the below > exception I think it is better to be fixed in the next release : > > Exception in thread "main" java.lang.ClassCastException: > org.drools.workflow.core.node.ActionNode cannot be cast to

Re: [rules-users] Rule Reuse Best Practice

2009-12-16 Thread Wolfgang Laun
To avoid changing the fact classes: (a) Use an inline eval, calling a static method from a Java package. (This might also contain a constant or method for the error message.) (b) If you have more duplications of the same quality, look into the topic Templates in the Expert documentation. -W 200