English 中文(简体)
Drools - Create A Drools Program
  • 时间:2024-11-05

Drools - Create a Drools Program


Previous Page Next Page  

To create a basic Drools program, open Ecppse. Go to Fileb → New → Project.

Basic Drools Program

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.

New 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.

Cpck on Next → Finish.

Select Drools Runtime

Once you cpck on Finish, a <DroolsTest> project is created in your workspace. Open the Java class and then right-cpck and run as Java apppcation. You would see the output as shown here −

Result

Next, we will discuss the terms frequently used in a Rule Engine.

Advertisements