These two days I have watched this rule engine. drools Java version is 5.0, and poor drools.net is based on version 3.0. Sadly, Ms has a bug.
1. In the rule file, you can:
Global System. Collections. arraylist list
Global System. Text. stringbuilder Str
Global System. int32 num
But not:
Global System. String mystr
Error:"Illegal class for global. Expected [cli. system. String], found [java. Lang. String]."
Apparently, global cli. system. String mystr is incorrect,
Global java. Lang. String mystr compiled but run incorrectly
2. The correct rule:
Rule"Eval test"WhenEval (True)ThenSystem. Console. writeline ("Eval test"); End
If the program fails to run, or any eval syntax that has been tested is run, an error is thrown. All examples in drools. DOTNET. examples do not see the eval syntax usage routine. It is quite suspected that it is a drools.net bug.
1. duration is asynchronous.
If you add the duration problem before a rule, the execution of the engine is performed in another thread.ProgramMain thread, (golfingexample example, increase the outer loop, and add rule to duration)
Rule "find solution"
Duration1000
When
Golfer (fredsname: Name = "Fred ",
Fredsposition: position,
Fredscolor: color)
...
Which of the following unknown documents did I find out...