Show Table of Contents
Chapter 3. Creating a New Drools Project
3.1. Creating a Sample Drools Project
- To create a new Drools project, click New Drools Project wizard.→ → → → . This will open theType the project name into the relevant field and click thebutton.
- You will see a list of default artifacts to it like sample rules, decision tables or ruleflows and Java classes for them. Add the ones that are relevant to your project and click.
- You will be asked to specify a Drools runtime. If you have not yet set it up, you should do this now by clicking thelink.You should see the Preferences window where you can configure the workspace settings for Drools runtimes. To create a new runtime, click the button. It will prompt you to enter a name for a new runtime and a path to the Drools runtime on your file system.
NoteA Drools runtime is a collection of .jars on your file system that represent one specific release of the Drools project .jars. When creating a new runtime, you must either point to the release of your choice or create a new runtime on your file system from the .jars included in the Drools Eclipse plugin.
- You can create a new Drools 5 runtime from the .jars embedded in the Drools Eclipse plugin. Click thebutton, select the folder where you want the runtime to be created and click .
- You will see the newly created runtime show up in your list of Drools runtimes. Check it and click thebutton.
- Click theto complete the project creation.
- Now you have a basic structure, classpath, sample rules and test case to get you started.