jBPM Hello World Example

  • Post author:
  • Post category:JBPM
  • Post comments:1 Comment
jBPM Hello World Example

In this guide we will discuss about Hello World Example of jBPM. Here, we will write our first application of jbpm. We have to follow the following steps to create our First Application.

Create Project

To Create Project Go to File -> New -> Other -> jBPM Project.

jBPM Hello World Example

2. Provide Project Name

Click Next and type our Project name “HelloWorld”.

jBPM Hello World Example

3. We include a sample process in our project to get started. See the Below Screen and click Next.

jBPM Hello World Example

4. Select jBPM Runtime

Click on Configure Workspace Setting.

jBPM Hello World Example

5 .New window screen will be opened, click on Add Button.

jBPM Hello World Example

Once you click on Add Button, a new window screen will open. In this window click on “Create a new jBPM Runtime”.

jBPM Hello World Example

Again new screen will be opened. Give the path for jBPM Runtime and select the Installed jBPM Runtime click on Apply and Close Button.

jBPM Hello World Example

6. Finish Project

Project Structure

Now open the Project Explorer View in Eclipse. We will see the following screen.

jBPM Hello World Example

Double click the sample.bpmn of the project, we will see the following screen.

jBPM Hello World Example

Here the Green circle tells the Start of the WorkFlow and Red circle tells the End of the WorkFlow. The Hello in between Start and End event is the Script Task.

To see the code written in the script task Hello, then go to Windows -> Show View -> Other -> Properties. We will see the below screen.

To see the code written in the script task Hello, then go to Windows -> Show View -> Other -> Properties. We will see the below screen.

Click on Open Button. Select Hello and see the properties of Hello event.

jBPM Hello World Example

To see the entire code written in Hello event click on action property, new screen will be appeared

jBPM Hello World Example

We can also edit this and write the code which we want to execute inside the Hello event script task. Let us edit and see the output.

jBPM Hello World Example

Output:

jBPM Hello World Example

Next Topic : Click Here

This Post Has One Comment

Leave a Reply