JBPM process can be easily understand with the help of BPMN.
What is BPMN 2.0?
There are three methods available to create a process:
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.
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
Example: Here, we create a process that contains a start event, a script task which print "Hello World" and an end event.