Friday, December 4, 2015

Procedure to create DROOLS Project in Eclipse

Step by step procedure to create a drool project is given below. Open eclipse. Go to File → New → Other. A pop up appears as shown below.

 New Drools Project
Select Drools project from DROOLS folder. After selection click on next button. A dialog appears as shown below
Drools Project Name

Enter a project name and click on next button. A new window appears as shown below. If you wish to have a sample rule file, select first two options, else uncheck the options.
Drools Install Run Time

A dialog appears as shown below
Drools Run Time Install

Click on configure work space settings. A pop up appears as shown below
Drools Project package

Click on add button. A dialog appears as shown below
Drools Project Finish
Click on create a new DROOLS 5 Runtime Button. A folder browser dialog opens. Browse a drive and select a blank folder and click on “Ok” button. Click on “OK” button of DROOLS Run Time window. Click on “Ok” button of install drools run time window. It will navigate to parent screen. Click finish to create a project. You had created your first Drools Project. Now lets us look at how to add rules and work flows.
To add a rule file , create a package. Right Click on the package and select new → Other. A dialog appears as shown below
Drools Rule File Creation

Select Rule Resource from DROOLS folder and click next. A dialog appears as shown below.
Drools Rule Flow Creation
Enter File Name and Rule Package Name and click on finish. Rule file will be created. For adding a Work Flow file select Flow File in the DROOLS package .

No comments: