9.n3.nabble.com/forEach-node-Clarification-tp60090p870109.html
Sent from the Drools - User mailing list archive at Nabble.com.
----------
Message: 3
Date: Fri, 4 Jun 2010 08:47:29 -0300
From: Esteban Aliverti
Subject: Re: [rules-users] Object Referencing Error
To: Rules Users List
Message-ID:
rules-users-requ...@lists.jboss.org
>
> You can reach the person managing the list at
>rules-users-ow...@lists.jboss.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of rules-users digest..."
>
>
> Today's Topics:
>
> 1. Re: Object Re
rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Esteban Aliverti
Sent: 03 June 2010 23:43
To: Rules Users List
Subject: Re: [rules-users] Object Referencing Error
Yes, your rule entered in an infinite loop because when every time you
insert/modify/ret
; 1. Re: Object Referencing error: (Esteban Aliverti)
>
>
> ----------
>
> Message: 1
> Date: Thu, 3 Jun 2010 17:51:10 -0300
> From: Esteban Aliverti
> Subject: Re: [rules-users] Object Referencing error:
> To
--
Message: 1
Date: Thu, 3 Jun 2010 17:51:10 -0300
From: Esteban Aliverti
Subject: Re: [rules-users] Object Referencing error:
To: Rules Users List
Message-ID:
Content-Type: text/plain; charset="iso-8859-1"
You can't modify bobject, becuase it doe
You can't modify bobject, becuase it doesn't exist inside the session. You
just created it a few lines above. Maybe you need an insert() or maybe you
need the bobject reference from the LHS. Something like this:
*rule* "prod"
*when*
$a :A(Type == "Prod" , objectB != "")
*
Hi,
I am getting the following error when I try to do complex object referencing in
drools:
My class:
A{
String Type;
B objectb;
//getters and setters for above
}
My rules:
rule "prod"
when
$a :A(Type == "Prod" , objectB != "")
then
B bobject = new B();
bobject.setType( "