<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Anstis, Michael (M.) wrote:
<blockquote
cite="mid:6CE83AFC8500B641AE00AC1674A3B4AC06C5663A@eu1wam08.warley.ford.com"
type="cite">
<pre wrap="">I *seem* to be able to still use "update" in the RHS with 4.0.5.
</pre>
</blockquote>
yes update has not been removed, it's still part of the main api. If we
removed it you would have no way to notify the engine of changes from
outside the engine, and I expect some people might be upset if their
drls broke if we removed it from consequences :)<br>
<blockquote
cite="mid:6CE83AFC8500B641AE00AC1674A3B4AC06C5663A@eu1wam08.warley.ford.com"
type="cite">
<pre wrap="">
Perhaps I've got my binaries mixed up. If I get the chance I'll do a clean
install.
Thanks for the clarification - I don't want to end up confusing matters with
my "help" ;-)
-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>
[<a class="moz-txt-link-freetext" href="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</a>] On Behalf Of Mark Proctor
Sent: 11 April 2008 12:51
To: <a class="moz-txt-link-abbreviated" href="mailto:christine@christine.nl">christine@christine.nl</a>; Rules Users List
Subject: Re: [rules-users] modify()
X10 wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I take it the "modify()" that's in the manual got replaced by
"update()"?
</pre>
</blockquote>
<pre wrap=""><!---->The meanings have changed, but both exist to some degree. modify() is a
specail keyword used in the java/mvel consequence. Inside a consequence
it is the preferred way modify facts, so that the engine is notified.
Outside of consequence, in normal Java, one an object has been changed
you need to notify the engine, this is done via the update() method,
which tells the engine the fact has been updated.
The main difference is that update( handle ) only takes a single
parameter where as modify( object ) { field1 = value1, field2 = value2 }
takes key/value pair comma separated list of setters. the language used
to apply those setters is dependant on whether you are using the mvel or
java dialect.
Mark
</pre>
<blockquote type="cite">
<pre wrap="">Christine
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>