Hi Joshua,
You *should* be able to change assertObject(...) to simply
insert(...).
I am sure examples will be updated at some stage (I know the JBoss
Drools team always welcome community support).
With kind regards,
Mike
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL
Hello folks,
I'm experiencing some odd behaviour from Drools (or maybe the Eclipse
compiler) when load-testing my application, and wondered if anyone
else had experienced the same issue. I have a web service which, for
every request, loads in rules from the database, creates a
I am trying to sequentially perform two rules executions using two
different classloaders in the same VM. I create completely new state
for each execution, yet I still fail on the second execution. I
believe this has to do with some internal static cached state that
JBossRules is maintaining. A
Is it possible for you to provide a test case capable of reproducing the
problem?
At the same time, I would suggest you to not follow such approach in your
application. Compilation is an extremely heavy process and should not be
done for each request. The ideal approach is to pre-compile
This problem was supposed to be fixed in MR3. Can you please provide a
self contained test and attach it to a JIRA so I can investigate and fix?
Thank you,
Edson
2007/7/12, Sarika Khamitkar [EMAIL PROTECTED]:
This is the again regarding the NullPointerException issue. Sorry for
Hi Edson,
On 7/12/07, Edson Tirelli [EMAIL PROTECTED] wrote:
Is it possible for you to provide a test case capable of reproducing the
problem?
I've written a quick test case, which is attached. When numberOfThreads==1,
everything compiles okay. When numberOfThreads==100, I get function
Hi peeps,
Just to be consistence, the drools-example directory now contains
examples projects and not an eclipse project anymore:
trunk
-drools-examples
-drools-examples-drl
-drools-examples-brms
-drools-examples-*
Folks,
I have a rule where I am repeating part of it twice :
($cs.getSuppCode().substring(4, 6)), and I would like to replace it with
variable... how can I do that? The solution with in doesn't worl
because it is a java code needed to perform calculations for
variable.
Please see the
OK, I just solved my own problem. My proxy had no package, since the jdk
based proxy is only in a package if it has at least 1 non public interface,
according to the javadoc.
The suspect code beginning on line 333 is:
String pkgName = cls.getPackage().getName();
if (
Chris,
It seems like a bug to me. May I ask you please to open a JIRA and attach
your project?
We are trying to fix final bugs for MR4 and keeping all of them in JIRA
will avoid us to miss anyone...
Thanks
[]s
Edson
2007/7/12, Chris West [EMAIL PROTECTED]:
Hello,
I'm trying to
It is not possible to assign the result of an arbitrary method call to a
variable right now. So, your best option is probably to do (please note the
use of inline-eval):
*rule* SupplierView: Headquarter Supplier Code should end on 25 or 30.
*when*
$cs :
Please!
Thank you for providing the solution.
[]s
Edson
2007/7/12, Chris West [EMAIL PROTECTED]:
OK, I just solved my own problem. My proxy had no package, since the jdk
based proxy is only in a package if it has at least 1 non public interface,
according to the javadoc.
The
Thank you Edson,
I liked the solution with matches, it is much cleaner
-Sergey
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli
Sent: Thursday, July 12, 2007 4:19 PM
To: Rules Users List
Subject: Re: [rules-users]
Hi All,
I used the following code in the dsl file.
DSL:
[when] Check whether the name is present as {studName} = $stud :
Student(name = {studName});
[then] Set the Error Code {errorCode} = String string = $stud.getName();
Error(errorCode, string);
DRL:
package com.policy;
Oleg,
As I mentioned to you, it is perfectly fine and easy to use the rules
engine to validate your object tree as long as you instruct your users that
they must write structured rules. What I mean is: as much as DSL templates
allow you to write rules that resemble natural language, it is
Best way to investigate this is to expand your DSL to the DRL to check
how the expansion is working.
DrlParser parser = new DrlParser();
String expanded = parser.getExpandedDRL( drlSourceString, dslReader
);
Check what is wrong in the expanded DRL. I see your map has an error:
When I attempt to open several views (Working Memory, Agenda, Global,
etc) within an JBoss Rules enabled Eclipse, I receive the following
error:
java.lang.NoClassDefFoundError:
org/eclipse/debug/internal/ui/contexts/provisional/IDebugContextListener
at
17 matches
Mail list logo