- Drools Tutorial
- Drools - Home
- Drools - Introduction
- Drools - Eclipse Plugin
- Drools - Runtime
- Drools - Create A Drools Program
- Drools - Frequently Used Terms
- Drools - Rules Writing
- Drools - Rules Syntax
- Drools - Sample Drools Program
- Drools - Debugging
- Drools Useful Resources
- Drools - Quick Guide
- Drools - Useful Resources
- Drools - Discussion
Drools - Create a Drools Program
To create a basic Drools program, open Eclipse. Go to Fileb → New → Project.
Select Drools Project. Give a suitable name for the project. For example, DroolsTest.
The next screen prompts you to select some files which you want in your first Drools project.
Select the first two files. The first file is a .drl file (Drools Rule File) and the second file is a Java class for loading and executing the HelloWorld rule.
Click on Next → Finish.
Once you click on Finish, a <DroolsTest> project is created in your workspace. Open the Java class and then right-click and run as Java application. You would see the output as shown here −
Next, we will discuss the terms frequently used in a Rule Engine.
Advertisements
To Continue Learning Please Login
Login with Google