1. Start JBoss Server, open http://127.0.0.1:8080/drools-guvnor page into Guvnor system 2. Create a new rule: in the left-hand navigation bar, select Knowledgebase->create new->new, enter the name of the business rules in the pop-up dialog box Helloworldrule, initialize the directory to select one, type select DRL Rule (Technical Rule–text Editor), package Select Default package, as shown in the following illustration:
3. Click OK to do the regular text editing interface, write a simple HelloWorld business rules, as follows:
4. Click "Save Changes" to save the business Rule 5. Because the business rule cannot run the display results independently of the Guvnor, a test script is written to detect the execution result of the business rule. As shown in figure one, select the Create New->new test scenarios, enter the name of the test script in the pop-up dialog box, select the default package, as shown in the following illustration:
6. After that, enter the test script editing interface, because our business rule condition is always true, so there is no need to make any changes, just click Run scenarios running the test script, as shown in the following figure:
7. The results of the operation are shown below:
8. The DOS window interface in JBoss is shown as follows: