<!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. Into the <b>Then</b> part the program ask user to
press a key. The flow arrives to a split element and 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´t execute. The program
enters into a infinite loop. It doesn´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>
ruleflow-group "Decision"<br>
no-loop<br>
when <br>
rules : GameRules(g : allowedGuesses , s : allowedSolves)<br>
GuessedWord( guess : guessedWord , l : letters )<br>
<br>
then<br>
System.out.println("\n WORD:");<br>
System.out.println(guess + "\n");<br>
<br>
System.out.println( "Said Letters: "+ l +"\n");<br>
<br>
System.out.println( "*You still have "+ g +" tries to guess a
letter and "+ s + " tries to solve the word.\n");<br>
System.out.println( "Press \"X\" to exit, \"S\" to solve the
word or \"L\" to guess a new Letter");<br>
br = new BufferedReader( new InputStreamReader( System.in ) );<br>
i = br.readLine().toUpperCase(); <br>
modify ( rules ) { decision = i }<br>
end</font><br>
</font><br>
Thanks,<br>
Kevin<br>
</body>
</html>