<!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">
<br>
<font face="Calibri">Hi all</font><br>
<br>
<font face="Calibri"> I have a rule with no-loop activated into a
RuleFlowGroup.&nbsp; Into the&nbsp; <b>Then</b> part the program ask user to
press a key. The flow arrives to a split element and&nbsp; if you have
pressed the bad key, the flow continues executing an
action(Sysout("Bad Character")) and then returns to the same
RuleFlowGroup, but at this time the rule doesn&acute;t execute. The program
enters into a infinite loop.&nbsp; It doesn&acute;t ask again for a key input and
the action element execute again and again becouse the key pressed is
in working memory.<br>
<br>
The rule:<br>
<font color="#009900">rule "Letter or Solve"<br>
&nbsp;&nbsp;&nbsp; ruleflow-group "Decision"<br>
&nbsp;&nbsp;&nbsp; no-loop<br>
&nbsp;&nbsp;&nbsp; when&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rules : GameRules(g : allowedGuesses , s : allowedSolves)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GuessedWord( guess : guessedWord , l : letters )<br>
<br>
&nbsp;&nbsp;&nbsp; then<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println("\n WORD:");<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println(guess + "\n");<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println( "Said Letters: "+ l +"\n");<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println( "*You still have "+ g +" tries to guess a
letter and "+ s + " tries to solve the word.\n");<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println( "Press&nbsp; \"X\" to exit, \"S\" to solve the
word or \"L\" to guess a new Letter");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; br = new BufferedReader( new InputStreamReader( System.in ) );<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i = br.readLine().toUpperCase();&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; modify ( rules ) { decision = i }<br>
end</font><br>
</font><br>
Thanks,<br>
Kevin<br>
</body>
</html>