<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. 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. The problem happens under both
IE and Firefox.</font>
<br><font size=2 face="sans-serif">2. 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. Saving a new rule or test will
allow us to work with it (edit - save - test scenarios). However,
frequently the rule or test will just disappear once we log out.</font>
<br><font size=2 face="sans-serif">4. A "Save" and "Check-in"
will often work correctly if we cross our fingers and do the following:</font>
<br><font size=2 face="sans-serif"> a.
Save it once (the screen updates, and you can check the version
history)</font>
<br><font size=2 face="sans-serif"> b.
Refresh the browser</font>
<br><font size=2 face="sans-serif"> c.
Make the change again</font>
<br><font size=2 face="sans-serif"> d.
Save it a second time</font>
<br><font size=2 face="sans-serif">5. After doing a "Save"
and "Check-in", you can immediately do a "view source"
and see your changes in place. 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. In
this case, I created the test with the "performedTime" set to
20-Sep-2008. I ran the test and it failed, because the rule was checking
for greater than or equal to 21-Sep-2008. I then changed the date
on the test to 21-Sep-2008, did a "save changes" and a "Check-in",
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?
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>