1. Start the Jboss server and open the http: // 127.0.0.1: 8080/drools-guvnor page to enter the Guvnor System
2. create a New Rule: In the left-side Navigation Pane, select KnowledgeBase-> Create New-> New Rule. In the displayed dialog box, enter the service Rule name HelloWorldRule, and select either of the initialization directories, select DRL Rule (technical rule-text editor) as the type, and select default package as the package, as shown in:
3. Click OK to edit the rule text interface and write a simple HelloWorld business rule, as shown below:
4. Click Save changes to Save the business rule.
5. Because the business rule cannot run the Display Results independently in Guvnor, you need to write a test script to check the execution results of the business rule. Select Create New-> New Test Scenarios, enter the name of the Test script in the displayed dialog box, and select the default package, as shown in:
6. Then, enter the test script editing interface. Because our business rule conditions are always true, you do not need to make any changes. Click Run Scenarios to Run the test script, as shown in:
7. The running result is as follows:
8. The Dos window of Jboss is displayed as follows: