Create the simplest HelloWorld business rule

Source: Internet
Author: User
Tags jboss server

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:

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.