Create the simplest HelloWorld business rules

Source: Internet
Author: User
Tags jboss jboss server

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:


Related Article

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.