9.4. Creating a JBoss BRMS Project

Procedure 9.5. Task

To create a new JBoss BRMS project in the Drools perspective:
  1. Go to FileNewProject.
    A New Project wizard opens.
  2. Navigate to DroolsDrools Project.
    A New Drools Project wizard opens.
  3. On the New Drools Project wizard, click Next.
  4. Enter a name for your Drools project and click Next.
  5. Check the required checkboxes with default artifacts you need in your project, and click Next.
    The Drools Runtime wizard opens.
  6. Select a Drools runtime.
    If you have not set up a Drools runtime, click the Configure Workspace Settings... link. If you click this link, the workspace preferences showing the currently installed Drools runtimes opens. Add new runtimes there and click OK.
  7. Select the Drools project version from the Select code compatible with: option.
  8. Provide values for the following:
    • groupid: The id of the project's group or the root of your project's Java package name.
    • artifactid: The id of the artifact (project).
    • version: The version of the artifact under the specified group.
  9. Click Finish.
If you checked the default artifacts checkboxes in the Drools Project wizard, you can see the newly created Drools project in the Package Explorer accordingly containing:
  • A sample rule file Sample.drl in the src/main/resources/rules folder.
  • A sample process file Sample.bpmn in the src/main/resources/process folder.
  • An example java file DroolsTest.java in the src/main/java folder to execute the rules in the Drools engine in the com.sample package.
  • All the jar files necessary for execution in the src/main/resources/Drools Library.