Thank you Wolfgang,
your bug report is crystal clear as usual ;)
I'll try to reproduce and fix this asap.
Mario
On Thu, Jan 17, 2013 at 7:29 AM, Wolfgang Laun wolfgang.l...@gmail.comwrote:
The error occurs when the following rule fires ;-)
rule error occurs
$fact1: Fact( $class: class )
Laune -
I am sorry - I did not answer your earlier question. The type in this
instance was a double. But we have this exception consistently if all of
these conditions are met -
1.) In the consequence we do an assignment to a public field.
2.) There are more than one instance of the same rule
The behavior stated seems very erratic as other similar rules are executing.
Also note that the fields in the consequence have a visibility of public.
Are there any known issues surrounding this?
--
View this message in context:
What's the type of $billingOutputRuleContext.retroPreviousBillAmount?
On 16/01/2013, magaram maga...@deltadentalmi.com wrote:
The behavior stated seems very erratic as other similar rules are
executing.
Also note that the fields in the consequence have a visibility of public.
Are there any
A rule to repro this situation:
The rule:
...
rule Assignment In Action Test
when
obj : Foo()
then
obj.x = 1;
System.out.println(Rule Fired!);
end
...
Definition of class Foo:
public class Foo {
public int x;
public int getX() {
Another note, using obj.setX(...) would make this problem go away.
Question: are there anything special that a user should be aware of about
putting assignment in rule actions?
-Original Message-
From: Chang Liu
Sent: Wednesday, January 16, 2013 4:37 PM
To: Rules Users List
Cc:
The error occurs when the following rule fires ;-)
rule error occurs
$fact1: Fact( $class: class )
$fact2: Fact( class == $class, this != $fact1 )
Field( $name: name, type == $class, modifiers == Modifier.PUBLIC )
Rule( dialect == mvel,
$rule: name
Has anybody run into this exception with Drools. I get it on 5.4 as well as
5.3. Any help on this is deeply appreciated. Stack trace follows -
Exception occurred during event dispatching:
Exception executing consequence for rule BORA5 in InvoiceOnly:
java.lang.RuntimeException: unable to