Javatpoint Logo
Javatpoint Logo

jBPM Processes

JBPM process can be easily understand with the help of BPMN.

What is BPMN 2.0?

  • It stands for Business Process Model and Notation.
  • It is based on OMG (Object Management Group) specification.
  • It is similar to flowchart diagram.
  • Its primary goal is to provide a notation that is readily understandable by all business users i.e. from the business analysts, to the technical person and finally, to the business users who manage and monitor those processes.
  • It does not only define a standard on how to graphically represent a business process but also includes execution of semantic for the element defined and an XML format to store process definition.
  • BPMN consists of different types of nodes that are connected with each other using sequence flows. BPMN consists of three different types of nodes. They are:
    • Events: Start event, End events and intermediate events.
    • Activities: Script task, User task, Service task, Business Rule task etc.
    • Gateways: Divergent Gateway, Convergent Gateway

Process Creation

There are three methods available to create a process:

  1. Using the graphical BPMN2 editor
  2. Defining Process using XML
  3. By directly creating a process using the process API.

Using the Graphical BPMN2 Editor

BPMN2 is an Eclipse plugin. It provides an editor which allows us to create a process by using drag and drop option. After creating a node using drag and drop option we can edit its properties.

To open the BPMN editor in jBPM project, Right-click the directory where we want to keep our process and Select New, then click on file, give the file name and save it with .bpmn extension. This will open up the process editor which shows in the below screen.


jbpm Processes

In this editor, we can create a process by adding node which represents the business logic that we want to specify in our Business process.

Defining Process Using XML

We can also specify the processes using BPMN2.0 XML directly. The syntax of these XML processes is defined by using the BPMN2.0 XML schema definition. The process XML file consist of two parts: The upper part and the lower part.

The upper part has the definition of the different nodes and their properties and the lower part has all graphical information. The process XML consists of only one element.

Example: Here, we create a process that contains a start event, a script task which print "Hello World" and an end event.






Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA