[rules-users] Events Temporal reasoning problem

2009-09-25 Thread Chris Richmond
Hello, I am trying to make a rule to delay firing until a certain amount of time has passed without another event being received. I have set up a loop that goes every 10 seconds in my main application that takes readings and injects them into the ReadingStream. These are like sensor reading

Re: [rules-users] Event streams

2009-09-25 Thread Chris Richmond
How would I raise the event strictly from the consequence of that rule? Is it basically creating a new object something like the following? //rule "detect a stream data object" When MyDataStreamObject($val: fieldValue < 20) from entry point "DATA" Then //I want t

Re: [rules-users] Event streams

2009-09-25 Thread Chris Richmond
So would I simply call fireUntilHalt() in a loop in a separate thread? Is Halt called by the engine when all rules have fired, or so I need to also call that explicitly? Thanks, Chris _ From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Beha

[rules-users] Error running Drools 5.0 HelloWorldExample on WebSphere 6.1

2009-09-25 Thread Blythe, Marshall
Hi, I'm evaluating Drools 5.0 for use in a WebSphere 6.1.0.13 (Java 1.5 JRE) environment, and I've encountered an exception that I can't seem to fix. I downloaded the Drools examples and started looking at the HelloWorldExample class. First I executed it on standalone IBM JVM (not in a servlet

Re: [rules-users] Agenda Filters usage

2009-09-25 Thread Greg Barton
Yes, you could use agenda filters, but I think agenda groups are more what you're looking for. Agenda groups allow you to do the staging type behavior easily, usually implemented by having a rule that is of lower priority than the rest of the rules in the group moving to the next stage using dr

Re: [rules-users] Event streams

2009-09-25 Thread Greg Barton
Yes to both. However to the first part (rules firing "automatically") you need to use fireUntilHalt() instead of fireAllRules(). fireUntilHalt blocks (until halt is called) so you need to invoke it in a separate Thread. Then from another thread you can insert events into the entry points. Fo

Re: [rules-users] Event streams

2009-09-25 Thread Chris Richmond
I guess a folow up would be, would it be possible to terminate a long lived event that was generated with the arrival of another event? Thanks, Chris _ From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Chris Richmond Sent: Friday,

[rules-users] Event streams

2009-09-25 Thread Chris Richmond
It is my understanding that an event will be detected as soon as it is inserted into a stream.meaning that I don't have to explicitly call fireRules in order to evaluate events, but them will be evaluated as soon as I insert them into a stream, so a rule like the one below would fire as soon as I p

[rules-users] Agenda Filters usage

2009-09-25 Thread Chris Richmond
Would agenda filters be a good usage in this scenario. I have a set of objects I want to evaluate in stages, and so I only want certain rules to fire at certain stages. So the idea would be to have the main application do some work on those objects then updte and fire rules on them for stag

Re: [rules-users] java.lang.NoSuchMethodError (org.eclipse.jdt.internal.compiler.CompilationResult.getProblems())

2009-09-25 Thread Ana F Santos
I don't know if this will be useful, but... I had many problems (some really wierd ones) while my eclipse runtime had Drools 5.0.1 jars.Then I changed it to Drools 5.1.0 jars and everything started to work. Maybe you should try that! https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuil

[rules-users] java.lang.NoSuchMethodError while using Split node

2009-09-25 Thread yuvraj.vohra
Hi, I am new to the drools engine. I am using drools 5.0. Issue is, If I add Split node to process flow, I am getting java.lang.NoSuchMethodError exception . java.lang.NoSuchMethodError: ...returnValueEvaluator0(Lorg/drools/spi/ProcessContext;)Ljava/lang/Object; ..

Re: [rules-users] Flow

2009-09-25 Thread Kris Verlaenen
The whole idea of the pluggable work items is for end users to make it very easy to create their own node types: simply add a configuration file that describes the properties of those nodes and register a handler at runtime to execute it. They even show up in the palette on the tooling. Check out

Re: [rules-users] Flow

2009-09-25 Thread fero
Kris Verlaenen wrote: > >> 3. Is Flow based on its own PVM or jBPM PVM? Is it also possible to >> extend flow with new flow constructs? > It is based on a generic process engine. We offer a set of core > constructs but this is extensible (for example, to support OSWorkflow > migration, a custom

[rules-users] Sharing resources in Guvnor

2009-09-25 Thread Ian Roche
Hi, Apologies if this topic has been discussed before but I had a search through the archive and didn't find anything. First, I will explain my planned usage. We have a set of rules that are growing over time. Rules can be shared across applications. Ideally I would like to search through my s

[rules-users] Authoring Rules in non-JVM Client Apps

2009-09-25 Thread Ken Archer
The http/xml/json interface provided by drools-server for remote execution of rules from non-JVM apps is wonderful. Is there a similar interface for importing rules authored in non-JVM client apps as xml or drl files? I have not been able to find one. Thanks in advance. Ken Archer Telogical

Re: [rules-users] Event Wait Nodo in a ruleflow

2009-09-25 Thread Kris Verlaenen
There indeed seems to be an issue here. Basically, once you insert the person object, the engine will start processing constraints. It will notice your Person() constraint of your wait node has become true now, and will continue the execution of the process. In this case however, it has not yet

Re: [rules-users] Flow

2009-09-25 Thread Kris Verlaenen
> 1. Exception flow* is also crucial for me. Is it possible to extend > Flow to support it? Flow currently allows you to use fault nodes to signal an error. Exception handlers can be attached to the process or to composite nodes (to allow for some nested exception handler scopes). These exception

[rules-users] Error accumulate function

2009-09-25 Thread nestabur
Hi All, I'm getting an error when firing the rule using the accumulate function: Number(intValue >= 1) from accumulate( fact() over window:time(1d) from entry-point "MyEntryPoint", init( int mytotal = 0; ),action( mytotal++; ),reverse( mytotal--; ),result( new Integer(mytotal) )) The error is:

Re: [rules-users] User interaction while ruleflow is running

2009-09-25 Thread Kris Verlaenen
The WS-HumanTask server is just an example of how you could integrate a human task server in your application (using a separate service). If this is too heavy-weight for your needs, you can simply implement your own work item handler and delegate the human task requests to a component of your choi

[rules-users] Problem in accessing change-set.xml for decision table entry

2009-09-25 Thread Nikhil S. Kulkarni
Hi, I am using Drools 5 I am facing following issue :- While trying to access change-set.xml with decision table entry, I am getting NULLPOINTEREXCEPTION Following code is change-set.xml :- e.g. Please Reply If anybody is able to access decision table in

Re: [rules-users] compiled package too big

2009-09-25 Thread Wolfgang Laun
One proposal: Don't put the values to which you compare the attributes into rules; put them into additional facts. Consider: rule "bounds_a_1_10" when Fact( a >= 1 && <= 10 ) then ... end and similar for 11:100, 101:1000,... could be handled by a single rule and a set of Limit-type facts: ru

[rules-users] compiled package too big

2009-09-25 Thread Ševčík Martin
Hello, I'm using drools 4.0.7. I have excel with about 4000 rows. After compiling it, the final Package is about 30 MB. And that's only one sheet, I have 3 of them. Total size is about 60MB. It's too big to hold it in memory, but too slow to read it from a file or database every time. Is the

Re: [rules-users] Flow

2009-09-25 Thread fero
fero wrote: > > 2. How to extend Activities. Now it is possible to put the code of > activity in the process definition in MVEL or java. I would prefer to > select the class and provide attributes of a class from process definition > as it is in jBPM (called delagation). Is it possible to create

[rules-users] Flow

2009-09-25 Thread fero
Hello, I'm interested in using Drools Flow. I use jBPM as workflow and also Drools 4.x as rule engine but joint of both in Drools 5.x seems amazing. JBPM also does not support events (signal event and conditional event), which in Drools are supported and are crucial for me. So I would say many of