How to integrate business logic in processes with JBoss BPM

In June 2016 the Early Access Program (MEAP) started for the book Effective Business Process Management with JBoss BPM.

What is a MEAP?

The Effective Business Process Management with JBoss BPM MEAP gives you full access to read chapters as they are written, get the finished eBook as soon as it’s ready, and receive the paper book long before it’s in bookstores.

You can also interact with the author, that’s me, on the forums to provided feedback as the book is being written. So come on over and get started today with Effective Business Process Management with JBoss BPM.

The way the MEAP works is that every month or so Manning puts a new chapter online. As of this week chapter 5 is available and those already in the MEAP will have access to start reading the chapter.

This is a large chapter and it is one of the harder topics to confine to a single chapter. I do expect to split this chapter up in the future so that you have the basics and then more advanced topics regarding learning to effectively implement your business logic with JBoss BPM.

To give you an idea of what’s available so far:

You can read this excerpt online before you decide, but I look forward to hearing from you on the content and stay tuned for more.

 

See more by Eric D. Schabell, contact him on Twitter for comments or visit his home site.

How To Import Any JBoss BRMS Example Project

This tips & tricks comes to you after I have been asked the following repeatedly over the last few weeks by users of the JBoss BRMS demos:

“How can I import the projects associated with the various JBoss BRMS demo projects into my own existing installation?”

What this means is that users want to have an example project in their personal installation of the product without using the projects installation process. This is certainly possible but not totally obvious to everyone.

Below I will walk you through how the various example projects for JBoss BRMS are setup, how the actual rules projects are loaded into JBoss BRMS when you set them up and why. After this I will show you how to extract any of the available rules projects for importing in to any previously installed JBoss BRMS server.

Figure 1: In JBoss BRMS open the Administration
perspective with menu options, Authoring -> Administration.

Background on how it works

The normal installation of a JBoss BRMS demo project that I have provided uses a template. This template ensures that the process is always the same; download, unzip, add products and run the installation script. After doing this, you are done, just fire up the JBoss BRMS for the adjusted experience where you open up the Authoring perspective to a pretty process designer with the demo project displayed for you to kick off a demo run.

These projects have a demo template that provides some consistency and you can read about how it works in a previous article.  For the initial installation run of any of these demo projects, a folder is copied from support/brms-demo-niogit to the installation at the location target/jboss-eap-{version}/bin/.niogit. 

Figure 2: To import a new project, open the Clone repository
from the menu Repositories. This will allow you to bring
in any rules project to your JBoss BRMS.

This folder contains all of the project and system Git repositories that are formatted for the version of the project you have downloaded. By installing this directory or complete repository, when JBoss BRMS starts up the first time, it will pick up the state I left it in when designing the experience around you using this demo project.

Get your hands on a specific rules project

The problem I want to help you with in this article is to show you how to extract only the rules project from one of these examples and import this into your own installation of JBoss BRMS.

Figure 3: Cloning a repository is how you import an
existing project, which requires the 
information shown.

The following list is the order you do the tasks, after which I will explain each one:

  1. Download any JBoss BRMS demo project and unzip (or clone it if you like).
  2. Log in to your own JBoss BRMS and open Administration perspective via menu: Authoring -> Administration.
  3. Setup the new rules project you want to import: Repositories -> Clone repository -> fill in details including import project URL
  4. Explore the new project in the Authoring perspective: Authoring -> Project Authoring
I am going to assume you can find a JBoss BRMS demo project of your liking from the link provided in step 1 and download or clone to your local machine.

I will be using the JBoss BRMS Cool Store Demo as the example project you want to import into your current JBoss BRMS installation instead of leveraging the standalone demo project.

In your current installation where you are logged in,  open the Administration perspective as shown in figure 1 by menu options Authoring -> Administration. This allows you to start importing any existing rules project. We will be importing the Cool Store rules project by using the feature to clone existing projects found in menu options, Repositories -> Clone repository as shown in figure 2.

Figure 4: Once the project has been imported (cloned), you
will receive this message in a pop-up.
This will produce a pop-up that asks for some information about the project to be imported, which you can fill in as listed below and shown in figure 3:
  • Repository Name: retail
  • Organizational Unit: Demos    (select whatever org you want to use from your system)
  • Git URL:  file:///[path-to-project-you-downloaded]/brms-coolstore-demo/support/brms-demo-niogit/coolstore-demo.git
Figure 5: Explore your newly imported rules project in the
authoring perspective within your JBoss BRMS installation.

The most interesting bit here is the Git URL, which is normally something hosted online, but this project we want to import is positioned locally in our filesystem, so we use a file based URL to point to it. Click on Clone button to import the project and you should see a pop-up that looks like figure 4 stating that you have successfully imported your project.

Now you can explore the new imported project in your authoring perspective and proceed as you desire with this project as shown in figure 5. This will work for any project I have put together for the field that is based on the standard template I use.

I hope this tips & tricks helps you to explore and enjoy as many of the existing rules examples offered in the current collection of demo projects.

 

See more by Eric D. Schabell, contact him on Twitter for comments or visit his home site.

Upcoming: Webinar on Design Approaches for Business Automation

Justin Holmes is a business automation practice lead with Red Hat. It is essentially his job to come up with practical solutions to business problems. He is conducting a webinar next week to go over design practices to more effectively develop and deliver software products, with a heavy emphasis using business rules and process automation to make testing and deploying software more controlled and easier. This webinar will look at two historically separate development processes — engineering-driven development and business rules-driven automation — and how it is possible to develop a design model using the strengths of both.

He has more details on the Services Speaks blog.

register_now

This event is free. It will be Tuesday, July 12, at 11am Eastern time.

Red Hat Updates JBoss BPM Suite and JBoss BRMS Products

We’re pleased to announce the launch of Red Hat JBoss BPM Suite 6.2 and Red Hat JBoss BRMS 6.2, our business process management (BPM) and business rules management platforms. These updates introduce a number of feature enhancements and new capabilities designed to infuse greater speed, quality, and control into the day-to-day creation and management of business rules and processes.

Continue reading “Red Hat Updates JBoss BPM Suite and JBoss BRMS Products”

Red Hat announces availability of containerized middleware capabilities on OpenShift

A little more than two years ago, we announced Red Hat’s “xPaaS” initiative to provide Red Hat JBoss Middleware on OpenShift and introduce a new way of building and deploying enterprise applications. Our efforts in executing against that vision and roadmap have entailed a lot of work and have been very exciting.

Continue reading “Red Hat announces availability of containerized middleware capabilities on OpenShift”