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.
Select Drools project from DROOLS folder. After selection click on next button. A dialog appears as shown below
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.
Click on configure work space settings. A pop up appears as shown below
Click on add button. A dialog appears as shown below
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
Select Rule Resource from DROOLS folder and click next. A dialog appears as shown below.
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:
Post a Comment