JBoss Series eighty: jBPM 6 jbpm-console is used to create the implementation of BPM Process - I

In this paper, the following steps explain how to create a BPM process execution in jBPM console.

Installation jBPM6, add users to kylin jBPM 6 follows the user, and starts jBPM 6

Please refer to the installation jBPM6 jBPM 6 release, quick installation, new features introduced .

Edit ../standalone/configuration/users.properties, add kylin = kylin to the end user list:

admin=admin
krisv=krisv
john=john
mary=mary
sales-rep=sales-rep
katy=katy
jack=jack
salaboy=salaboy
kylin=kylin

Edit ../standalone/configuration/roles.properties, add kylin = admin, analyst role to the end:

admin=admin,analyst
krisv=admin,analyst
john=analyst,Accounting,PM
mary=analyst,HR
sales-rep=analyst,sales
jack=analyst,IT
katy=analyst,HR
salaboy=admin,analyst,IT,HR,Accounting
kylin=admin,analyst

Start jBPM 6 using the following command:

./standalone.sh -c standalone-full.xml

Note that we use the above command to start jBPM6 is because we use Mysql replace the default H2 database.
Use kylin / kylin Log HTTP: // localhost: 8080 / jBPM-Console , we will see jBPM 6 welcome page.

Create an Organizational Unit

jBPM 6 in two new features, based on Git development lifecycle, Maven-based management model, which makes management processes such as the introduction of Organizational Units, Repositories, Projects, we first need to create an Organizational Unit.

Select Authoring the welcome page -> Administration -> Organizational Units -> Manage Organizational Units, click Add Organizational Unit, on the pop-up window to add the test name, kylin as the owner, as shown below:


Click Create to finish creating Organizational Unit.

Creating a Repository

Organizational Units above the right choice Repositories -> New Repository, the pop-up input box Repository Name of myTestRepo, Organizational Unit selection test, as shown below:


Click Create to finish creating Repository.

Create a Project

Project is equivalent to Maven Project, created Project select Authoring -> Project Authoring, select rganizational Unit in the Project Explorer to test, select Repository as myTestRepo. Select New Item -> Project, the pop-up input box Resource Name of humantaskTest follows:


Click the Ok button to complete the creation of Project, Project General Settings pop-up, enter the following basic information:


Click Finish.

Creating Knowleage Base and session

Select Knowleage bases and sessions in the Project General Settings drop-down menu, click the Add button in Knowleage bases and sessions page created kbase, and Make Default Add Packages to org.jbpm.test, adding ksession, select Default is true, state as Stateful, as follows:


Create a BPMN process

Click New Item -> Business Process, to create a Test Process as shown in process editor:


Add On Entry Action property right of the input in the process for the implementation of Java code System.out.println ( "Test Process on Entry"); Add On Exit Action to execute Java code System.out.println ( "Test Process on Exit"); save the process of creating BPMN process.

Run Process

As 6 an example of jBPM Evaluation run jBPM console in Evaluation example of the content of the description, select Tools -> Project Edit, click the rightmost Build & Deploy can be deployed Test Process; select Process Management -> Process Definitions lists all the defined deployment process, select TestProcess, at the far right click the start button to start the implementation process, select Task -> Task list, click on the start icon to the right of the list, the icon will change start to complete icon, click complete icon to complete the implementation process, we found that jBPM background the following output:

15:29:16,234 INFO  [stdout] (http--127.0.0.1-8080-3) Test Process on Entry
15:35:40,887 INFO  [stdout] (http--127.0.0.1-8080-4) Test Process on Exit


Reproduced in: https: //my.oschina.net/iwuyang/blog/197229

Guess you like

Origin blog.csdn.net/weixin_34130269/article/details/91897416