Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

JBPM (II)-- install and configure JBPM

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Prerequisites for JBPM4.4 installation

Download the package 4.4 at the following address: http://sourceforge.net/projects/jbpm/

The working directory is as follows:

Before you start using JBPM, you also need to prepare the following environment:

Jdk5+

Ant 1.7 +

Tomcat6/jboss5

Second, quick installation

Go to the ${jbpm.home} / install directory and run ant demo.setup.tomcat

The above interface proves the installation error, because: download does not download tomcat. The solution is:

Download a corresponding version of tomcat in advance and put it in ${jbpm.home} / install

In fact, the following work has been done behind this quick step:

1 > install Tomcat to the ${jbpm.home} / apache-tomcat-7.0.52 directory.

2 > install JBPM into Tomcat

3 > install HSQLDB and start it in the background

4 > create database table structure

5 > start Tomcat in the background

6 > create an examples.bar business process archive based on the example (from examples) and publish it to the JBPM database

7 > initialize users and groups from ${jbpm.home} / install/src/demo/example.identities.sql.

8 > install Eclipse to ${jbpm.home} / eclipse

9 > start Eclipse

10 > install the JBPM Web console

11 > install Signavio Web designer

When all this is done, Tomcat starts in the background.

If you have more than one tomcat in your computer, you need to specify the running tomcat in the environment variable, that is, tomcat under jbpm

The directory for tomcat will be:

The jib package is also added:

Then run:

JBPM console http://localhost:8080/jbpm-console

Signavio web designer: http://localhost:8080/jbpmeditor/p/explorer

In the above tasks, the database is not configured?

The configuration file corresponding to the database is in the directory ${jbpm.home} / install/jdbc, with the default mysql.properties

Jdbc.driver=com.mysql.jdbc.Driverjdbc.url=jdbc:mysql://localhost:3306/jbpmdbjdbc.username=rootjdbc.password=admin

Of course, you can also specify:

Ant-Ddatabase=postgresql demo.setup.tomcat

More installation parameters can be found in the build.xml file in the install directory.

Third, customize your own JBPM

The install.jbpm.into.tomcat task in Line_493 in build.xml installs JBPM into the Tomcat application server and does the following:

1 > several jar package files are copied to the ${tomcat.home} / lib directory, including JBPM's own libraries and their dependent third-party libraries, as well as the corresponding database driver packages.

2 > install the Signavio process designer, jbpm console and gwt console service to the ${tomcat.home} / webapps directory, respectively, and the corresponding war package file is jbpmeditor.war,jbpm-console.war,gwt-console-server.war.

3 > install the BIRT (open source report project) template and its dependent files for the jbpm console process analysis report to the ${tomca.home} / birt directory.

4 > finally, configure the data source for jbpm console user authentication in the ${tomcat.home} / conf/server.xml file

IV. Plug-in installation

1 > jbpm-gpd-site plug-in installation, in install/src/gpd/jbpm-gpd-site.zip

Reference: http://t.cn/RXL05bY

2 > configure the jbpm runtime environment

Select the Window-- > Preferences command

Select the JBoss JBPM-- > JBPM4--- > Runtime Locations option

Click the Add button

Enter a noun in the Edit Location dialog box, for example: jbpm-4.4, and then click the Search button

In the Browse For Folder dialog box, select the JBPM installation directory, and then click the OK button.

Click the OK button in the Edit Location dialog box

3 > define a JBPM user library

4 > add JPDL4 Schema check

Jpdl is a unique process definition language of jbpm, which describes business processes in the form of xml files.

Select the Window-- > Preferences command

Select the XML-- > XML CataLog option

Click the Add button

Open the window for adding XML Catalog Entry

Click the File System button

In the dialog box that opens, select the jpdl.xsd file in the src file under the JBPM4 installation directory

Click the open button

Close all dialog boxes and complete the configuration

5 > Import examples

All unit test classes in examples can be run as Junit Test

6 > JBPM HelloWorld

Open the Eclipse of the installed GPD and create a new "JBPM4 Process Definition" named process.jpdl.xml

Enter the process definition design interface, click the blank flow chart, and set the process name to HelloWorld in the properties window

Drag start activities, state activities, end activities to the flowchart in the components toolbar on the left

Select transition transfer Line start activity to state activity and state activity to end activity from the component toolbar.

Use the grid button at the top of the GPD to display gridlines for the flowchart for alignment; you can also use automatic layout

Corresponding jpdl source code

It's over.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report