Starting jBPM 6 engine

Once completed, we will start the application server and check out the jbpm console. Since the jbpm6 console contains some resources bound to the jms adapter, we will need starting jboss using the full (or full-ha) profile:

standalone.bat -c standalone-full.xml

Once the application server is up and running, verify that the jbpm-console has been deployed by reaching out the default address: http://localhost:8080/jbpm-console
The default users and their roles are picked up from the users.properties and roles.properties contained in the configuration folder of the application server. Choose one such as krisv/krisv and enter them in the console.

jbpm 6 tutorial introduction howto jbpm 6 tutorial introduction howto 

The KIE Workbench is a rich web application which can be used for a variety of purposes such as authoring processes, starting and monitoring them and their tasks. The first thing we will do is selecting from the upper Menu Authoring -> Project Authoring

jbpm 6 tutorial introduction howto
From there, you will be able to access the "New Item" Menu where we will choose the "Project" option. Enter a name for the new project in the following window:

jbpm 6 tutorial introduction howto jbpm 6 tutorial introduction howto
Now you will be requested to enter the Group Specification version for our project: as you can see, projects stored in jbpm6 repository are stored as Maven resources and you have even some ready-to use Maven artifacts for creating jbpm6 projects.

jbpm 6 tutorial introduction howto
Save your Project. We will now create a Business Process in this project. Select from the New Item menu the option "Business Process". Enter a name for the process and check that it's part of your project.

jbpm 6 tutorial introduction howto jbpm 6 tutorial introduction howto
Now the BPMN 2.0 editor will start: click on the Object library icon ("<<") to show the palette of items you can add to your process. In this very basic example, we will just add a Script item (under the Tasks menu) and an End item ("End events"). Connect each item by clicking on the item and selecting the Edge option which will connect a pair of items. So your first process should look like this:

jbpm 6 tutorial introduction howto

Now let's specify an action to execute on the Script node: just select it and pickup the icon "<<" which is located on the right border of your process. Enter a Java expression in the "Script" field, such a basic HelloWorld Message.

jbpm 6 tutorial introduction howto jbpm 6 tutorial introduction howto
Now click on the "Save" icon, in the process toolbar:

jbpm 6 tutorial introduction howto
Now return to the upper menu Authoring->Project Authoring. In the upper right side, you will find the Save - Build And Deploy options.

jbpm 6 tutorial jbpm 6 tutorial introduction howto

Choose to Save changes first, then click on Build and Deploy. A quick popup message will inform you that the pom.xml has been saved and your project deployed. Now we will execute our first project: select the Process Management->Process Definition option. There you will find the demoprocess that we have just created and click on the start icon.

jbpm 6 tutorial introduction howto
A window containing an automatically generated form will appear. As we didn't enter any variable definition in our form, just click on the right arrow to launch your process:

jbpm 6 tutorial introduction howto
The Instance Details frame will populate including the details of your process that we have just started.

jbpm 6 tutorial introduction howto jbpm 6 tutorial introduction howto
As a confirmation that your process correctly executed, move to the Application Server console and check out for the log message:

jbpm 6 tutorial introduction howto jbpm 6 tutorial introduction howto
Great! you have just completed your first jBPM 6 process. Do you want to check how to install jBPM 6 with another Database such as PostgreSQL? check this: Configuring jBPM 6 to use a non-default Database

0
0
0
s2smodern