<br><font size=2 face="sans-serif">I have spent several days writing rules
and tests for them in Guvnor, and kept having strange results. &nbsp;A
test would sometimes fail, repeatedly, and then finally start working after
I would delete and recreate some portion of it, or change a value.</font>
<br>
<br><font size=2 face="sans-serif">After two of us spent many hours trying
to identify the extent of the problem, we concluded the following:</font>
<br><font size=2 face="sans-serif">1. &nbsp;The problem happens under both
IE and Firefox.</font>
<br><font size=2 face="sans-serif">2. &nbsp;The problem happens less frequently
under Firefox if we install and turn on a third-party plug-in which disables
Firefox caching web pages.</font>
<br><font size=2 face="sans-serif">3. &nbsp;Saving a new rule or test will
allow us to work with it (edit - save - test scenarios). &nbsp;However,
frequently the rule or test will just disappear once we log out.</font>
<br><font size=2 face="sans-serif">4. &nbsp;A &quot;Save&quot; and &quot;Check-in&quot;
will often work correctly if we cross our fingers and do the following:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; a.
&nbsp;Save it once &nbsp;(the screen updates, and you can check the version
history)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; b.
&nbsp;Refresh the browser</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; c.
&nbsp;Make the change again</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; d.
&nbsp;Save it a second time</font>
<br><font size=2 face="sans-serif">5. &nbsp;After doing a &quot;Save&quot;
and &quot;Check-in&quot;, you can immediately do a &quot;view source&quot;
and see your changes in place. &nbsp;However, if you then close the test
(or rule) and re-open it, you will often find that the change is gone,
and the test or rule looks like it did before you made the change.</font>
<br>
<br><font size=2 face="sans-serif">A sample screenshot appears below. &nbsp;In
this case, I created the test with the &quot;performedTime&quot; set to
20-Sep-2008. &nbsp;I ran the test and it failed, because the rule was checking
for greater than or equal to 21-Sep-2008. &nbsp;I then changed the date
on the test to 21-Sep-2008, did a &quot;save changes&quot; and a &quot;Check-in&quot;,
and then ran the scenario again.</font>
<br>
<br><font size=2 face="sans-serif">As you can see below, the asserted object
contains the date 20-Sep-2008, even though the test clearly shows 21-Sep-2008.</font>
<br>
<br><img src=cid:_1_09A1E1A009A1DAC80005F9E7852577A6>
<br>
<br><font size=2 face="sans-serif">Does anybody have any ideas on this?
&nbsp;If I copy the above test into a new test, it will often work the
first time, but then it may disappear, once I logout, even though it was
saved and checked-in.</font>
<br>
<br><font size=2 face="sans-serif">It almost seems like there is something
wrong with the imbedded repository, and / or the first running of the test
created fact objects that are persisting and being found the second time
I ran the changed test. ...</font>
<br>
<br><font size=2 face="sans-serif">We are running the Final release of
Drools Guvnor 5.1.1 found in drools-5.1.1-guvnor.zip downloaded on 4-Sep-2010</font>
<br><font size=2 face="sans-serif">We are running under Tomcat 6.0, with
the recommended jar files replaced.</font>
<br>
<br><font size=2 face="sans-serif">Thanks for your help!</font>
<br><font size=2 face="sans-serif"><br>
--------------------------------------------------<br>
David Shields<br>
Division of Clinical Informatics<br>
Department of Community and Family Medicine<br>
Duke University Medical Center<br>
<br>
Phone (864) 787-8551<br>
<br>
</font>