Re: [rules-users] drools persistence contract

2011-10-21 Thread Michal Bali
Thanks Mark, its good to know this. Best regards, Michal 2011/10/20 Mark Proctor mproc...@codehaus.org On 20/10/2011 12:49, Mauricio Salatino wrote: Hi Michal, I'm not aware of any changes.. but we need to check with mark and kris for the timers stuff that now are being persisted. My

Re: [rules-users] Guvnor -- Decision Table

2011-10-21 Thread Michael Anstis
No, not possible at present am afraid. There is a JIRA for this and it is scheduled for future work. sent on the move On 21 Oct 2011 03:02, johnz jz...@plymouthrock.com wrote: Is it possible to export a decision table to excel or csv ? If yes, could someone tell me how (using v 5.2) --

Re: [rules-users] [planner] Performance question

2011-10-21 Thread Geoffrey De Smet
Nice! I like it when people use the benchmarker. :) Some tips: use a a warmup of 30 seconds (available since 5.3.0.CR1, see manual) and give it a bit longer (say 60 seconds), to really be sure. But in this case, that's not needed: the lines are so straight there is no doubt that the hotspot

[rules-users] using variables in eval

2011-10-21 Thread rahulkrishnan
Hi 1.i have a rule like this rule Function Call dialect mvel when PassThrough( $c : name) eval(($c = hello(rahul))!=null) then System.out.println($c); end in this my function will return the string as capital and

Re: [rules-users] StatefulKnowledgeSession.dispose()

2011-10-21 Thread tonytang
B.T.W I use Drools 5.2 to test -- View this message in context: http://drools.46999.n3.nabble.com/StatefulKnowledgeSession-dispose-tp3440308p3440434.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list

Re: [rules-users] StatefulKnowledgeSession.dispose()

2011-10-21 Thread Swindells, Thomas
You only need to dispose of the session when you no longer want the session. It's perfectly valid to keep reusing the session as long as you want, inserting, removing and calling fire all rules as many times as you want. If you do reuse the session you just need to be careful that previous

Re: [rules-users] Problem in adding a Class to PKG

2011-10-21 Thread DerLonG
laune wrote: If you can't import it with a DRL import, it's either misspelled or not in the classpath. I try to add it with the following code: PackageBuilder builder = new PackageBuilder(); Resource rs = ResourceFactory.newClassPathResource(de\\test\\xml\\KundenEntscheidung);

Re: [rules-users] Problem in adding a Class to PKG

2011-10-21 Thread Wolfgang Laun
On 21 October 2011 12:22, DerLonG longbo...@gmx.de wrote: laune wrote: If you can't import it with a DRL import, it's either misspelled or not in the classpath. I try to add it with the following code: PackageBuilder builder = new PackageBuilder(); Resource rs =

Re: [rules-users] StatefulKnowledgeSession.dispose()

2011-10-21 Thread tonytang
But how to explain if I call dispose() in the loop the performance improve 10 times? I already call the retract after every fireAllRules I know we should not call dispose when we still need to use it. -- View this message in context:

Re: [rules-users] using variables in eval

2011-10-21 Thread Wolfgang Laun
You cannot assign a value to a bound variable. $c is *bound to *the field name of a PassThrough fact object. Assigning values to regular variables can only be done in the consequence, e.g., then String s = hello(r); ... end You can use the modify statement (in the consequence) to change a

Re: [rules-users] StatefulKnowledgeSession.dispose()

2011-10-21 Thread Swindells, Thomas
It's probably because dispose unregisters from various listeners and clears up some housekeeping resources, timers etc. It's possible your rules are simple enough that they don't need any of this and so not calling the listeners saves a significant amount of time - particularly if your test case

Re: [rules-users] StatefulKnowledgeSession.dispose()

2011-10-21 Thread tonytang
Yes, the rule is very simple: rule message0to5 when msg: Case2Message (message0to5 ==qsdew) then msg.setPosition(1); //System.out.println(postion is : 1 ); end and some other rules like this. We use this simple test to do the performance test. Currently our project need to choose a rule engine

Re: [rules-users] Regarding BPEL

2011-10-21 Thread Mauricio Salatino
Definitely we are not in the same page :) BPMN is also a semi-structured language to define business processes (BP from BPEL and BPMN). The version 2 of the standard defines the language and the execution semantic for defining Business Processes with a wider scope than BPEL. Of course that BPEL

Re: [rules-users] StatefulKnowledgeSession.dispose()

2011-10-21 Thread tonytang
I think you are right, I change my test case. Just call dispose() at the first time. and the performance is the same as call it every time. What ever the dispose method do, It is really really impact the performance...10 times for (int i = 0; i 100; i++) { FactHandle handle =

Re: [rules-users] Problem in adding a Class to PKG

2011-10-21 Thread DerLonG
But how do Guvnor do that? In Guvnor i can upload a POJO and it integrate it into the PKG. -- View this message in context: http://drools.46999.n3.nabble.com/Problem-in-adding-a-Class-to-PKG-tp3437199p3440653.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] Problem in adding a Class to PKG

2011-10-21 Thread Michael Anstis
What are you trying to achieve? As each email goes back and forth we appear to be moving from your original questions to, perhaps, nearer your requirement. If you upload a XLS decision table to Guvnor and the necessary supporting POJO model file you should be able to build the package therefrom,

[rules-users] WorkingMemoryLogger + statelessSessions = memory leak?

2011-10-21 Thread Swindells, Thomas
Hi everyone, I believe that there is a memory leak when using WorkingMemoryLoggers with statelessSessions. This was raised against 5.1.1 but I think it will still exist in the latest as well. Our code basically has the following pattern: KnowledgeBase kb ==; while(nextEvent()) {

[rules-users] Debug Drools

2011-10-21 Thread rahulkrishnan
Is there any Tools for debugging drl and bpmn except the KnowledgeRuntimeLogger or Eclipse debugger. In which i can debug the when part also -- View this message in context: http://drools.46999.n3.nabble.com/Debug-Drools-tp3440999p3440999.html Sent from the Drools: User forum mailing list

Re: [rules-users] Debug Drools

2011-10-21 Thread Mauricio Salatino
The When part of the rules is being handled by the RETE algorithm. You should check about the algorithm to understand why debugging step by step the WHEN part is not possible. Cheers On Fri, Oct 21, 2011 at 11:41 AM, rahulkrishnan rahulkrishn...@gmail.comwrote: Is there any Tools for debugging

Re: [rules-users] Sliding Length Windows

2011-10-21 Thread Edson Tirelli
Hi Diana, This happens because the order in which things happen. Up to Drools 5.3, Drools apply first filters (a.k.a., alpha constraints or literal constraints), then the sliding windows, then the joins. So in your case, Notif( specificProblem == New ONT ) over window:length(2)

[rules-users] Rule content keyword search

2011-10-21 Thread GPatel
Is it possible to perform keyword search within rule content? For example: show me all rules that contain the word person. Thanks G. Patel - The information contained in this communication (including any attachments hereto) is confidential and is intended

Re: [rules-users] Rule content keyword search

2011-10-21 Thread Michael Anstis
I assume you mean in Guvnor? AFAIK we only index on rule name, but I may be wrong. Not all assets are stored as DRL and therefore indexing their content could present a major change. Please do raise a JIRA though if you consider the feature as required. sent on the move On 22 Oct 2011 00:34,