Drools. net bug?

Source: Internet
Author: User

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.

    • Is this 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.

    • Is this a strange thing?

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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.