MYECLIPSE9 JBPM4.4 Environment to build

Source: Internet
Author: User
Tags jboss jbpm

To develop JBPM, we use eclipse development. The following step-by-step introduction to the environment to build the process, first look at the use of software.

Jbpm4.4.zip Download Address: http://sourceforge.net/projects/jbpm/files/jBPM%204/

JDK5 or later, I'm using JDK7.

database, I use MySQL, and I can use any other hibernate supported database.

GPD (jbpm process Designer in Eclipse), it is recommended that eclipse install Plug-ins in the jbpm4.4 after decompression jbpm-4.4\install\src\gpd in more than 3.6 of the Jbpm-gpd-site.zip

I. Software Environment

ide:myeclipse9.0 (jbpm4.0 above version can only be integrated with Myeclipse7.5 above)

jbpm:4.4

and. Integration with MyEclipse

1. Decompression Jbpm-4.4.zip

2. Open Myeclipse9.0

-Select Help Menu-Select MyEclipse Configuration Center

3. Open the Third tab software-select upper right corner add site-

4 Select Break Add form archive file-find Jbpm-gpd-site.zip under ${JBPM_HOME}\INSTALL\SRC\GPD directory (name customization)

5. Select OK, the following dialog box appears, select the file in the left red box, right key-add to profile, added to the right red box. Click the Apply change in the lower right corner

Updates can be 6.myeclipse automatic request restart, after reboot, in the new will be a Jboos jbpm-jbpm 4 Process Definition, the following figure. 7. Configure JBPM Run time click Window--> Preferences
Select JBoss JBPM--> JBPM 4.4--> Runtime
Click Add ...
In the Add Location dialog box, enter a name, such as JBPM and click Search ...
In the Browse for Folder dialog box, select your jbpm root directory and click OK
Click OK in the Add Location dialog box

Note If the installation process is stuck in the following interface, you can unplug the network cable, and then cancel the installation, the reinstall can be passed. Plug in the network cable after the installation is complete.


After installation, a jboss jbpm option appears under Window->preferences, and I remember it as one of the two installed.


Second: Configure the JBPM runtime

1) Open Windowàpreferences

2) Select JBoss JBPM--> JBPM 4--> runtimelocations

3) Click Add ...

4 in the Add Location dialog box, enter a name, such as jbpm-4.0 and click

Search ...

5 in the Browse for Folder dialog box, select your jbpm root directory and click OK

6) Click OK in the Add Location dialog box


I've already installed it here and I don't need to reinstall it.

Third: Configure User library

1) Click the Window--> properties (Windows--> Preferences)

2 Select Java--> Create path--> user Class library (Java--> build path--> user

Libraries)

3) Click New

4) type name Jbpmlibraries

5) Click Add Jars (Addjars ... )

6 Find the Lib directory under the JBPM Setup program

7 Select all the jar files under Lib and click Open

8) Select Jbpmlibraries as the entrance

9) Re-click Add JARs (Addjars)

10 Select the Jbpm.jar file under the root of the JBPM installer

11) Click on (Open)

12) under Jbpm.jar Select Source Code attachment (source attachment) as the portal

13) Click Edit

14 in the Source code attachment configuration (Source attachmentconfiguration) dialog box, click

Directory (Externalfolder ...) )

15 Locate the SRC directory under the JBPM installation program

16) Click to select (Choose)

17 Click "OK" two times to close all dialog boxes


The above is a user-defined class library that is configured well. Fourth: Add jPDL4 mode to the table of contents

If you want to edit the XML source directly, it's best to specify the schema in your XML directory

(schema) so that when you edit the process source code, you will be better able to help you write.

1) Click the Window--> properties (Windows--> Preferences)

2 Select XML--> directory (XML--> CataLog)

3) Click Add

4 Add XML directory (add xmlcatalog Entry) window open

5 Click the button below the Map-icon icon and select File system

6 in the Open dialog box, select the Jpdl.xsd file in the SRC folder under the JBPM installation directory

7) Click on Open and close all dialog boxes


Finally, demonstrate how to build a jpbm4.4 project 1.->dynamic Web project with file->new


2. Join the user-defined JBPM class library

Select the class library you just created by right-clicking the project Bulid Pach->add Library->user Library


3. Create process Designer

Src->new->other->jboss jbpm by right clicking


Select the process definition, and then next, complete. A process designer is created, and you can design the process definition directly through XML or interface.


After the design is saved in the image interface, and then get a process design picture. As shown in the Test.png. Remember to save in the image interface, if the generated image is blank in the XML interface, this seems to be a bug.

So the whole environment is built, of course, this is the basic environment, if you want to run the program to write code, read, explain the XML, in the project, but also often use such as spring and struts frameworks, need to introduce their packages. The following will explain some of the jbpm knowledge, please pay attention.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.