14.3. Exploring a JBoss BPM Suite Application

Before exploring how to create JBoss BPM Suite projects using JBoss Developer Studio, let us first understand the structure of JBoss BPM Suite projects. A JBoss BPM Suite application comprises the following components:
  • A set of Java classes that will become process variables or facts in rules.
  • A set of services accessed from service tasks in the business process model.
  • A business process model definition file in BPMN2 format.
  • Rules assets (optional).
  • Java class that drives the application, including creation of a knowledge session, starting processes, and firing rules.
When you create a BPM Suite project, the following directories are generated:
  • src/main/java that stores the class files (facts).
  • src/main/resources/rules that stores the .drl files (rules).
  • src/main/resources/process that stores the .bpmn files (processes).
  • src/main/resources/jBPM Library that holds the generated .jar files required for rule execution.