Chapter 9. Using JBoss Developer Studio to Create and Test Rules

There are many ways to author rules in BRMS, however as a developer you would prefer an Integrated Development Environment (IDE) such as JBoss Developer Studio that offers you advanced tooling and content assistance. JBoss BRMS and JBoss BPM Suite tooling are compatible with JBoss Developer Studio version 7 and above. The JBoss Developer Studio with JBoss BPM Suite/BRMS plug-ins simplify your development tasks. These plug-ins provide the following features:
  • Simple wizards for rule and project creation
  • Content assistance for generating the basic rule structure. For example, If you open a .drl file in the JBoss Developer Studio editor and type ru, and press Ctrl+Space, the template rule structure is created.
  • Syntax coloring
  • Error highlighting
  • IntelliSense code completion
  • Outline view to display an outline of your structured rule project
  • Debug perspective for Rules/Process debugging
  • Rete tree view to display Rete network
  • Editor for modifying business process diagram
  • Support for unit testing via JUnit and TestNG

9.1. JBoss Developer Studio Drools Perspective

JBoss Developer Studio comes with all the BRMS and BPM Suite plug-in requirements pre-packaged with it. It offers the following perspectives:
  • Drools: allows you to work with JBoss BRMS specific resources
  • Business Central Repository Exploring
  • jBPM: allows you to work with JBoss BPM Suite resources