[rules-users] Fwd: Dynamic JavaBeans

Yuri de Wit ydewit at gmail.com
Wed Jun 27 21:20:27 EDT 2007


Sorry if this gets second posted, but it seems that the first one
didnt go through...

---------- Forwarded message ----------
From: Yuri de Wit <ydewit at gmail.com>
Date: Jun 27, 2007 8:29 PM
Subject: Dynamic JavaBeans
To: Rules Users List <rules-users at lists.jboss.org>


I noticed that changes performed on facts asserted dynamically causes
the fact to be modified right away and therefore triggering a RETE
network traversal and rule schedulings.

For apps with a large number of facts this could be a significant
scalability problem. At least in my case, I would like to be able to
use dynamic facts and perform any number of updates and have those
updates commited to working memory only when the rule consequence is
completed.

Looking at the code, it seems that it would not be a major effort to
collect the facts received by the ReteooWorkingMemory.propertyChange
and perform the actual modifyObject() only when the consequence
evaluation is actually completed.

Does that makes sense? Or are there side effects I am not seeing? Is
this a problem that 4.0 already resolves?

thanks in advance,

-- yuri



More information about the rules-users mailing list