Book Image

Mastering jBPM6

By : Simone Fiorini, Arun V Gopalakrishnan
Book Image

Mastering jBPM6

By: Simone Fiorini, Arun V Gopalakrishnan

Overview of this book

Table of Contents (18 chapters)
Mastering jBPM6
About the Authors
About the Reviewers


jBPM is a leading open source BPM and workflow platform whose development is sponsored by Red Hat under Apache Software License (ASL) licensing. The jBPM product has been around for almost 10 years; its strongest points rely on flexibility, extensibility, and lightness, and it is a modular, cross-platform pure Java engine that is BPMN2 compliant.

It features a robust management console and development tools that support the user during the business process life cycle: development, deployment, and versioning. It integrates with widely-adopted frameworks and technologies (SOAP, REST, Spring, Java EE CDI, and OSGi) and provides off-the-shelf support to Git and Maven.

It fits into different system architectures and can be deployed as a full-fledged web application or as a service; it can be tightly embedded into a classical desktop application or loosely integrated into a complex event-driven architecture. In its default configuration, jBPM can be hosted by the enterprise class application server Red Hat EAP 6.x or the bleeding-edge Red Hat WildFly 8 server.

Mastering JBPM6 takes you through a practical approach to using and extending jBPM 6.2. This book provides a detailed jBPM 6.2 overview; it covers the BPM notation supported by the engine and explains the advanced engine and API topics focusing, as much as possible, on several working practical examples.

The book presents the user with solutions to common real-time issues like BAM (which stands for business activity monitoring) and production scenarios.

What this book covers

Chapter 1, Business Process Modeling – Bridging Business and Technology, gives the user an overview of the BPM environment, introduces the jBPM world and give insight to the big picture of business logic integrated platform.

Chapter 2, Building Your First BPM Application, starts by taking the user straight to the jBPM tool stack by providing the reader with a hands-on product installation and configuration tutorial, and then, it tackles beginner topics such as business process modeling and deployment.

Chapter 3, Working with the Process Designer, digs deep into web-based jBPM tools to illustrate to the user the main jBPM web designer features: user forms, scripting, and process simulation.

Chapter 4, Operation Management, describes the new jBPM artifacts architecture, focusing on Maven repositories (modules and deployment), engine auditing and logging analysis, jobs scheduling, and a full working BAM customization example (with Dashboard integration).

Chapter 5, BPMN Constructs, illustrates the BPMN2 constructs implemented by jBPM and provides insights and caveats about their usage by commenting a contextually ready-to-use source code example.

Chapter 6, Core Architecture, covers all the jBPM modules (for example, human task service, persistence, auditing, and configuration) by elaborating on how to leverage engine functionalities with the help of several source code examples.

Chapter 7, Customizing and Extending jBPM, explores engine customization areas with a practical approach; it provides the user with explanations on how to customize persistence, human task service, marshalling mechanism and the work item handler architecture.

Chapter 8, Integrating jBPM with Enterprise Architecture, describes how jBPM can integrate with external applications through SOAP, REST, or JMS either as a client or a server. It offers insights on how to leverage its services in a Java EE application.

Chapter 9, jBPM in Production, explores the jBPM system features when dealing with service availability, scalability, and security; it provides tips and techniques related to engine performance tuning in production environments.

Appendix A, The Future, briefly details the trends and future of Business Process Modeling.

Appendix B, jBPM BPMN Constructs Reference, is a quick reference for the BPMN constructs supported by jBPM.

What you need for this book

You will need the following software to be installed before running the code examples:

jBPM requires JDK 6 or a higher version. JDK 6 or newer versions can be downloaded from There are installation instructions on this page as well. To verify that your installation was successful, run java –version on the command line.

Download from Just unzip it in a folder of your choice. The user guide ( includes instructions on how to get started in a simple and quick manner.

The jBPM setup requires Ant 1.7 or later (

The additional required software is as follows:

The preferred development IDE to run the examples is the Eclipse Kepler distribution, which can be automatically downloaded and pre-configured with the BPMN installation process.

Who this book is for

This book is primarily intended for jBPM developers, business analysts, and process modelers, and, to some extent, for project managers who must be exposed to the jBPM platform features. The book assumes that you have prior knowledge of business analysis and modeling, and, of course, Java; basic knowledge of jBPM is also required.


In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in the text are shown as follows: "Specify a role for the users in the file."

A block of code is set as follows:

ReleaseId newReleaseId = ks.newReleaseId("com.packt.masterjbpm6", "pizzadelivery", "1.1-SNAPSHOT");
// then create the container to load the existing module
Results result = ks.updateToVersion (newReleaseId);

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

<bpmn2:scriptTask id="_2" name="prepare order" scriptFormat="">

Any command-line input or output is written as follows:

ant install.demo

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Select the Administration | Data Providers link from the left navigation menu pane."


Warnings or important notes appear in a box like this.


Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files from your account at for all the Packt Publishing books you have purchased. If you purchased this book elsewhere, you can visit and register to have the files e-mailed directly to you.


Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to and enter the name of the book in the search field. The required information will appear under the Errata section.


Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.


You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.