??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲娇小性色xxxx,亚洲视频免费在线观看,亚洲一区二区三区在线播放http://www.tkk7.com/nbtymm/category/16033.html</br><a ><b><font color=red>共有<script src=http://fastonlineusers.com/online.php?d=bluedavy.blogjava.net></script>人在同时阅读此Blog</font></b></a>zh-cnThu, 01 Mar 2007 15:36:24 GMTThu, 01 Mar 2007 15:36:24 GMT60jBPM3.12用户指南中文译----W五?部vhttp://www.tkk7.com/nbtymm/archive/2006/10/08/73892.htmlnbtnbtSun, 08 Oct 2006 10:25:00 GMThttp://www.tkk7.com/nbtymm/archive/2006/10/08/73892.htmlhttp://www.tkk7.com/nbtymm/comments/73892.htmlhttp://www.tkk7.com/nbtymm/archive/2006/10/08/73892.html#Feedback0http://www.tkk7.com/nbtymm/comments/commentRss/73892.htmlhttp://www.tkk7.com/nbtymm/services/trackbacks/73892.htmlChapter 5. Deployment部v

jBPM is an embeddable BPM engine, which means that you can take jBPM and embed it into your own java project, rather then installing a separate product and integrate with it. One of the key aspects that make this possible is minimizing the dependencies. This chapter discusses the jbpm libraries and their dependencies.

   jBPM是一个嵌入式?span lang="EN">BPMQ业务程序管理)引擎。本章讨?span lang="EN">jbpm库和它的依赖库?span lang="EN">

5.1. Java runtime environment

jBPM 3 requires J2SE 1.4.2+

5.2. jBPM libraries

jbpm-[version].jar is the library with the core jbpm functionality.?span lang="EN">jbpm的核心功能库?span lang="EN">

jbpm-identity-[version].jar is the (optional) library containing an identity component as described in Section 11.11, “The identity component?/font>.

可选的Q这个库包含了n份验证组件。用于流E的参与者的理?span lang="EN">

5.3. Third party librariesW三方库

In a minimal deployment, you can create and run processes with jBPM by putting only the commons-logging and dom4j library in your classpath. Beware that persisting processes to a database is not supported. The dom4j library can be removed if you don't use the process xml parsing, but instead build your object graph programatically.

最的jbpm部vQ只需要核?span lang="EN">jbpm库和commons-logging库,以及dom4j库到你的classpath中。此Ӟ不支持持久化业务E序到数据库?span lang="EN">

Table 5.1. 

Library?/span>

Usage用?/span>

Description描述

Directory目录

commons-logging.jar

logging in jbpm and hibernate

The jBPM code logs to commons logging. The commons logging library can be configured to dispatch the logs to e.g. java 1.4 logging, log4j, ... See the apache commons user guide for more information on how to configure commons logging. if you're used to log4j, the easiest way is to put the log4j lib and a log4j.properties in the classpath. commons logging will automatically detect this and use that configuration.

lib/jboss (from jboss 4.0.3)

dom4j-1.6.1.jar

process definitions and hibernate persistence

xml parsing

lib/dom4j

A typical deployment for jBPM will include persistent storage of process definitions and process executions. In that case, jBPM does not have any dependencies outside hibernate and its dependent libraries.

典型?span lang="EN">jBPM部v包括持久化业务程序定义和执行的功能?需?span lang="EN">Hibernate

Of course, hibernate's required libraries depend on the environment and what features you use. For details refer to the hibernate documentation. The next table gives an indication for a plain standalone POJO development environment.

下面的表l出了简单的标准POJO部v环境需要的W三方库?span lang="EN">

jBPM is distributed with hibernate 3.1 final. But it can also work with 3.0.x. In that case, you might have to update a few hibernate queries in the hibernate.queries.hbm.xml configuration file. For more info about customizing queries, see Section 7.6, “Customizing queries?/font>

Table 5.2. 

Library?/span>

Usage

Description

Directory

hibernate3.jar

hibernate persistence

the best O/R mapper

lib/hibernate (hibernate 3.1 final)

antlr-2.7.5H3.jar

used in query parsing by hibernate persistence

parser library

lib/jboss (from jboss 4.0.3)

cglib-2.1_2jboss.jar

hibernate persistence

reflection library used for hibernate proxies

lib/jboss (from jboss 4.0.3)

commons-collections.jar

hibernate persistence

 

lib/jboss (from jboss 4.0.3)

ehcache-1.1.jar

hibernate persistence (in the default configuration)

second level cache implementation.二~存实现?/span>

When configuring a different cache provider for hibernate, this library is not required.

lib/hibernate

jaxen-1.1-beta-4.jar

process definitions and hibernate persistence

XPath library (used by dom4j)

lib/hibernate

jdbc2_0-stdext.jar

hibernate persistence

 

lib/hibernate

asm.jar

hibernate persistence

asm byte code library

二进制代码修改库

lib/hibernate

asm-attrs.jar

hibernate persistence

asm byte code library

lib/hibernate

The beanshell library is optional. If you don't include it, you won't be able to use the beanshell integration in the jbpm process language and you you'll get a log message saying that jbpm couldn't load the Script class and hence, the script element won't be available.

Beanshell库是可选的?span lang="EN">

Table 5.3. 

Library

Usage

Description

Directory

bsh-1.3.0.jar

beanshell script interpreter

Only used in the script's and decision's. When you don't use these process elements, the beanshell lib can be removed, but then you have to comment out the Script.hbm.xml mapping line in the hibernate.cfg.xml

lib/jboss



nbt 2006-10-08 18:25 发表评论
]]>
jBPM3.12用户指南中文译----W四?面向图表~程http://www.tkk7.com/nbtymm/archive/2006/10/08/73891.htmlnbtnbtSun, 08 Oct 2006 10:22:00 GMThttp://www.tkk7.com/nbtymm/archive/2006/10/08/73891.htmlhttp://www.tkk7.com/nbtymm/comments/73891.htmlhttp://www.tkk7.com/nbtymm/archive/2006/10/08/73891.html#Feedback0http://www.tkk7.com/nbtymm/comments/commentRss/73891.htmlhttp://www.tkk7.com/nbtymm/services/trackbacks/73891.html阅读全文

nbt 2006-10-08 18:22 发表评论
]]>
jBPM3.12用户指南中文译----W三?指南http://www.tkk7.com/nbtymm/archive/2006/10/08/73890.htmlnbtnbtSun, 08 Oct 2006 10:19:00 GMThttp://www.tkk7.com/nbtymm/archive/2006/10/08/73890.htmlhttp://www.tkk7.com/nbtymm/comments/73890.htmlhttp://www.tkk7.com/nbtymm/archive/2006/10/08/73890.html#Feedback0http://www.tkk7.com/nbtymm/comments/commentRss/73890.htmlhttp://www.tkk7.com/nbtymm/services/trackbacks/73890.html阅读全文

nbt 2006-10-08 18:19 发表评论
]]>
jBPM3.12用户指南中文译----W二?hhttp://www.tkk7.com/nbtymm/archive/2006/10/08/73889.htmlnbtnbtSun, 08 Oct 2006 10:16:00 GMThttp://www.tkk7.com/nbtymm/archive/2006/10/08/73889.htmlhttp://www.tkk7.com/nbtymm/comments/73889.htmlhttp://www.tkk7.com/nbtymm/archive/2006/10/08/73889.html#Feedback0http://www.tkk7.com/nbtymm/comments/commentRss/73889.htmlhttp://www.tkk7.com/nbtymm/services/trackbacks/73889.html       同时Q对于其中的部分内容Q我会在译中做释和写上我的理解?br />


Chapter 2. Getting startedh

This chapter takes you through the first steps of getting JBoss jBPM and provides the initial pointers to get up and running in no time.

初始?span lang="EN">JBpm3.12

2.1. Downloadables Overview

Listed below are the different jBPM packages that are available today. Each of these packages contains one or more downloadable files. Along with each of these files goes a description of its contents and a pointer to any relevant installation instructions if they are available.

All downloads described below can be found on the sourceforge jbpm downloads page.

2.1.1. jBPM 3

Download JBoss jBPM 3 at sourceforge.net. This is the main distribution package containing the core engine and a number of additional modules that you may need to work with jBPM. 包括JBpm核心和其他包?span lang="EN">

  • The Starters Kit (jbpm-starters-kit-<version>.zip): If you want to get started with jBPM quickly, this is the file you want to download. It contains all the other modules of this package plus the graphical designer in one single download. Extract the zipped archive into a folder of your choice and read the file named 'readme.html' for more info and further installation instructions. With this starters kit you can immediately get started with the Chapter 3, Tutorial.

包含了包括图形化设计器在内的所有模块,能够帮助你快速启动?/span>

  • Core Engine and Identity Component (jbpm-<version>.zip): The download contains the jBPM core engine as well as the identity component for actor and group management. To start working with it, extract the archive into a folder of your choice. You will find pointers to the User's Guide and other important information resources in the 'readme.html' file in the 'jbpm-<version>' folder.

核心Q包括核心引擎和w䆾l徏Q内有用h南文档?/span>

  • Database Extensions (jbpm-db-<version>.zip):数据库扩?/span> The database extension pack contains the jBPM core engine as well as the identity component for actor and group management. To start working with it, extract the archive into a folder of your choice. You will find pointers to the User's Guide and other important information resources in the 'readme.html' file in the 'jbpm-<version>' folder.

2.1.2. jBPM Process Designer

jBPMq程设计?span lang="EN">

Download JBoss jBPM Process Designer at sourceforge.net. The designer is an eclipse plugin and enables you to author 创作your process definitionsq程定义 and to easily deploy them. The plug-in is available for download either as a zipped Eclipse feature or as a zipped Eclipse update site. There is no difference in content, the only difference is in the way you have to do the installation.

  • Eclipse Update Site (jbpm-gpd-site-<version>.zip): If you want to be absolutely sure that the designer installation goes smoothly, we recommend to use the update site mechanism together with a new Eclipse installation. Of cource the Eclipse version should match the downloaded update site archive. To get started with the designer plugin, follow the instructions in the 'readme.html' file included in the archives root folder to succesfully install the GPD.

使用本地站点更新方式部v?/span>

  • Eclipse Feature (jbpm-gpd-feature-<version>.zip): If you are tired of each time having to do a fresh Eclipse installation and you are willing to cope with some possible issues, you can try the feature download. In this case installation is as easy as extracting the archive into your Eclipse installation (make sure the included 'plugins' and 'features' folders end up in the same location of your Eclipse installation) overwriting the files and folders with the same name that are possibly already present. This installation is very easy, but you could run into incompatibility issues when you overwrite plugins already present in your installation because of other features that you did install. Though they have the same name it could happen that the versions of these colliding plugins are not equal, hence the possible incompatibilities. The installation instructions are repeated in the 'readme.html' file.

q个是手工部|Ӏ?/span>

2.1.3. jBPM BPEL extension

Download JBoss jBPM BPEL extension at sourceforge.net. It contains only one file : jbpm-bpel-<version>.zip. To get started with the BPEL extensions, look in the User's Guide in the 'doc' subfolder of the toplevel folder.

jbpm-bpelQ含?/span>JBoss jBPM?/span>BPEL扩展件方面的信息?/span>

BPEL是一个规范的SOAlg。因ZJBoss jBPM使用的许可证不同Q所以被独立了出来?/span>

2.2. The JBoss jBPM project directory

  • professional support: JBoss is the company that backs this project with professional support, training and consultancy services.
  • user guide: is the document you're reading and serves as the main entry point into the project.
  • forums: get in contact with the community, ask questions and discuss jBPM   论坛Q社区?span lang="EN">
  • wiki: extra information, mostly provided by the community
  • issue tracker: for submitting bugs and feature requests
  • downloads: sourceforge download page for jBPM
  • mailing lists: mailing lists are used for announcements
  • javadocs: part of the download in the doc/javadoc directory.

2.3. CVS access

2.3.1. Anonymous CVS access

Alternatively, you can get JBoss jBPM from cvs with the following information:

  • Connection type: pserver
  • User: anonymous
  • Host: anoncvs.forge.jboss.com
  • Port: 2401 (which is the default)
  • Repository path: /cvsroot/jbpm
  • Label: :pserver:anonymous@anoncvs.forge.jboss.com:/cvsroot/jbpm

2.3.2. Developer CVS access

To get cvs developer access, you must sign contributors agreement and you need an ssh key. More information on both can be found on the JBoss cvs repository wiki page

  • Connection type: ext over ssh (extssh in eclipse)
  • User: sf.net username or jboss username
  • Host: cvs.forge.jboss.com
  • Port: 2401 (which is the default)
  • Repository path: /cvsroot/jbpm
  • Label: :pserver:anonymous@cvs.forge.jboss.com:/cvsroot/jbpm


nbt 2006-10-08 18:16 发表评论
]]>
ZJBPM的工作流应用的开?/title><link>http://www.tkk7.com/nbtymm/archive/2006/10/08/73887.html</link><dc:creator>nbt</dc:creator><author>nbt</author><pubDate>Sun, 08 Oct 2006 10:14:00 GMT</pubDate><guid>http://www.tkk7.com/nbtymm/archive/2006/10/08/73887.html</guid><wfw:comment>http://www.tkk7.com/nbtymm/comments/73887.html</wfw:comment><comments>http://www.tkk7.com/nbtymm/archive/2006/10/08/73887.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/nbtymm/comments/commentRss/73887.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/nbtymm/services/trackbacks/73887.html</trackback:ping><description><![CDATA[ <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span style="FONT-FAMILY: 新宋?>利用<span lang="EN-US">JBPM</span>开发一个工作流应用Q相对于使用<span lang="EN-US">shark</span>是比较简单直观的。我们之前提到过Q一个工作流理pȝ最基本的组件包括流E定义组Ӟ程执行lg和流E客Llg。下面从q三个方面看一?span lang="EN-US">JBPM</span>对开发工l流应用的支持?span lang="EN-US"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt"> <font size="3"> <span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 新宋? mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 新宋?> <span style="mso-list: Ignore"> <font size="4">1.</font> <span style="FONT: 7pt 'Times New Roman'">  <font size="4">程的定?/font></span> </span> </span> </font> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="FONT-FAMILY: 新宋?>JBPM</span> <span style="FONT-FAMILY: 新宋?>没有采用<span lang="EN-US">WfMC</span>提出的流E定义语a<span lang="EN-US">XPDL</span>Q而是自己开发了一U称?span lang="EN-US">JPDL</span>的语a来定义流E。因此,在开发一个应用时我们最l需要生成一个符合该<span lang="EN-US">XML schema</span>的文?span lang="EN-US">processdefinition.xml</span>来表C定义好的流E。它可以<span lang="EN-US">manually</span>获得Q也可以使用可视化的定义工具自动生成?span lang="EN-US"><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="FONT-FAMILY: 新宋?>JBPM</span> <span style="FONT-FAMILY: 新宋?>专门提供了一个开发流E的环境Q称?span lang="EN-US">process development environment(pde)</span>。可?/span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">?/span> <span lang="EN-US">jbpm</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">根目录下执行命o</span> <span lang="EN-US">ant create.pde</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">来生?/span> <span lang="EN-US">pde</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">工作目录</span> <span style="FONT-FAMILY: 新宋?>。生成的包结构如下所C:<br /><span lang="EN-US"><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <img alt="" hspace="0" src="http://blog.csdn.net/images/blog_csdn_net/candy_luo/79085/r_app3.JPG" align="baseline" border="0" /> <br />         Build.xml</span> </b> <span style="FONT-FAMILY: 新宋?>文g用于配置一个流E,卛_</span> <span style="FONT-FAMILY: 新宋? mso-ascii-font-family: 'Albertus Extra Bold'">?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-fareast-font-family: 新宋?>ant</span> <span style="FONT-FAMILY: 新宋? mso-ascii-font-family: 'Albertus Extra Bold'">工具解析</span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-fareast-font-family: 新宋?>processdefinition.xml</span> <span style="FONT-FAMILY: 新宋? mso-ascii-font-family: 'Albertus Extra Bold'">文gQƈ运行流E时所需的相关信息存储到数据库中?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-fareast-font-family: 新宋?> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Lib</span> </b> <span style="FONT-FAMILY: 新宋? mso-ascii-font-family: 'Albertus Extra Bold'">存放了开发和配置程所需的全部库文gQ包括数据库?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-fareast-font-family: 新宋?>jdbc</span> <span style="FONT-FAMILY: 新宋? mso-ascii-font-family: 'Albertus Extra Bold'">驱动?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-fareast-font-family: 新宋?> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Src</span> </b> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">包括开发和配置程的全部源文g和所需资源?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Src/config</span> </b> <span style="FONT-FAMILY: 新宋?>只有两个文gQ?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">jbpm.properties</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">log4j.properties</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">。其中,</span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">jbpm.propertie</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">文g包含了数据库的配|信息。因此,更换数据库或数据库的</span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">jdbc</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">驱动都需要修改这里?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Scr/java</span> </b> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">存放</span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">java</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">源文件?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Src/process</span> </b> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">存放工作定义文?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">(processdefinition.xml)</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">和相关的资源文gQ如囄?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">form</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">文g?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Src/test</span> </b> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">存放试代码?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Target/classes</span> </b> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">src/java</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">中源码的输出目录Q存攄译后?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">class</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">文g?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Target/par</span> </b> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">存放用命?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">ant build.process.archives</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">生成?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">par</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">包?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Par</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">包实际上是?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">src/process</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">中的程定义及相x件打包成</span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">zip</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">形式存储?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Target/test-classes</span> </b> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">存放试E序的编译结果?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Target/test-report</span> </b> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">存放试报告?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt"> <span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 新宋? mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 新宋?> <span style="mso-list: Ignore"> <font size="4">2.<span style="FONT: 7pt 'Times New Roman'">  <font size="4"> 程的执?/font></span></font> </span> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="FONT-FAMILY: 新宋?>JBPM</span> <span style="FONT-FAMILY: 新宋?>把负责执行流E的cd打包?span lang="EN-US">jbpm.core.jar</span>Q它也是<span lang="EN-US">JBPM</span>工作引擎的核心。在开发一个工作流应用Ӟ只需该<span lang="EN-US">jar</span>文g攑ֈ相应?span lang="EN-US">lib</span>目录下面。而开发h员就可以专注于开发一个流E模型,完成ҎE的定义Q而无需q多考虑程执行的细节?span lang="EN-US"><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt"> <font size="4"> <span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 新宋? mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 新宋?> <span style="mso-list: Ignore"> <font size="4">3.</font> <span style="FONT: 7pt 'Times New Roman'">  <font size="4">程的客L</font></span> </span> </span> </font> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span style="FONT-FAMILY: 新宋?>客户端组件的开发,需要一个应用服务器作ؓ<span lang="EN-US">servlet container</span>Q我们这里选择?span lang="EN-US">tomcat</span>?span lang="EN-US">JBPM</span>开发一?span lang="EN-US">webapp</span>所需的类打包?span lang="EN-US">jbpm.web.jar</span>Q包括自定义?span lang="EN-US">tag</span>?span lang="EN-US">Struts</span>用到的类{等。开发应用时Q将?span lang="EN-US">jar</span>攑ֈ<span lang="EN-US">WEB-INF\lib</span>下面可以了?span lang="EN-US"><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span style="FONT-FAMILY: 新宋?>一个基于工作流?span lang="EN-US">webapp</span>应用的开发和普?span lang="EN-US">webapp</span>的开发方式很怼。包l构也保持一贯作风:<span lang="EN-US"><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <span style="mso-tab-count: 1"> <img alt="" hspace="0" src="http://blog.csdn.net/images/blog_csdn_net/candy_luo/79085/r_app5.JPG" align="baseline" border="0" />       <br /></span> </span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">所以,我们需要做的主要工作是完成客户端应用所需?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">jsp</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">面的开发,可以选用</span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Struts</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">来进行开发。需要注意的是,我们要对</span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">lib</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">目录下的</span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">jbpm.properties</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">文gq行配置Q主要是Ҏ据库</span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">jdbc</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">驱动的配|?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt"> <span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 新宋? mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 新宋?> <span style="mso-list: Ignore"> <font size="4">4.</font> <span style="FONT: 7pt 'Times New Roman'"> <font size="4"> </font>  <font size="4">pȝ数据库的创徏</font></span> </span> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="FONT-FAMILY: 新宋?>JBPM</span> <span style="FONT-FAMILY: 新宋?>可以支持多种数据库系l,包括<span lang="EN-US">MSSQL,</span>Q?span lang="EN-US">Mysql</span>Q?span lang="EN-US">Oracle</span>Q?span lang="EN-US">hdbsql</span>{。它提供了很灉|的配|方式,只需要修?span lang="EN-US">jbpm.properties</span>文gQ同时将相应?span lang="EN-US">JDBC Driver</span>拯?span lang="EN-US">lib</span>目录可以了。利?span lang="EN-US">ant</span>?span lang="EN-US">generate.ddl</span>命oQ?span lang="EN-US">JBPM</span>q支持自动生成用于创建系l表?span lang="EN-US">sql</span>脚本Q而且可以生成对应于各U数据库pȝ的脚本,非常便于数据库系l的更换和系l数据库的创建?span lang="EN-US"><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt"> <span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 新宋? mso-bidi-font-size: 12.0pt; mso-bidi-font-family: 新宋?> <span style="mso-list: Ignore"> <font size="4">5</font>.<span style="FONT: 7pt 'Times New Roman'">   <font size="4">开发过E?/font></span></span> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span style="FONT-FAMILY: 新宋?>环境配置如下Q?span lang="EN-US"><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: 21pt; mso-para-margin-left: 2.0gd"> <span lang="EN-US" style="FONT-FAMILY: 新宋?>JBPM 2.0<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: 21pt; mso-para-margin-left: 2.0gd"> <span lang="EN-US" style="FONT-FAMILY: 新宋?>Ant <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /?><st1:chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">1.6.2</st1:chsdate><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: 21pt; mso-para-margin-left: 2.0gd"> <span lang="EN-US" style="FONT-FAMILY: 新宋?>Tomcat <st1:chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">5.0.27</st1:chsdate><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: 21pt; mso-para-margin-left: 2.0gd"> <span lang="EN-US" style="FONT-FAMILY: 新宋?>SQL Server 2000<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: 21pt; mso-para-margin-left: 2.0gd"> <span lang="EN-US" style="FONT-FAMILY: 新宋?>SQL Server 2000 Driver for JDBC<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span style="FONT-FAMILY: 新宋?>仍以之前演示q的<span lang="EN-US">request a payraise</span>ZQ见下图Q,介绍一下利?span lang="EN-US">JBPM</span>开发一个工作流应用需要完成的工作?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt" align="center"> <img alt="" hspace="0" src="http://blog.csdn.net/images/blog_csdn_net/candy_luo/79085/r_app1.JPG" align="baseline" border="0" /> <span lang="EN-US"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: center" align="center"> <span lang="EN-US" style="FONT-FAMILY: 新宋?> <?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /?> <v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"> <v:stroke joinstyle="miter"> </v:stroke> <v:formulas> <v:f eqn="if lineDrawn pixelLineWidth 0"> </v:f> <v:f eqn="sum @0 1 0"> </v:f> <v:f eqn="sum 0 0 @1"> </v:f> <v:f eqn="prod @2 1 2"> </v:f> <v:f eqn="prod @3 21600 pixelWidth"> </v:f> <v:f eqn="prod @3 21600 pixelHeight"> </v:f> <v:f eqn="sum @0 0 1"> </v:f> <v:f eqn="prod @6 1 2"> </v:f> <v:f eqn="prod @7 21600 pixelWidth"> </v:f> <v:f eqn="sum @8 21600 0"> </v:f> <v:f eqn="prod @7 21600 pixelHeight"> </v:f> <v:f eqn="sum @10 21600 0"> </v:f> </v:formulas> <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"> </v:path> <o:lock v:ext="edit" aspectratio="t"> </o:lock> </v:shapetype> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt"> <span lang="EN-US" style="FONT-FAMILY: 新宋? mso-bidi-font-family: 新宋?> <span style="mso-list: Ignore">1)<span style="FONT: 7pt 'Times New Roman'">       </span></span> </span> <span style="FONT-FAMILY: 新宋?>首先Q我们需要完成流E的定义。这不仅包括定义<span lang="EN-US">processdefinition.xml</span>Q还要对程执行时用到的其他资源进行定义。比如,?span lang="EN-US">web</span>应用中用到的囄Q?span lang="EN-US">form</span>{。还需要配|?span lang="EN-US">form.xml</span>Q该文g定了流E中不同状态和<span lang="EN-US">form</span>的关p,?span lang="EN-US">request a payraise</span>状态下Q需要如下图所C的<span lang="EN-US">form</span>Q?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt" align="center"> <img alt="" hspace="0" src="http://blog.csdn.net/images/blog_csdn_net/candy_luo/79085/r_app2.JPG" align="baseline" border="0" /> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-FAMILY: 宋体; mso-bidi-font-weight: bold"> <o:p> </o:p> </span> <span lang="EN-US" style="FONT-FAMILY: 新宋?> <o:p> <br /> <span lang="EN-US" style="FONT-FAMILY: 新宋?> <br />补充Processdefinition.xml</span> <span style="FONT-FAMILY: 新宋?>CZQ?/span> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-FAMILY: 宋体; mso-bidi-font-weight: bold"> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt"><?xml version="1.0" encoding="UTF-8"?></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt"> <span lang="EN-US" style="FONT-FAMILY: 新宋?> <o:p> <span style="FONT-FAMILY: 新宋?><!DOCTYPE process-definition PUBLIC "-//jBpm/jBpm Mapping DTD 2.0//EN" "<a ><font color="#000080">http://jbpm.org/dtd/processdefinition-2.0.dtd</font></a>"></span> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt"> <span lang="EN-US" style="FONT-FAMILY: 新宋?> <o:p> <span style="FONT-FAMILY: 新宋?><process-definition name="pay raise process"> </span> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt"> <span lang="EN-US" style="FONT-FAMILY: 新宋?> <o:p> <span style="FONT-FAMILY: 新宋?><!-- SWIMLANES --><br /><swimlane name="requester" /></span> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt"> <span lang="EN-US" style="FONT-FAMILY: 新宋?> <o:p> <span style="FONT-FAMILY: 新宋?>    <swimlane name="boss"><br />    <delegation class="org.jbpm.delegation.assignment.ActorAssignmentHandler">cg</delegation><br /></swimlane></span> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt"> <span lang="EN-US" style="FONT-FAMILY: 新宋?> <o:p> <span style="FONT-FAMILY: 新宋?>    <swimlane name="erp operator"><br />    <delegation class="org.jbpm.delegation.assignment.ActorAssignmentHandler">pf</delegation><br /></swimlane></span> </o:p> </span> </p> <span lang="EN-US" style="FONT-FAMILY: 新宋?> <o:p> <span style="FONT-FAMILY: 新宋?> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt"><!-- START-STATE --><br />  <start-state name="request a payraise" swimlane="requester"><br />    <transition to="evaluating"/><br />  </start-state></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt"><!-- NODES --><br />  <state name="evaluating"><br />    <assignment swimlane="boss" /><br />    <transition name="approve"     to="fork"/><br />    <transition name="disapprove"  to="done"/><br />  </state><br />  <br />  <fork name="fork"><br />   <transition to="updating erp asynchronously" /><br />   <transition to="treating collegues on cake and pie" /><br />  </fork></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt">      <state name="updating erp asynchronously"><br />    <assignment swimlane="erp operator" /><br />    <transition to="join" /><br />  </state></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt">      <state name="treating collegues on cake and pie"><br />    <assignment swimlane="requester" /><br />    <transition to="join" /><br />  </state><br />  <br />  <join name="join"><br />   <transition to="done" /><br />  </join></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt"><!-- END-STATE --><br />  <end-state name="done" /></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt"></process-definition></p> </span> </o:p> </span> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <span lang="EN-US" style="FONT-FAMILY: 新宋?> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <span lang="EN-US" style="FONT-FAMILY: 新宋?> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <span style="FONT-FAMILY: 新宋?> <br /> <span lang="EN-US"> <o:p> </o:p> </span> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <span lang="EN-US" style="FONT-FAMILY: 新宋?> <o:p> <br /></o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt"> <span lang="EN-US" style="FONT-FAMILY: 新宋? mso-bidi-font-family: 新宋?> <span style="mso-list: Ignore">2)<span style="FONT: 7pt 'Times New Roman'">       </span></span> </span> <span style="FONT-FAMILY: 新宋?>有了<span lang="EN-US">processdefinition.xml</span>文gQ我们就可以配置程。即使用<span lang="EN-US">ant</span>命oQ解析这个文件ƈ且将执行旉要的信息存储在数据库中。如下图Q?br /><br /><img alt="" hspace="0" src="http://blog.csdn.net/images/blog_csdn_net/candy_luo/79085/r_app4.JPG" align="baseline" border="0" /><span lang="EN-US"><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="FONT-FAMILY: 新宋?> <o:p> </o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt"> <span lang="EN-US" style="FONT-FAMILY: 新宋? mso-bidi-font-family: 新宋?> <span style="mso-list: Ignore">3)<span style="FONT: 7pt 'Times New Roman'">       </span></span> </span> <span style="FONT-FAMILY: 新宋?>我们无需兛_程怎么执行Q完全交l?span lang="EN-US">jbpm.core.jar</span>好?span lang="EN-US"><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l1 level1 lfo2; tab-stops: list 21.0pt"> <span lang="EN-US" style="FONT-FAMILY: 新宋? mso-bidi-font-family: 新宋?> <span style="mso-list: Ignore">4)<span style="FONT: 7pt 'Times New Roman'">       </span></span> </span> <span style="FONT-FAMILY: 新宋?>剩下的另外一Ҏ较繁重的工作是开发一个用于该程的客L应用。前面已l提到过Q?/span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">我们需要做的主要工作是完成客户端应用所需?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">jsp</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">面的开发。包括登录页面,查看自己?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">tasklist</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">面Q执?/span> <span lang="EN-US" style="FONT-FAMILY: 'Albertus Extra Bold'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">task</span> <span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-ascii-font-family: 'Albertus Extra Bold'; mso-hansi-font-family: 'Albertus Extra Bold'; mso-font-kerning: 0pt">的页面等。除此之外,q可以通过日志来完成流E的监控和管理界面。这些都由应用的需求来军_?/span> <span lang="EN-US" style="FONT-FAMILY: 新宋?> <o:p> </o:p> </span> </p> <img src ="http://www.tkk7.com/nbtymm/aggbug/73887.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/nbtymm/" target="_blank">nbt</a> 2006-10-08 18:14 <a href="http://www.tkk7.com/nbtymm/archive/2006/10/08/73887.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>jBPM3.12用户指南中文译----W一?l论http://www.tkk7.com/nbtymm/archive/2006/10/08/73885.htmlnbtnbtSun, 08 Oct 2006 10:11:00 GMThttp://www.tkk7.com/nbtymm/archive/2006/10/08/73885.htmlhttp://www.tkk7.com/nbtymm/comments/73885.htmlhttp://www.tkk7.com/nbtymm/archive/2006/10/08/73885.html#Feedback0http://www.tkk7.com/nbtymm/comments/commentRss/73885.htmlhttp://www.tkk7.com/nbtymm/services/trackbacks/73885.html       同时Q对于其中的部分内容Q我会在译中做释?br />下面是从|络上找到的W一章,q是jBPM3.0的用h南的译文。但是第一章,3.0?.1内容相差不大Q我׃做翻译了。直接用这一?br />

目录

W一?/span>l论

 JBoss jBPM 是一个灵zȝQ易扩展的工作流理pȝ?/span>JBoss jBPM有一套直观的程建模语言Q这套语a能用dQ?/span>taskQ,异步通信的等待状态(wait state Q,定时器(timerQ,自动化的动作Q?/span>automated actionQ等来图形化的表CZ务流E。ؓ了把q些操作集成在一

PJBoss jBPM拥有强大的,易扩展的控制程机制?/span>

JBoss jBPM对外依赖E度很小Q你完全可以像用java的类库一L它。ƈ且它也可以被部v在高性能?/span>J2EE集群应用服务器上?/span>

JBoss jBPM能配|在M数据库上Qƈ且能被部|在M的应用服务器上?/span>

1.1 总览

 工作和业务程处理功能的核心部分被打包成一个简单的javacd。这个类库包括了q样一个服务:程信息的存储,更新Q和从数据库中重新取回?/span>

   

?/span>1.1Q?/span>JBoss jBPMl成模块的概略图

1.2 JBoss jBPM starter kit

starter kit是一个包?/span>jbpm所有模块的下蝲包。这个下载包中包括以下模块:

·                                 jbpm-server, 一个预选配|好?span lang="EN">jboss应用服务器?span lang="EN">

·                                 jbpm-designer, 囑Ş化定制流E的eclipse插g?span lang="EN">

·                                 jbpm-db, jBPM的数据库兼容?span lang="EN"> (见后边论q?span lang="EN">)?span lang="EN">

·                                 jbpm, jbpm的核心模块,其中包括libs文g夹和q个用户说明?span lang="EN">

·                                 jbpm-bpel, JBoss jBPM?span lang="EN">BPEL扩展的一些参考资?span lang="EN">

预先配置好的JBoss应用服务器具有如下组成部分:

jBPM核心模块Q被打包成一个用于提供服务的存档文g

带有jbpm表的集成数据?/span>Q默认的hypersonic数据库拥?/span>jbpm表,q且q个表已l拥有一个流E了?/span>

Jbpm?/span>web控制?/span>Q它既可以被Jbpm理员用也可以被程的参与者用?/span>

执行定时器的Jbpm的调度程序,q个调度E序?/span>starter kit里边被配|成一?/span>servlet。这?/span>servlet会生一个新的线E来监视和执行定时器?/span>

一个具体流E的例子Q它已经被部|在jbpm数据库中了?/span>

1.3 JBoss jBPM 程囑Ş定制?/span>

JBoss jBPMq拥有一套图形化的设计工兗这个设计器是一个图形化的业务流E定制工兗?/span>

JBoss jBPM程囑Ş定制器是eclipse的一个插件。单独安装这个定制器非常单?/span>

q个囑Ş设计器最重要的特性是Q业务分析h员也能像技术开发h员一L它来完成d。这使得业务程建模能^滑的转换到具体技术实现?/span>

q个插g可以利用eclipse的一般升U机刉过一个升U站点得到安装(zip文g格式Q。也可以通过解压一个特定的包到eclipse的安装目录来安装此插件?/span>

1.4 JBoss jBPM的核心模?/span>

JBoss jBPM的核心模块是一个用来管理流E定义和程实例的执行环境的普?/span>javaE序?/span>

JBoss jBPM是一?/span>javacd。所以它可以被用在Q?/span>java环境中,比如Q?/span>web应用E序Q?/span>swing应用E序Q?/span>EJBQ?/span>web service……?/span>JBPMcdq可以被打包q被当成无状态会?/span>EJBQ?/span>stateless session EJBQ用。这样可使它被部|在集群上ƈ且适应高性能应用。这些无状态会?/span>EJB必须W合J2EE1.3规范q样才能使它可以被部|在M应用服务器上?/span>

JBoss jBPM的核心模块被打包成一个简单的java库文件。依你功能的需要,jbpm-3.0.jarq个库文件对一些第三方的类库比?/span>hibernate, dom4j有所依赖。这些依赖在W五章(部vQ中作了详细的说明?/span>

至于持久化,JBPM在内部用?/span>hibernate。除了传l的O/R映射功能Q?/span>hibernateq解决了不同数据SQL dialect差异的问题,q?/span>JBPM能适应现在所有的数据库?/span>

JBoss jBPM API可以被你工程中Q何的java代码调用Q比如,你的web应用E序Q?/span>EJBQ?/span>web service 模块Q消息驱?/span>bean或其它Q?/span>java模块?/span>

1.5 JBoss jBPM web应用E序的控制台

jBPM web应用E序的控制台提供两种服务。首先,它被用来当作一个用来和程执行q程中生的dq行交互的主要用h口,其次Q它q是一个用来检查和操作q行实例的管理和监控q_?/span>

1.6 JBoss jBPM人员l织模块

JBoss jBPM可以和Q何包括h员和其他l织信息的公司结构集成在一赗但是对那些l织l构信息模块很难获取的项目,JBoss jBPM提供了这个模块。这个模块用的模型要比传统?/span>servlet, ejb,portlet模型丰富的多?/span>

更多信息Q请参照W九章第九节人员l织模块

1.7 JBoss jBPM调度E序

JBoss jBPM调度E序是一个用来监和执行在流E执行过E中讄的定时器的模块?/span>

定时器模块被打包?/span>jbpm的核心包中,但是它必被部v在以下环境中Q或者你必须订制一个调?/span>servletQ它来生一个监线E,或者你必须启动一个单独的JVM来执行调度程序?/span>

1.8 JBoss jBPM 数据库兼容包

JBoss jBPM 数据库兼容包是一个下载包Q它包括所有的资料Q?/span>drivers?/span>scripts,用这些你可以?/span>jbpmq行在你选择的数据库上?/span>

1.9 JBoss jBPM BPE的扩?/span>

JBoss jBPM BPE的扩展是一个ؓ了支?/span>BPEL独立的扩展包?/span>BPEL的本质就是一l用来参照别?/span>web service?/span>web service?/span>xml脚本语言?/span>



nbt 2006-10-08 18:11 发表评论
]]>
վ֩ģ壺 պƵ| Ļȫ | ޾Ʒ˾þվ| ѵƵ| av벻þ| ˳վѲ| Ʒþһ| 2019Ļֱ | ޳ѵӰ| Ʒɫѿ| Ļһȥ̨ | ۺƵ| ɫվWWWĻ | պAAƬѹۿ| 99ɫƷ88| ˳Ƶ| óav| Ļһþ| һëƬѹۿ| Ļ| ҹѸƬ| Ʒרҹ| 44rt| ƷþþþþþþӰԺ| AVר߹ۿ| ޳AƬ| 91Ƶѹۿ| ۺϾþһ| aƬƷѹۿ| þþþþྫƷֱ| ۺһ| ֻƬþù| ȫƵѹۿ߿| avһ㽶| һɫþ88ۺ޾Ʒ| պѵӰվ| JLZZJLZZٸ| AVþþƷ| װ׹Ƶ| ѹۿ| ŷպ|