[seam-commits] Seam SVN: r12158 - branches/community/Seam_2_2/examples/drools/resources.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Mar 10 10:52:18 EST 2010


Author: tsurdilovic
Date: 2010-03-10 10:52:17 -0500 (Wed, 10 Mar 2010)
New Revision: 12158

Modified:
   branches/community/Seam_2_2/examples/drools/resources/numberguess.drl
Log:
JBSEAM-4562

Modified: branches/community/Seam_2_2/examples/drools/resources/numberguess.drl
===================================================================
--- branches/community/Seam_2_2/examples/drools/resources/numberguess.drl	2010-03-10 14:02:38 UTC (rev 12157)
+++ branches/community/Seam_2_2/examples/drools/resources/numberguess.drl	2010-03-10 15:52:17 UTC (rev 12158)
@@ -34,9 +34,9 @@
 rule Lose
    #ruleflow-group "Decision"
    when 
-      Game(guessCount==9)
+   	  Guess(value!=randomNumber)
    then
-      if ( decision.getOutcome()==null )
+      if ( game.getGuessCount() == 9 && decision.getOutcome()==null )
       {
          decision.setOutcome("lose");
       }



More information about the seam-commits mailing list