<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<pre>
in the beginning I inserted a couple of not processed customers in my
workingmemory (#total = #not processed, #processed = 0). During the
rules 1-9 a part ot these customers will be processed (call
$customer.setProcessed(true) and udpate($customer) the wm).
Rule 10 + 11 should sort the customers. The result of rule 10 looks
perfect, the list just contain the processes customers. The result of
rule 11 looks bad, all customers in the wm are in the result. (#total =
#not processed + #processed)
Rule 11 is activated as last one, in the insert process all customers
are not processed, then I try to change the customer objects in the
working memory (rule 1-9). The output produced in the for-loop shows
that already processed customers are in the list, which should only
contain not processed customers.
What is wrong, where I made my mistake?
best wishes+Thanks a lot.
Thorsten Trägenap
rule "#10"
salience 46
when
$kunden : ArrayList() from collect (Customer(processed == true))
then
System.err.println("customers already processed " +
$kunden.size() + " " + $kunden);
end
rule "#11"
salience 47
when
$cust : ArrayList() from collect (Customer(processed == false))
then
System.err.println("Customer to process " + $cust.size() + " " +
$cust);
for (int i = 0; i < $cust.size(); i++) {
Customer c = (Customer)$cust.get(i);
if (c.getProcessed()) System.err.println("Why i am here: " +
c);
}
end
</pre>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="ProgId" content="Word.Document">
<meta name="Generator" content="Microsoft Word 9">
<meta name="Originator" content="Microsoft Word 9">
<link rel="File-List" href="./Signatur-Dateien/filelist.xml">
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>tt</o:Author>
<o:LastAuthor>tt</o:LastAuthor>
<o:Revision>2</o:Revision>
<o:Created>2004-02-02T07:39:00Z</o:Created>
<o:LastSaved>2004-02-02T07:39:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>12</o:Words>
<o:Characters>70</o:Characters>
<o:Company>t</o:Company>
<o:Lines>1</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>85</o:CharactersWithSpaces>
<o:Version>9.2812</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:HyphenationZone>21</w:HyphenationZone>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<div class="Section1">
<table style="" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p class="MsoNormal"><b><span style="font-family: Arial;">Gesprächspartner:</span></b><span
style="font-family: Arial;"> <o:p></o:p></span></p>
</td>
<td
style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color black; border-width: medium medium 1pt; padding: 0.75pt; width: 300pt;"
width="400">
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><span
style="font-family: Arial;"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p class="MsoNormal"><b><span style="font-family: Arial;">Datum:</span></b><span
style="font-family: Arial;"> <o:p></o:p></span></p>
</td>
<td
style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color black; border-width: medium medium 1pt; padding: 0.75pt;">
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><span
style="font-family: Arial;"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p class="MsoNormal"><b><span style="font-family: Arial;">Inhalt:</span></b><span
style="font-family: Arial;"> <o:p></o:p></span></p>
</td>
<td
style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color black; border-width: medium medium 1pt; padding: 0.75pt;">
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><span
style="font-family: Arial;"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p class="MsoNormal"><b><span style="font-family: Arial;">TODO:</span></b><span
style="font-family: Arial;"> <o:p></o:p></span></p>
</td>
<td
style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color black; border-width: medium medium 1pt; padding: 0.75pt;">
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><span
style="font-family: Arial;"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p class="MsoNormal"><b><span style="font-family: Arial;">Rückmeldung
bis:</span></b><span style="font-family: Arial;"> <o:p></o:p></span></p>
</td>
<td
style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color black; border-width: medium medium 1pt; padding: 0.75pt;">
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><span
style="font-family: Arial;"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt;" valign="top">
<p class="MsoNormal"><b><span style="font-family: Arial;">Absender:</span></b><span
style="font-family: Arial;"> <o:p></o:p></span></p>
</td>
<td
style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color black; border-width: medium medium 1pt; padding: 0.75pt;">
<p class="MsoNormal"><!--[if !supportEmptyParas]--> <!--[endif]--><span
style="font-family: Arial;"><o:p>TT</o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-family: Arial;"><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></span></p>
</div>
</div>
</body>
</html>