Re: [rules-users] Is it possible to retrieve the collection of Conditions from DecisionTable?

2011-10-03 Thread Toni Rikkola
If you take a look at the Verifier it goes through the Drools AST with a visitor pattern. It starts by using getting the PackageDescr using DrlParser, this uses Drools internals so be warned that it might change in the future. Reader drlReader = new InputStreamReader( stream ); PackageDescr

[rules-users] Using object.getter in Decision table

2011-10-03 Thread jilani
Hi, I have a scenario, where for decision table I will inject one object which holds all facts. Using those facts the decision table has rules. How to retrieve the child fact from parent in decision table. sample for this is as follows Java Code snippet: DataObject dataObj = new DataObject(); Fa

[rules-users] Embed BRL Editor in application

2011-10-03 Thread shubhranshu
Hello everybody, I am new to drools. I want to embed the BRL Editor in our application. I have read somewhere that it can be done by calling the standaloneEditorServlet. When I call the standaloneEditorServlet it appends pUUID=7c89819b-221d-470b-9fce-4bd3bbe02e75. I have to pass some initializatio

[rules-users] Embeding BRL Editor in application

2011-10-03 Thread shubhranshu
Hello everybody, I am new to drools. I want to embed the BRL Editor in our application. I have read somewhere that it can be done by calling the standaloneEditorServlet. When I call the standaloneEditorServlet it appends pUUID=7c89819b-221d-470b-9fce-4bd3bbe02e75. I have to pass some initializatio

Re: [rules-users] pipeline API

2011-10-03 Thread jliu
On 2011/10/4 9:08, Bobby Richards wrote: looking for any documentation regarding the pipeline api. Trying to get an amqp queue set as an entry point Have you looked into Drools Camel integration [1]? Camel should already have AMQP component. [1]. http://docs.jboss.org/drools/release/5.3.0.

Re: [rules-users] Guvnor - Operations with snapshots

2011-10-03 Thread jliu
On 2011/10/4 1:54, Demian Calcaprina wrote: Hi everyone. I am using Guvnor 5.2, and I need to make some operations from my application. Specifically, I need to make two operations remotely: - List Snapshots, as it is possible to list packages. - Create a new snapshot from a package. Is this po

Re: [rules-users] 5.3.0 CR1 has broken existing rules/flows

2011-10-03 Thread lhorton
This is very good info. I have found those Drools ConsequenceExceptions a real PITA to troubleshoot. I wonder if the exception could be enhanced to show this info so users don't have to debug it? I mean, to have the exception message show the true culprit rule name, or something useful like that

[rules-users] pipeline API

2011-10-03 Thread Bobby Richards
looking for any documentation regarding the pipeline api. Trying to get an amqp queue set as an entry point Thanks Bobby ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Memory leak in 5.2/5.3

2011-10-03 Thread Edson Tirelli
I don't know all the details about this problem, but as far as I heard, the leak was happening because jBPM was adding its listener to the kbase and/or ksession and not removing it on disposals... so the easiest way to get around the leak is to simply remove it yourself before disposing the sess

Re: [rules-users] Memory leak in 5.2/5.3

2011-10-03 Thread alopez
This memory leak is giving us a lot of problems... we need to iteratively test 400,000 items, one session for each. It was working fine with 5.1.1 and now is failing. Thanks for the test case, is very simple to reproduce, but I tried running it with: org.drools knowledge-api

Re: [rules-users] 5.3.0 CR1 has broken existing rules/flows

2011-10-03 Thread Edson Tirelli
One way of helping isolating the problem is to set a break point for a NullPointerException. When the exception is raised do 2 things: 1. In the RuleTerminalNode where the NPE is generated, check the content of the "rule" attribute. This will tell you the offending rule. 2. Check which refe

[rules-users] 5.3.0 CR1 has broken existing rules/flows

2011-10-03 Thread Jamie
I recently upgraded from 5.2.0 Final to 5.3.0 CR1 because I was experiencing memory leaks in 5.2.0 Final due to a known bug that was fixed in 5.3.0 CR1. I have a suite of FitNesse tests that exercise the majority of my rules and flows, and I can demonstrate that the memory leak is indeed fixed, bu

[rules-users] Guvnor - Operations with snapshots

2011-10-03 Thread Demian Calcaprina
Hi everyone. I am using Guvnor 5.2, and I need to make some operations from my application. Specifically, I need to make two operations remotely: - List Snapshots, as it is possible to list packages. - Create a new snapshot from a package. Is this possible to make these operation through rest API

Re: [rules-users] Is it possible to retrieve the collection of Conditions from DecisionTable?

2011-10-03 Thread Mark Proctor
On 03/10/2011 18:03, Wolfgang Laun wrote: > A condition does not have a "name", as you write; values of the cells > below a condition are (usually) literals. > > There is no API for extracting parts of a spreadsheet. You can look at > the Drools source code (in the packages org.drools.decisiontable

Re: [rules-users] Is it possible to retrieve the collection of Conditions from DecisionTable?

2011-10-03 Thread Wolfgang Laun
A condition does not have a "name", as you write; values of the cells below a condition are (usually) literals. There is no API for extracting parts of a spreadsheet. You can look at the Drools source code (in the packages org.drools.decisiontable and .../parser) and write whatever you need - it i

[rules-users] Is it possible to retrieve the collection of Conditions from DecisionTable?

2011-10-03 Thread RaviCKota
Hi All, for suppose I have a DecisionTable like below CONDITION ACTION - COND1 ACTION1 COND2 ACTION2 COND3 ACTION3 - This is just a representation of the DecisionTable