Hi all,
I´m new in drools and after read documentation I have tried to do my
own project based in NumberGuess example.
This project is a hangman game, but running it I have detected two
errors that I don´t know how to solve.
I enclose the project files if someone wants to try it and can help me
to
understand the malfunctions.
Malfunctions:
1-. I have a rule with no-loop activated into a RuleFlowGroup(in
project, Take a Decision). After rule execution , the flow continues
but if you have introduced a bad option, the flow executes an
action(Sysout("Bad Character")) and then returns to the same
RuleFlowGroup, but at this time the rule doesn´t execute. For this
reason the program enters into a infinite loop. I don´t understand this
behaviour, taking into account that the rule executes again when
another RuleFlowGroup appears between "Take a Decision" RuleFlowGroups.
2-. When you try to solve the word and you guess it, the flow continues
towards the Wrong way instead of towards the Well way. I have added
some code lines to see the solution after the first try of solving to
allow an easy way to test this.
I know that probably all RuleFlowGroups in the flow are really not
necessary but they are my first steps with drools.
Another thing that I want to ask is the way to use in a Action block
the objects that I have already in the working memory, using java.
Thank you.
Kevin.