JBoss jbpm practice series (II)-configuration and use of the jbpm designer

Source: Internet
Author: User
Tags jboss server jbpm
This article undertakes the previous article "JBoss Jbpm Practice series (1) --- installation and configuration (Tomcat 6.0 + MySQL 5.1) Jbpm Configure and use the designer.

 

JBossJbpmDesigner official JBossJbpmYou can download the free Eclipse plug-in.JbpmKit (Jpdl suite), Which contains JBossJbpmAll components. The latest version is3.2.3,:

Http://www.jboss.org/jbossjbpm/jbpm_downloads/

 

Before you begin, prepare the following software products:

1.Jbpm-Jpdl-3.2.3. Zip

2. Eclipse3.3(Or3. 4) for J2EE developer

3. JDK 1.5 or later

 

 

1. Install JDK and eclipse. First download JDK and eclipse,

JDK: http://java.sun.com/

Eclipse: http://www.eclipse.org/downloads/download.php? File =/technology/EPP/downloads/release/Ganymede/R/eclipse-jee-ganymede-win32.zip

After JDK is installed, set the system environment variable java_home. For more information, see the official documentation. Eclipse can be used after decompression.

Note: By JBossJbpmOfficial Document, JBossJbpmDesigner requires eclipse3.3, Now eclipse3. 4 It has been around for more than half a month and can be found in eclipse3. 4. Eclipse is recommended.3.3. The local machine has been upgraded3. 4, so this article uses eclipse3. 4

 

2. Download jpdl suite3.2.3GetJbpm-Jpdl-3.2.3. ZIP file, decompress it. Here, we suppose to decompress it to: D :\Jbpm-Jpdl-3.2.3The main directory structure is as follows:

Java Code
  1. D :\Jbpm-Jpdl-3.2.3
  2. | --- Databases are SQL definitions and data files. If you use other databases, you can use these resources to create them. The service is very considerate. By the way
  3. | Roman,JbpmThe memory database HSQLDB is used by default. This database has not been studied yet (---)
  4. | --- Deploy the packages and resources used to deploy your application
  5. | --- Designer is the Eclipse plug-in. In this way, you can define your business processes in the graphic interface, so that no one can live without them.
  6. | --- Doc here isJbpmAPI documentation for related components
  7. | --- Examples here are some learning examples
  8. | --- LibJbpmClass Library
  9. | --- Server there is a JBoss server that includes the JBossJbpmAnd deploy the websale example.
  10. | --- SRC: JBossJbpmOfSource code
D :\Jbpm-Jpdl-3.2.3| --- Databases are SQL definitions and data files. If you use other databases, you can use these resources to create them. The service is very considerate. By the way,JbpmBy default, the memory database HSQLDB is used. This database has not been studied (---) | --- deploy the packages and resources used to deploy your application. | --- designer is the Eclipse plug-in, in this way, you can define your business flow in the graphic interface, and the hardcore can survive without him. | --- Doc here isJbpmAPI documentation for related components | --- examples here are some learning examples | --- libJbpmClass Library | --- server there is a JBoss server and contains the JBossJbpmThe websale example is also deployed. | --- SRC: JBossJbpmSource code

 

The Directory of the designer is JBoss.JbpmEclipse plug-in of designer

 

 

3. Install JBoss in eclipseJbpmDesigner plug-in

3. 1 install the plug-in

Start eclipse and go to help => Software Updates... => Select the "available soft ware" tab and click "add site ..." => Local... => Locate "D :\Jbpm-Jpdl-3.2.3\ Designer \ eclipse click OK and select Org.Jbpm. Gd, jpdl. feature "click" Install ", and the rest will not be awkward. After the installation is complete, let eclipse restart automatically.

 

3.2Configure plug-ins

View JBoss in window => preferencesJbpmItem, click expand, select rutime location, and click Add to locate D :\Jbpm-Jpdl-3.2.3The name can be obtained at will.Jbpm-Jpdl-3.2.3And then return to the runtime location to selectJbpm-Jpdl-3.2.3Click OK to complete the configuration.

 

 

4. Verify Installation

After completing the preceding operations, you can create a JBossJbpmProject. In eclipse, perform the following operations: file => New => the project has a "JBoss"Jbpm"Click to expand and select" process project "=> enter the project name (here: firstflow) => finish

 

Now you can start your JBossJbpmNow. The new project firstflow has provided a simple process definition example to open src/main/jpdl/simple/processdifinition. XML shows the graphic interface of the process definition in the editing area on the right. The designer is on the left. All GUI designers have the same usage. You can use them by dragging them. If you have done GUI development in JBuilder, this is very simple (there is no difficulty here ), you can also write code in source to define your process. GPD under src/main/jpdl/simple. XML is used to locate the layout of your graphic design component. You don't need to ignore it. In addition, select Show grid in the eclipse menu view, your designer will display the positioning grid, which will make the components more beautiful; processimage.jpg under src/main/jpdl/simple is the result image of the process definition you have drawn. As you can see, you only need to operate processdifinition. XML to define your process.

 

With examples, it is much easier. If we want to establish a process, right-click src/main/jpdl In the Eclipse project tree and choose new => Other => Find JBoss.JbpmAfter expansion, select process difinition => next => input process name (fisrtflow here) => finish. OK. Now you can define your own process.

 

After the process is defined, you can create a unit test in src/test to test your code. There are some examples available. After everything is done, you can deploy your process.

You can :\Jbpm-Jpdl-3.2.3\ Examples find various demos. These official examples are more authentic than other places. Please read:Jbpm-Jpdl-suite-3.2.3\Jbpm-Jpdl-3.2.3\ Examples \ readme.html.

 

It is too inconvenient to send a javaeye image. The installation process is packed in the attachment. If you cannot understand the installation process, please download the attachment and see the image description.

    • jbpm -designer-plugs-install.rar (188 KB)
    • Description: During installation

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.