﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-Vincent Thinking-随笔分类-WorkFlow</title><link>http://www.blogjava.net/znjqolf/category/5180.html</link><description>All about Vincent's work and life</description><language>zh-cn</language><lastBuildDate>Tue, 27 Feb 2007 08:57:40 GMT</lastBuildDate><pubDate>Tue, 27 Feb 2007 08:57:40 GMT</pubDate><ttl>60</ttl><item><title>JBPM-Task和页面的绑定</title><link>http://www.blogjava.net/znjqolf/archive/2006/01/10/27464.html</link><dc:creator>Vincent Thinking</dc:creator><author>Vincent Thinking</author><pubDate>Tue, 10 Jan 2006 12:51:00 GMT</pubDate><guid>http://www.blogjava.net/znjqolf/archive/2006/01/10/27464.html</guid><wfw:comment>http://www.blogjava.net/znjqolf/comments/27464.html</wfw:comment><comments>http://www.blogjava.net/znjqolf/archive/2006/01/10/27464.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/znjqolf/comments/commentRss/27464.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/znjqolf/services/trackbacks/27464.html</trackback:ping><description><![CDATA[JBPM的流程定义中对于页面绑定并没有什么好的办法.<BR><BR>"大枪"是修改了JBPM的源代码,来支持比如"&lt;Task name="aa" url="/xx/yy.jsp"&gt;"的表示方法,这样的处理效果可能不是很好,需要修改相应的源代码,升级的时候也要同样修改.<BR><BR>我采取了另外一种折中的方法,建立一个关联表,或者作个配置文件,url和相应的task name对对应关系.<BR><BR>运行时得到相应的Task对象,得到相应的name,从对应表中取出绑定的页面进行加载.<BR><BR><img src ="http://www.blogjava.net/znjqolf/aggbug/27464.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/znjqolf/" target="_blank">Vincent Thinking</a> 2006-01-10 20:51 <a href="http://www.blogjava.net/znjqolf/archive/2006/01/10/27464.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JBPM- 整合Jbpm,tomcat,mysql</title><link>http://www.blogjava.net/znjqolf/archive/2005/12/19/24654.html</link><dc:creator>Vincent Thinking</dc:creator><author>Vincent Thinking</author><pubDate>Mon, 19 Dec 2005 09:26:00 GMT</pubDate><guid>http://www.blogjava.net/znjqolf/archive/2005/12/19/24654.html</guid><wfw:comment>http://www.blogjava.net/znjqolf/comments/24654.html</wfw:comment><comments>http://www.blogjava.net/znjqolf/archive/2005/12/19/24654.html#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://www.blogjava.net/znjqolf/comments/commentRss/24654.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/znjqolf/services/trackbacks/24654.html</trackback:ping><description><![CDATA[jbpm作为jboss的一个子项目，和jboss绑定的比较多，官方文档也没有说如何移植，下面就移植作个简要的说明。<BR><BR>1. 下载jbpm http://www.jboss.com/products/jbpm/downloads <BR><BR>2. 解压，导入eclispe的项目中 配置MYSQL 1. 在eclipse的jpbm项目中加入mysql的lib 2. mysql创建一个数据库"jbpm" <BR><BR>3. 在eclipse的jbpm项目中找到'jbpm-3.0\src\resources'目录，创建一个自目录'mysql' <BR><BR>4. 把同目录hsqldb文件夹中的2个文件(create.db.hibernate.properties, identity.db.xml)拷贝到mysql目录中 <BR><BR>5. 按下面所示编辑 'create.db.hibernate.properties'<BR><BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">hibernate.dialect</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">org.hibernate.dialect.MySQLDialect<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>hibernate.connection.driver_class</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">com.mysql.jdbc.Driver<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>hibernate.connection.url</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">jdbc:mysql://localhost:</SPAN><SPAN style="COLOR: #000000">3306</SPAN><SPAN style="COLOR: #000000">/jbpm<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>hibernate.connection.username</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">root<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>hibernate.connection.password</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">root<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>hibernate.c3p0.min_size</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>hibernate.c3p0.max_size</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">3</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>hibernate.show_sql</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">true</SPAN></DIV><BR><BR>6. 在eclipse的jbpm项目中找到ant脚本'build.deploy.xml'，进行编辑 找到 target name="create.db", 删除 db.start, db.stop 在这个目标块中将所有的'hsqldb' 替换为 'mysql' <BR><BR>7. 运行ant create.db -buildfile build.deploy.xml创建jbpm表结构 <BR><BR>8. 找到target name="build.webapp"按下面进行编辑 <BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">target&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="build.webapp"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;description</SPAN><SPAN style="COLOR: #0000ff">="builds&nbsp;jbpm.war"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">ant&nbsp;</SPAN><SPAN style="COLOR: #ff0000">antfile</SPAN><SPAN style="COLOR: #0000ff">="build.xml"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;target</SPAN><SPAN style="COLOR: #0000ff">="build.webapp"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">/&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">mkdir&nbsp;</SPAN><SPAN style="COLOR: #ff0000">dir</SPAN><SPAN style="COLOR: #0000ff">="build/jbpm.war.dir"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">/&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">copy&nbsp;</SPAN><SPAN style="COLOR: #ff0000">todir</SPAN><SPAN style="COLOR: #0000ff">="build/jbpm.war.dir"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">fileset&nbsp;</SPAN><SPAN style="COLOR: #ff0000">dir</SPAN><SPAN style="COLOR: #0000ff">="src/resources/jbpm.war"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">/&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">copy</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">copy&nbsp;</SPAN><SPAN style="COLOR: #ff0000">todir</SPAN><SPAN style="COLOR: #0000ff">="build/jbpm.war.dir/WEB-INF/lib"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">fileset&nbsp;</SPAN><SPAN style="COLOR: #ff0000">dir</SPAN><SPAN style="COLOR: #0000ff">="build"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;includes</SPAN><SPAN style="COLOR: #0000ff">="jbpm-webapp-${jbpm.version}.jar"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">/&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">fileset&nbsp;</SPAN><SPAN style="COLOR: #ff0000">dir</SPAN><SPAN style="COLOR: #0000ff">="lib/jsf"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;includes</SPAN><SPAN style="COLOR: #0000ff">="*.jar"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">/&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">fileset&nbsp;</SPAN><SPAN style="COLOR: #ff0000">dir</SPAN><SPAN style="COLOR: #0000ff">="lib/commons"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;includes</SPAN><SPAN style="COLOR: #0000ff">="commons-digester-*.jar,&nbsp;commons-beanutils-*.jar"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">/&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">copy</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">jar&nbsp;</SPAN><SPAN style="COLOR: #ff0000">destfile</SPAN><SPAN style="COLOR: #0000ff">="build/jbpm.war"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">fileset&nbsp;</SPAN><SPAN style="COLOR: #ff0000">dir</SPAN><SPAN style="COLOR: #0000ff">="build/jbpm.war.dir"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">/&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">jar</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">target</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></DIV><BR><TARGET description="builds jbpm.war" name="build.webapp"><ANT target="build.webapp" antfile="build.xml" /><MKDIR dir=build/jbpm.war.dir /><COPY todir="build/jbpm.war.dir"><FILESET dir=src/resources/jbpm.war /></COPY><COPY todir="build/jbpm.war.dir/WEB-INF/lib"><FILESET dir=build includes="jbpm-webapp-${jbpm.version}.jar" /><FILESET dir=lib/jsf includes="*.jar" /><FILESET dir=lib/commons includes="commons-digester-*.jar, commons-beanutils-*.jar" /></COPY><JAR destfile="build/jbpm.war"><FILESET dir=build/jbpm.war.dir /></JAR></TARGET><BR>9. 找到目录src/resources，编辑jbpm.properties文件 <BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">jbpm.scheduler.service.factory</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">org.jbpm.scheduler.impl.SchedulerServiceImpl<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>jbpm.task.instance.class</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">org.jbpm.taskmgmt.exe.TaskInstance<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#&nbsp;uncomment&nbsp;the&nbsp;next&nbsp;line&nbsp;if&nbsp;JbpmSessionFactory.getInstance()<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#&nbsp;should&nbsp;lookup&nbsp;the&nbsp;singleton&nbsp;instance&nbsp;from&nbsp;JNDI&nbsp;instead&nbsp;of&nbsp;creating&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#&nbsp;a&nbsp;default&nbsp;one.<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#jbpm.session.factory.jndi.name</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">java:/jbpm/JbpmSessionFactory<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#&nbsp;uncomment&nbsp;the&nbsp;next&nbsp;line&nbsp;to&nbsp;use&nbsp;the&nbsp;file&nbsp;system&nbsp;instead&nbsp;of&nbsp;the&nbsp;database&nbsp;for&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#&nbsp;storing&nbsp;files&nbsp;related&nbsp;to&nbsp;a&nbsp;process&nbsp;definition<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#&nbsp;jbpm.files.dir</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">c:/jbpm.data<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#&nbsp;resource&nbsp;path&nbsp;to&nbsp;a&nbsp;properties&nbsp;file&nbsp;that&nbsp;will&nbsp;overwrite&nbsp;all&nbsp;the&nbsp;hibernate&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#&nbsp;properties.&nbsp;For&nbsp;database&nbsp;specific&nbsp;builds&nbsp;in&nbsp;db&nbsp;project&nbsp;there&nbsp;is&nbsp;a&nbsp;different<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#&nbsp;hibernate.properties&nbsp;file&nbsp;on&nbsp;the&nbsp;classpath&nbsp;for&nbsp;each&nbsp;database.&nbsp;You&nbsp;could&nbsp;change<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#&nbsp;the&nbsp;default&nbsp;database&nbsp;for&nbsp;any&nbsp;testing&nbsp;runs&nbsp;by&nbsp;uncommenting&nbsp;the&nbsp;next&nbsp;line&nbsp;and<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#&nbsp;adding&nbsp;a&nbsp;hibernate.properties&nbsp;file&nbsp;in&nbsp;the&nbsp;basedir.<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>jbpm.hibernate.cfg.xml</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">jbpm.hibernate.cfg.xml<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#jbpm.hibernate.properties</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">jbpm.hibernate.properties</SPAN></DIV><BR>编辑jbpm.hibernate.properties文件 <BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">#hibernate.dialect</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">org.hibernate.dialect.HSQLDialect<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>#hibernate.connection.datasource</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">java:/DefaultDS</SPAN></DIV><BR>10. 找到src/config.files目录，编辑hibernate.cfg.xml文件 <BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="hibernate.dialect"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">org.hibernate.dialect.MySQLDialect</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="hibernate.connection.driver_class"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">com.mysql.jdbc.Driver</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="hibernate.connection.url"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">jdbc:mysql://localhost:3306/jbpm3</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="hibernate.connection.username"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">root</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="hibernate.connection.password"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">root</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">&lt;!--</SPAN><SPAN style="COLOR: #008000">&nbsp;c3p0&nbsp;connection&nbsp;pooling&nbsp;properties</SPAN><SPAN style="COLOR: #008000">--&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="hibernate.c3p0.min_size"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="hibernate.c3p0.max_size"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">3</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="hibernate.query.substitutions"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">true&nbsp;1,&nbsp;false&nbsp;0</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">property&nbsp;</SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="hibernate.connection.pool_size"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">15</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">property</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></DIV><BR>11. 运行ANT脚本ant build.webapp -buildfile build.deploy.xml 生成jbpm.war，拷贝到tomcat web目录中，启动tomcat，输入'http://localhost:8080/jbpm' 就可以看到他的example <img src ="http://www.blogjava.net/znjqolf/aggbug/24654.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/znjqolf/" target="_blank">Vincent Thinking</a> 2005-12-19 17:26 <a href="http://www.blogjava.net/znjqolf/archive/2005/12/19/24654.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JBPM- 流程设计器</title><link>http://www.blogjava.net/znjqolf/archive/2005/11/23/21180.html</link><dc:creator>Vincent Thinking</dc:creator><author>Vincent Thinking</author><pubDate>Wed, 23 Nov 2005 12:56:00 GMT</pubDate><guid>http://www.blogjava.net/znjqolf/archive/2005/11/23/21180.html</guid><wfw:comment>http://www.blogjava.net/znjqolf/comments/21180.html</wfw:comment><comments>http://www.blogjava.net/znjqolf/archive/2005/11/23/21180.html#Feedback</comments><slash:comments>8</slash:comments><wfw:commentRss>http://www.blogjava.net/znjqolf/comments/commentRss/21180.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/znjqolf/services/trackbacks/21180.html</trackback:ping><description><![CDATA[由于现在产品是一个ERP系统，对于工作流的需求并不像我曾经做过的政府审批系统的复杂。所以对于工作流的的技术选择，范围也相对广的多。XPDL相对要熟悉一些，但是看了相关的开源框架，研究了一下Shark，发现了很多问题。对于Shark这样庞大的工作流系统，要整合到产品中，单从技术角度来看就会有很多问题，DODS很难替换成Hibernate，系统代码量庞大，也不利于改进，所以综合考虑，最终选择了JBPM这个开源工作流。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 产品中需要一个工作流设计器，JBPM的设计器基于Eclipse，这点不符合我们的要求。我们需要的是Online WorkFlowEditor，直接在页面上画出流程图，直接在页面上发布，省去了流程文件的上传发布的一系列操作。所以最后采用了Applet的方式，当然我们把jre安装环境集成到了系统中，页面检测IE的jre选项，自动安装JRE插件。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Applet采用了Jgraph这个开源库，用了下，确实很不错，几个demo做的也很漂亮。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;项目中做的设计器，画好流程图，对于每个节点，选择相应的组件，生成后直接上传到服务器端。下面是一个截图:<BR><BR><IMG title=workflowdesigner1.0 height=503 alt=workflowdesigner.JPG src="http://www.blogjava.net/images/blogjava_net/znjqolf/work/workflowdesigner.JPG" width=730 border=0><img src ="http://www.blogjava.net/znjqolf/aggbug/21180.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/znjqolf/" target="_blank">Vincent Thinking</a> 2005-11-23 20:56 <a href="http://www.blogjava.net/znjqolf/archive/2005/11/23/21180.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>