I guess the example is a simplification as c (in RHS) has not been bound
to a fact.
Anyway, that aside, do you call update to ensure WM knows of changes to
facts otherwise properties need to be time-constant which in your example
they are not.
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL
not
very clear ;)
Subject: RE: [rules-users] Synch Business Object / Working Memory
Date: Fri, 11 Apr 2008 10:39:41 +0100
From: [EMAIL PROTECTED]
To: rules-users@lists.jboss.org
In essence, yes. Have a look at update in the manual (and a read
on Shadow Facts will probably be useful too
yes, i made a mistake. its a.setE(...) and not c.setE(...).
I don't call update. If I dont call update, properties of an object are just
read one time for all rules?
Subject: RE: [rules-users] Synch Business Object / Working Memory
Date: Fri, 11 Apr 2008 09:47:43 +0100
From: [EMAIL PROTECTED
Object / Working Memory
yes, i made a mistake. its a.setE(...) and not c.setE(...).
I don't call update. If I dont call update, properties of an object are just
read one time for all rules?
_
Subject: RE: [rules-users] Synch Business Object / Working Memory
Date: Fri, 11 Apr 2008 09:47
type7/type
/org.drools.audit.event.ActivationLogEvent
/list
/object-stream
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan
Guéhenneux
Sent: 11 April 2008 11:33
To: Rules Users List
Subject: RE: [rules-users] Synch Business Object / Working Memory
Ok
Indeed, it works but I will have to use such booleans for a lot of rules.
Cause my rule flow is schematically :
compute A
compute B(A)
compute C(B)
...
Perhaps I may create several ruleflows, one per independant computing?
Subject: RE: [rules-users] Synch Business Object / Working Memory
Date
To: Rules Users List
Subject: RE: [rules-users] Synch Business Object / Working Memory
Indeed, it works but I will have to use such booleans for a lot of rules.
Cause my rule flow is schematically :
compute A
compute B(A)
compute C(B)
...
Perhaps I may create several ruleflows, one per independant
First, thank you for yours answers which are very clear. Your solution will
probably work. I'm just desapointed that there is no way to synchronized the
shadow with the object. That would be great for my work.
Subject: RE: [rules-users] Synch Business Object / Working Memory
Date: Fri, 11 Apr
times?
Stick with both Drools and the group - we'll get you to where you want to
be.
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan
Guéhenneux
Sent: 11 April 2008 15:41
To: Rules Users List
Subject: RE: [rules-users] Synch Business Object / Working Memory