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, w

[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 intende

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) Dr

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 wrote: > Is there any Tools for debugging drl and bpmn except the

[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 archive

[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()) {

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,

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] 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 = session.insert(me

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 and

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 en

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] 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

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: http://drools.46999.n3.nabble.com/StatefulKnowledgeSession-

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

2011-10-21 Thread Wolfgang Laun
On 21 October 2011 12:22, DerLonG 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 = > ResourceFactory.new

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"); builder

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 iteratio

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 r

[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