jbpm学习笔记(二)--jbpmHelloWorld(运行环境配置)

本文档介绍了如何配置jbpm运行环境并编写一个简单的HelloWorld流程。首先,在Eclipse中创建Java工程,然后创建jpdl文件并编辑流程定义。接着,导入jbpm配置文件和第三方类库。最后,编写并运行发布流程的java代码,展示流程部署过程。通过运行helloTest.java,观察到流程引擎成功部署并输出了相关信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

本篇文章通过编写一个HelloWorld小程序,来初步讲述jbpm运行环境配置的全过程。

1.创建工程

在eclipse中创建java工程(没错是java工程),起名为chuang_jbpm。然后再工程的src目录下新建文件jbpmHellowWorld.jpdl.xml,如图2-1所示:


图2-1 创建jpdl文件

2.编辑流程定义jpdl.xml文件

jpdl流程定义文件可以通过图形界面来编辑,也可以编写流程的xml代码,如图2-2所示就是使用图形界面进行编辑。


图2-2 编辑流程

流程定义对应代码:

<?xml version="1.0" encoding="UTF-8"?>

<process name="jbpmHellowWorld" xmlns="http://jbpm.org/4.4/jpdl">
   <start name="start1" g="150,69,48,48">
      <transition name="to state1" to="state1" g="-56,-22"/>
   </start>
   <end name="end1" g="177,310,48,48"/>
   <state name="state1" g="147,180,92,52">
      <transition name="to end1" to="end1" g="-50,-22"/>
   </state>
</process>

3、导入程序配置文件

由于我们的程序比较简单,所以配置文件直接使用jbpm4.4自带例子中的配置文件即可,到jbpm4.4的examples/src目录下拷贝相应配置文件即可入图2-3所示:


图2-3 导入配置文件

将相应配置文件拷贝到我们新建工程的src目录下。

4、导入第三方类库

开发jbpm流程部署需要有第三方jbpm类库支持,这些类都可以在jbpm4.4中找到,建议自己创建一个user Library然后将这些jar文件导入即可,这些jar文件在jbpm4.4的lib目录下,同时注意不要忘了jbpm解压的根目录下有一个jbpm.jar文件也要包含进去。

最后导入的效果如图2-4所示:


图 2-4 导入第三方类库

5、编写流程发布文件

jbpm流程定义的发布要通过java来实现,我们首先创建helloTest.java,将其保存到com.chuang包下,这里附代码如下

package com.chuang;

import junit.framework.TestCase;
import org.jbpm.api.*;
import java.util.*;

public class helloTest extends TestCase {
	ProcessEngine processEngine;//定义流程引擎
	
	public helloTest()//构造函数
	{
		//初始化流程引擎
		//作用是自动读取src目录下的jbpm.cfg.xml的内容
		processEngine=Configuration.getProcessEngine();
	}
	
	public void testDeploy()//测试发布函数
	{
		//定义RepositoryService对象
		RepositoryService repositoryService = processEngine.getRepositoryService();
		//发布流程定义
		String deploymentId = repositoryService.createDeployment().addResourceFromClasspath("jbpmHellowWorld.jpdl.xml").deploy();
		//查看流程定义信息,获得流程定义信息List
		List<ProcessDefinition> list = repositoryService.createProcessDefinitionQuery().list();
		//循环打印流程定义信息
		for(ProcessDefinition pd:list)
		{
			System.out.println(pd.getId());
		}
		
		//删除流程定义(级联删除),防止同一个流程定义下有多个子流程定义而无法删除的情况
		repositoryService.deleteDeploymentCascade(deploymentId);
		//查看删除后,已发布的流程定义的总数预计输出0
		System.out.println(repositoryService.createProcessDefinitionQuery().list().size());
	}

}
6、程序运行效果

通过执行helloTest.java(Run As JUnit Test)可以看到如下输出:

16:02:14,014 FIN | [WireContext] eagerly initializing org.jbpm.pvm.internal.id.DatabaseIdComposer
16:02:14,093 INF | [Environment] Hibernate 3.3.1.GA
16:02:14,093 INF | [Environment] hibernate.properties not found
16:02:14,109 INF | [Environment] Bytecode provider name : javassist
16:02:14,109 INF | [Environment] using JDK 1.4 java.sql.Timestamp handling
16:02:14,203 INF | [Configuration] configuring from resource: jbpm.hibernate.cfg.xml
16:02:14,203 INF | [Configuration] Configuration resource: jbpm.hibernate.cfg.xml
16:02:14,359 INF | [Configuration] Reading mappings from resource : jbpm.repository.hbm.xml
16:02:14,608 INF | [Configuration] Reading mappings from resource : jbpm.execution.hbm.xml
16:02:14,764 INF | [Configuration] Reading mappings from resource : jbpm.history.hbm.xml
16:02:14,795 INF | [Configuration] Reading mappings from resource : jbpm.task.hbm.xml
16:02:14,827 INF | [Configuration] Reading mappings from resource : jbpm.identity.hbm.xml
16:02:14,842 INF | [Configuration] Configured SessionFactory: null
16:02:14,873 INF | [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
16:02:14,873 INF | [DriverManagerConnectionProvider] Hibernate connection pool size: 20
16:02:14,873 INF | [DriverManagerConnectionProvider] autocommit mode: false
16:02:14,951 INF | [DriverManagerConnectionProvider] using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:mem:.
16:02:14,951 INF | [DriverManagerConnectionProvider] connection properties: {user=sa, password=****}
16:02:15,217 INF | [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
16:02:15,232 INF | [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
16:02:15,232 INF | [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
16:02:15,249 INF | [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
16:02:15,420 INF | [SessionFactoryImpl] building session factory
16:02:16,076 INF | [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
16:02:16,091 INF | [SchemaExport] Running hbm2ddl schema export
16:02:16,091 INF | [SchemaExport] exporting generated schema to database
16:02:16,138 INF | [SchemaExport] schema export complete
16:02:16,528 FIN | [HibernateSessionResource] ----- beginning hibernate tx 16267615 --------------------------------------------------------
16:02:16,544 FIN | [SQL] 
    select
        top ? propertyim0_.KEY_ as KEY1_2_,
        propertyim0_.VERSION_ as VERSION2_2_,
        propertyim0_.VALUE_ as VALUE3_2_ 
    from
        JBPM4_PROPERTY propertyim0_
16:02:16,560 FIN | [SQL] 
    select
        propertyim0_.KEY_ as KEY1_2_0_,
        propertyim0_.VERSION_ as VERSION2_2_0_,
        propertyim0_.VALUE_ as VALUE3_2_0_ 
    from
        JBPM4_PROPERTY propertyim0_ 
    where
        propertyim0_.KEY_=?
16:02:16,560 FST | [StringType] binding 'next.dbid' to parameter: 1
16:02:16,560 FIN | [SQL] 
    select
        propertyim0_.KEY_ as KEY1_2_0_,
        propertyim0_.VERSION_ as VERSION2_2_0_,
        propertyim0_.VALUE_ as VALUE3_2_0_ 
    from
        JBPM4_PROPERTY propertyim0_ 
    where
        propertyim0_.KEY_=?
16:02:16,560 FST | [StringType] binding 'next.dbid' to parameter: 1
16:02:16,607 FIN | [SQL] 
    select
        propertyim0_.KEY_ as KEY1_2_0_,
        propertyim0_.VERSION_ as VERSION2_2_0_,
        propertyim0_.VALUE_ as VALUE3_2_0_ 
    from
        JBPM4_PROPERTY propertyim0_ 
    where
        propertyim0_.KEY_=?
16:02:16,607 FST | [StringType] binding 'db.version' to parameter: 1
16:02:16,607 INF | [CheckDbCmd] jBPM version info: library[4.4-SNAPSHOT], schema[null]
16:02:16,623 FIN | [SQL] 
    insert 
    into
        JBPM4_PROPERTY
        (VERSION_, VALUE_, KEY_) 
    values
        (?, ?, ?)
16:02:16,623 FST | [IntegerType] binding '0' to parameter: 1
16:02:16,623 FST | [StringType] binding '1' to parameter: 2
16:02:16,623 FST | [StringType] binding 'next.dbid' to parameter: 3
16:02:16,623 FIN | [HibernateSessionResource] ----- committing hibernate tx 14823211 -------------------------------------------------------
16:02:16,685 FIN | [HibernateSessionResource] ----- beginning hibernate tx 15462504 --------------------------------------------------------
16:02:16,763 INF | [Parser] loading schema resource: jpdl-4.0.xsd
16:02:16,763 INF | [Parser] loading schema resource: jpdl-4.2.xsd
16:02:16,763 INF | [Parser] loading schema resource: jpdl-4.3.xsd
16:02:16,763 INF | [Parser] loading schema resource: jpdl-4.4.xsd
16:02:16,794 INF | [Parser] loading schema resource: BPMN20.xsd
16:02:16,794 INF | [Parser] loading schema resource: DiagramDefinition.xsd
16:02:16,810 INF | [Parser] loading schema resource: DiagramInterchange.xsd
16:02:16,810 INF | [Parser] loading schema resource: BpmnDi.xsd
16:02:16,810 FIN | [DatabaseDbidGenerator] last id -2 was consumed.  acquiring new block...
16:02:16,810 FIN | [HibernateSessionResource] ----- beginning hibernate tx 1456470 --------------------------------------------------------
16:02:16,857 FIN | [SQL] 
    select
        this_.KEY_ as KEY1_2_0_,
        this_.VERSION_ as VERSION2_2_0_,
        this_.VALUE_ as VALUE3_2_0_ 
    from
        JBPM4_PROPERTY this_ 
    where
        this_.KEY_=?
16:02:16,857 FST | [StringType] binding 'next.dbid' to parameter: 1
16:02:16,857 FST | [StringType] returning 'next.dbid' as column: KEY1_2_0_
16:02:16,857 FST | [IntegerType] returning '0' as column: VERSION2_2_0_
16:02:16,857 FST | [StringType] returning '1' as column: VALUE3_2_0_
16:02:16,872 FIN | [SQL] 
    update
        JBPM4_PROPERTY 
    set
        VERSION_=?,
        VALUE_=? 
    where
        KEY_=? 
        and VERSION_=?
16:02:16,872 FST | [IntegerType] binding '1' to parameter: 1
16:02:16,872 FST | [StringType] binding '10001' to parameter: 2
16:02:16,872 FST | [StringType] binding 'next.dbid' to parameter: 3
16:02:16,872 FST | [IntegerType] binding '0' to parameter: 4
16:02:16,872 FIN | [HibernateSessionResource] ----- committing hibernate tx 10140777 -------------------------------------------------------
16:02:16,872 FIN | [DatabaseDbidGenerator] acquired new id block [1-10000]
16:02:16,903 FIN | [SQL] 
    select
        lob_.DBID_,
        lob_.DBVERSION_ as DBVERSION2_5_,
        lob_.BLOB_VALUE_ as BLOB3_5_ 
    from
        JBPM4_LOB lob_ 
    where
        lob_.DBID_=?
16:02:16,903 FST | [LongType] binding '2' to parameter: 1
16:02:17,215 FIN | [SQL] 
    insert 
    into
        JBPM4_DEPLOYMENT
        (NAME_, TIMESTAMP_, STATE_, DBID_) 
    values
        (?, ?, ?, ?)
16:02:17,231 FST | [TextType] binding null to parameter: 1
16:02:17,231 FST | [LongType] binding '0' to parameter: 2
16:02:17,231 FST | [StringType] binding 'active' to parameter: 3
16:02:17,231 FST | [LongType] binding '1' to parameter: 4
16:02:17,231 FIN | [SQL] 
    insert 
    into
        JBPM4_LOB
        (DBVERSION_, BLOB_VALUE_, DBID_) 
    values
        (?, ?, ?)
16:02:17,231 FST | [IntegerType] binding '0' to parameter: 1
16:02:17,231 FST | [LongType] binding '2' to parameter: 3
16:02:17,231 FIN | [SQL] 
    insert 
    into
        JBPM4_DEPLOYPROP
        (DEPLOYMENT_, OBJNAME_, KEY_, STRINGVAL_, LONGVAL_, DBID_) 
    values
        (?, ?, ?, ?, ?, ?)
16:02:17,231 FST | [LongType] binding null to parameter: 1
16:02:17,231 FST | [StringType] binding null to parameter: 2
16:02:17,231 FST | [StringType] binding null to parameter: 3
16:02:17,231 FST | [StringType] binding null to parameter: 4
16:02:17,231 FST | [LongType] binding null to parameter: 5
16:02:17,231 FST | [LongType] binding '3' to parameter: 6
16:02:17,231 FIN | [SQL] 
    update
        JBPM4_DEPLOYPROP 
    set
        DEPLOYMENT_=?,
        OBJNAME_=?,
        KEY_=?,
        STRINGVAL_=?,
        LONGVAL_=? 
    where
        DBID_=?
16:02:17,231 FST | [LongType] binding '1' to parameter: 1
16:02:17,231 FST | [StringType] binding 'jbpmHellowWorld' to parameter: 2
16:02:17,231 FST | [StringType] binding 'langid' to parameter: 3
16:02:17,231 FST | [StringType] binding 'jpdl-4.4' to parameter: 4
16:02:17,231 FST | [LongType] binding null to parameter: 5
16:02:17,231 FST | [LongType] binding '3' to parameter: 6
16:02:17,231 FIN | [SQL] 
    update
        JBPM4_LOB 
    set
        DEPLOYMENT_=?,
        NAME_=? 
    where
        DBID_=?
16:02:17,231 FST | [LongType] binding '1' to parameter: 1
16:02:17,231 FST | [TextType] binding 'jbpmHellowWorld.jpdl.xml' to parameter: 2
16:02:17,231 FST | [LongType] binding '2' to parameter: 3
16:02:17,231 FIN | [SQL] 
    update
        JBPM4_DEPLOYPROP 
    set
        DEPLOYMENT_=? 
    where
        DBID_=?
16:02:17,231 FST | [LongType] binding '1' to parameter: 1
16:02:17,231 FST | [LongType] binding '3' to parameter: 2
16:02:17,231 FIN | [SQL] 
    select
        deployment1_.OBJNAME_ as col_0_0_,
        deployment1_.DEPLOYMENT_ as col_1_0_ 
    from
        JBPM4_DEPLOYMENT deployment0_,
        JBPM4_DEPLOYPROP deployment1_,
        JBPM4_DEPLOYPROP deployment2_,
        JBPM4_DEPLOYPROP deployment3_ 
    where
        deployment1_.KEY_='pdid' 
        and deployment1_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment2_.KEY_='pdkey' 
        and deployment2_.OBJNAME_=deployment1_.OBJNAME_ 
        and deployment2_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment3_.KEY_='pdversion' 
        and deployment3_.OBJNAME_=deployment1_.OBJNAME_ 
        and deployment3_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment1_.OBJNAME_='jbpmHellowWorld'
16:02:17,247 FIN | [SQL] 
    select
        deployment1_.OBJNAME_ as col_0_0_,
        deployment1_.DEPLOYMENT_ as col_1_0_ 
    from
        JBPM4_DEPLOYMENT deployment0_,
        JBPM4_DEPLOYPROP deployment1_,
        JBPM4_DEPLOYPROP deployment2_,
        JBPM4_DEPLOYPROP deployment3_ 
    where
        deployment1_.KEY_='pdid' 
        and deployment1_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment2_.KEY_='pdkey' 
        and deployment2_.OBJNAME_=deployment1_.OBJNAME_ 
        and deployment2_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment3_.KEY_='pdversion' 
        and deployment3_.OBJNAME_=deployment1_.OBJNAME_ 
        and deployment3_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment2_.STRINGVAL_='jbpmHellowWorld'
16:02:17,262 FIN | [SQL] 
    select
        top ? deployment1_.OBJNAME_ as col_0_0_,
        deployment1_.DEPLOYMENT_ as col_1_0_ 
    from
        JBPM4_DEPLOYMENT deployment0_,
        JBPM4_DEPLOYPROP deployment1_,
        JBPM4_DEPLOYPROP deployment2_,
        JBPM4_DEPLOYPROP deployment3_ 
    where
        deployment1_.KEY_='pdid' 
        and deployment1_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment2_.KEY_='pdkey' 
        and deployment2_.OBJNAME_=deployment1_.OBJNAME_ 
        and deployment2_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment3_.KEY_='pdversion' 
        and deployment3_.OBJNAME_=deployment1_.OBJNAME_ 
        and deployment3_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment2_.STRINGVAL_='jbpmHellowWorld' 
    order by
        deployment3_.LONGVAL_ desc
16:02:17,262 FIN | [SQL] 
    select
        deployment1_.OBJNAME_ as col_0_0_,
        deployment1_.DEPLOYMENT_ as col_1_0_ 
    from
        JBPM4_DEPLOYMENT deployment0_,
        JBPM4_DEPLOYPROP deployment1_,
        JBPM4_DEPLOYPROP deployment2_,
        JBPM4_DEPLOYPROP deployment3_ 
    where
        deployment1_.KEY_='pdid' 
        and deployment1_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment2_.KEY_='pdkey' 
        and deployment2_.OBJNAME_=deployment1_.OBJNAME_ 
        and deployment2_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment3_.KEY_='pdversion' 
        and deployment3_.OBJNAME_=deployment1_.OBJNAME_ 
        and deployment3_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment1_.STRINGVAL_='jbpmHellowWorld-1'
16:02:17,278 FIN | [SQL] 
    insert 
    into
        JBPM4_DEPLOYPROP
        (DEPLOYMENT_, OBJNAME_, KEY_, STRINGVAL_, LONGVAL_, DBID_) 
    values
        (?, ?, ?, ?, ?, ?)
16:02:17,278 FST | [LongType] binding null to parameter: 1
16:02:17,278 FST | [StringType] binding null to parameter: 2
16:02:17,278 FST | [StringType] binding null to parameter: 3
16:02:17,278 FST | [StringType] binding null to parameter: 4
16:02:17,278 FST | [LongType] binding null to parameter: 5
16:02:17,278 FST | [LongType] binding '4' to parameter: 6
16:02:17,278 FIN | [SQL] 
    insert 
    into
        JBPM4_DEPLOYPROP
        (DEPLOYMENT_, OBJNAME_, KEY_, STRINGVAL_, LONGVAL_, DBID_) 
    values
        (?, ?, ?, ?, ?, ?)
16:02:17,278 FST | [LongType] binding null to parameter: 1
16:02:17,278 FST | [StringType] binding null to parameter: 2
16:02:17,278 FST | [StringType] binding null to parameter: 3
16:02:17,278 FST | [StringType] binding null to parameter: 4
16:02:17,278 FST | [LongType] binding null to parameter: 5
16:02:17,278 FST | [LongType] binding '5' to parameter: 6
16:02:17,278 FIN | [SQL] 
    insert 
    into
        JBPM4_DEPLOYPROP
        (DEPLOYMENT_, OBJNAME_, KEY_, STRINGVAL_, LONGVAL_, DBID_) 
    values
        (?, ?, ?, ?, ?, ?)
16:02:17,278 FST | [LongType] binding null to parameter: 1
16:02:17,278 FST | [StringType] binding null to parameter: 2
16:02:17,278 FST | [StringType] binding null to parameter: 3
16:02:17,278 FST | [StringType] binding null to parameter: 4
16:02:17,278 FST | [LongType] binding null to parameter: 5
16:02:17,278 FST | [LongType] binding '6' to parameter: 6
16:02:17,278 FIN | [SQL] 
    update
        JBPM4_DEPLOYPROP 
    set
        DEPLOYMENT_=?,
        OBJNAME_=?,
        KEY_=?,
        STRINGVAL_=?,
        LONGVAL_=? 
    where
        DBID_=?
16:02:17,278 FST | [LongType] binding '1' to parameter: 1
16:02:17,278 FST | [StringType] binding 'jbpmHellowWorld' to parameter: 2
16:02:17,278 FST | [StringType] binding 'pdid' to parameter: 3
16:02:17,278 FST | [StringType] binding 'jbpmHellowWorld-1' to parameter: 4
16:02:17,278 FST | [LongType] binding null to parameter: 5
16:02:17,278 FST | [LongType] binding '4' to parameter: 6
16:02:17,278 FIN | [SQL] 
    update
        JBPM4_DEPLOYPROP 
    set
        DEPLOYMENT_=?,
        OBJNAME_=?,
        KEY_=?,
        STRINGVAL_=?,
        LONGVAL_=? 
    where
        DBID_=?
16:02:17,278 FST | [LongType] binding '1' to parameter: 1
16:02:17,278 FST | [StringType] binding 'jbpmHellowWorld' to parameter: 2
16:02:17,278 FST | [StringType] binding 'pdkey' to parameter: 3
16:02:17,278 FST | [StringType] binding 'jbpmHellowWorld' to parameter: 4
16:02:17,278 FST | [LongType] binding null to parameter: 5
16:02:17,278 FST | [LongType] binding '5' to parameter: 6
16:02:17,278 FIN | [SQL] 
    update
        JBPM4_DEPLOYPROP 
    set
        DEPLOYMENT_=?,
        OBJNAME_=?,
        KEY_=?,
        STRINGVAL_=?,
        LONGVAL_=? 
    where
        DBID_=?
16:02:17,278 FST | [LongType] binding '1' to parameter: 1
16:02:17,278 FST | [StringType] binding 'jbpmHellowWorld' to parameter: 2
16:02:17,278 FST | [StringType] binding 'pdversion' to parameter: 3
16:02:17,278 FST | [StringType] binding null to parameter: 4
16:02:17,278 FST | [LongType] binding '1' to parameter: 5
16:02:17,278 FST | [LongType] binding '6' to parameter: 6
16:02:17,278 FIN | [SQL] 
    update
        JBPM4_DEPLOYPROP 
    set
        DEPLOYMENT_=? 
    where
        DBID_=?
16:02:17,278 FST | [LongType] binding '1' to parameter: 1
16:02:17,278 FST | [LongType] binding '5' to parameter: 2
16:02:17,278 FIN | [SQL] 
    update
        JBPM4_DEPLOYPROP 
    set
        DEPLOYMENT_=? 
    where
        DBID_=?
16:02:17,278 FST | [LongType] binding '1' to parameter: 1
16:02:17,278 FST | [LongType] binding '6' to parameter: 2
16:02:17,278 FIN | [SQL] 
    update
        JBPM4_DEPLOYPROP 
    set
        DEPLOYMENT_=? 
    where
        DBID_=?
16:02:17,278 FST | [LongType] binding '1' to parameter: 1
16:02:17,278 FST | [LongType] binding '4' to parameter: 2
16:02:17,278 FIN | [HibernateSessionResource] ----- committing hibernate tx 17456161 -------------------------------------------------------
16:02:17,293 FIN | [HibernateSessionResource] ----- beginning hibernate tx 12730771 --------------------------------------------------------
16:02:17,293 FIN | [HibernateSessionResource] ----- committing hibernate tx 6751353 -------------------------------------------------------
16:02:17,293 FIN | [HibernateSessionResource] ----- beginning hibernate tx 19161779 --------------------------------------------------------
16:02:17,309 FIN | [SQL] 
    select
        deployment1_.OBJNAME_ as col_0_0_,
        deployment1_.DEPLOYMENT_ as col_1_0_ 
    from
        JBPM4_DEPLOYMENT deployment0_,
        JBPM4_DEPLOYPROP deployment1_,
        JBPM4_DEPLOYPROP deployment2_,
        JBPM4_DEPLOYPROP deployment3_ 
    where
        deployment1_.KEY_='pdid' 
        and deployment1_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment2_.KEY_='pdkey' 
        and deployment2_.OBJNAME_=deployment1_.OBJNAME_ 
        and deployment2_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment3_.KEY_='pdversion' 
        and deployment3_.OBJNAME_=deployment1_.OBJNAME_ 
        and deployment3_.DEPLOYMENT_=deployment0_.DBID_
16:02:17,309 FST | [StringType] returning 'jbpmHellowWorld' as column: col_0_0_
16:02:17,309 FST | [LongType] returning '1' as column: col_1_0_
16:02:17,309 FIN | [HibernateSessionResource] ----- committing hibernate tx 31416097 -------------------------------------------------------
jbpmHellowWorld-1
16:02:17,309 FIN | [HibernateSessionResource] ----- beginning hibernate tx 8906500 --------------------------------------------------------
16:02:17,309 FIN | [SQL] 
    select
        deployment1_.OBJNAME_ as col_0_0_,
        deployment1_.DEPLOYMENT_ as col_1_0_ 
    from
        JBPM4_DEPLOYMENT deployment0_,
        JBPM4_DEPLOYPROP deployment1_,
        JBPM4_DEPLOYPROP deployment2_,
        JBPM4_DEPLOYPROP deployment3_ 
    where
        deployment1_.KEY_='pdid' 
        and deployment1_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment2_.KEY_='pdkey' 
        and deployment2_.OBJNAME_=deployment1_.OBJNAME_ 
        and deployment2_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment3_.KEY_='pdversion' 
        and deployment3_.OBJNAME_=deployment1_.OBJNAME_ 
        and deployment3_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment1_.DEPLOYMENT_=1
16:02:17,325 FST | [StringType] returning 'jbpmHellowWorld' as column: col_0_0_
16:02:17,325 FST | [LongType] returning '1' as column: col_1_0_
16:02:17,325 FIN | [SQL] 
    select
        executioni0_.ID_ as col_0_0_ 
    from
        JBPM4_EXECUTION executioni0_ 
    where
        executioni0_.PROCDEFID_=? 
        and (
            executioni0_.PARENT_ is null
        )
16:02:17,325 FST | [StringType] binding 'jbpmHellowWorld-1' to parameter: 1
16:02:17,325 FIN | [SQL] 
    select
        this_.DBID_ as DBID1_7_0_,
        this_.DBVERSION_ as DBVERSION2_7_0_,
        this_.ID_ as ID3_7_0_,
        this_.PROCDEFID_ as PROCDEFID4_7_0_,
        this_.KEY_ as KEY5_7_0_,
        this_.START_ as START6_7_0_,
        this_.END_ as END7_7_0_,
        this_.DURATION_ as DURATION8_7_0_,
        this_.STATE_ as STATE9_7_0_,
        this_.ENDACTIVITY_ as ENDACTI10_7_0_,
        this_.NEXTIDX_ as NEXTIDX11_7_0_ 
    from
        JBPM4_HIST_PROCINST this_ 
    where
        this_.PROCDEFID_=?
16:02:17,325 FST | [StringType] binding 'jbpmHellowWorld-1' to parameter: 1
16:02:17,325 FIN | [DeleteDeploymentCmd] deleting deployment 1
16:02:17,325 FIN | [SQL] 
    select
        deployment0_.DBID_ as DBID1_0_0_,
        deployment0_.NAME_ as NAME2_0_0_,
        deployment0_.TIMESTAMP_ as TIMESTAMP3_0_0_,
        deployment0_.STATE_ as STATE4_0_0_ 
    from
        JBPM4_DEPLOYMENT deployment0_ 
    where
        deployment0_.DBID_=?
16:02:17,325 FST | [LongType] binding '1' to parameter: 1
16:02:17,325 FST | [TextType] returning null as column: NAME2_0_0_
16:02:17,325 FST | [LongType] returning '0' as column: TIMESTAMP3_0_0_
16:02:17,325 FST | [StringType] returning 'active' as column: STATE4_0_0_
16:02:17,341 FIN | [SQL] 
    select
        resources0_.DEPLOYMENT_ as DEPLOYMENT4_1_,
        resources0_.DBID_ as DBID1_1_,
        resources0_.NAME_ as NAME5_1_,
        resources0_.DBID_ as DBID1_5_0_,
        resources0_.DBVERSION_ as DBVERSION2_5_0_,
        resources0_.BLOB_VALUE_ as BLOB3_5_0_ 
    from
        JBPM4_LOB resources0_ 
    where
        resources0_.DEPLOYMENT_=?
16:02:17,341 FST | [LongType] binding '1' to parameter: 1
16:02:17,341 FST | [LongType] returning '2' as column: DBID1_5_0_
16:02:17,341 FST | [IntegerType] returning '0' as column: DBVERSION2_5_0_
16:02:17,341 FST | [LongType] returning '1' as column: DEPLOYMENT4_1_
16:02:17,341 FST | [LongType] returning '2' as column: DBID1_1_
16:02:17,341 FST | [TextType] returning 'jbpmHellowWorld.jpdl.xml' as column: NAME5_1_
16:02:17,341 FIN | [SQL] 
    select
        objectprop0_.DEPLOYMENT_ as DEPLOYMENT2_1_,
        objectprop0_.DBID_ as DBID1_1_,
        objectprop0_.DBID_ as DBID1_1_0_,
        objectprop0_.DEPLOYMENT_ as DEPLOYMENT2_1_0_,
        objectprop0_.OBJNAME_ as OBJNAME3_1_0_,
        objectprop0_.KEY_ as KEY4_1_0_,
        objectprop0_.STRINGVAL_ as STRINGVAL5_1_0_,
        objectprop0_.LONGVAL_ as LONGVAL6_1_0_ 
    from
        JBPM4_DEPLOYPROP objectprop0_ 
    where
        objectprop0_.DEPLOYMENT_=?
16:02:17,341 FST | [LongType] binding '1' to parameter: 1
16:02:17,341 FST | [LongType] returning '3' as column: DBID1_1_0_
16:02:17,341 FST | [LongType] returning '1' as column: DEPLOYMENT2_1_0_
16:02:17,341 FST | [StringType] returning 'jbpmHellowWorld' as column: OBJNAME3_1_0_
16:02:17,341 FST | [StringType] returning 'langid' as column: KEY4_1_0_
16:02:17,341 FST | [StringType] returning 'jpdl-4.4' as column: STRINGVAL5_1_0_
16:02:17,341 FST | [LongType] returning null as column: LONGVAL6_1_0_
16:02:17,341 FST | [LongType] returning '1' as column: DEPLOYMENT2_1_
16:02:17,341 FST | [LongType] returning '3' as column: DBID1_1_
16:02:17,341 FST | [LongType] returning '4' as column: DBID1_1_0_
16:02:17,357 FST | [LongType] returning '1' as column: DEPLOYMENT2_1_0_
16:02:17,357 FST | [StringType] returning 'jbpmHellowWorld' as column: OBJNAME3_1_0_
16:02:17,357 FST | [StringType] returning 'pdid' as column: KEY4_1_0_
16:02:17,357 FST | [StringType] returning 'jbpmHellowWorld-1' as column: STRINGVAL5_1_0_
16:02:17,357 FST | [LongType] returning null as column: LONGVAL6_1_0_
16:02:17,357 FST | [LongType] returning '1' as column: DEPLOYMENT2_1_
16:02:17,357 FST | [LongType] returning '4' as column: DBID1_1_
16:02:17,357 FST | [LongType] returning '5' as column: DBID1_1_0_
16:02:17,357 FST | [LongType] returning '1' as column: DEPLOYMENT2_1_0_
16:02:17,357 FST | [StringType] returning 'jbpmHellowWorld' as column: OBJNAME3_1_0_
16:02:17,357 FST | [StringType] returning 'pdkey' as column: KEY4_1_0_
16:02:17,357 FST | [StringType] returning 'jbpmHellowWorld' as column: STRINGVAL5_1_0_
16:02:17,357 FST | [LongType] returning null as column: LONGVAL6_1_0_
16:02:17,357 FST | [LongType] returning '1' as column: DEPLOYMENT2_1_
16:02:17,357 FST | [LongType] returning '5' as column: DBID1_1_
16:02:17,357 FST | [LongType] returning '6' as column: DBID1_1_0_
16:02:17,357 FST | [LongType] returning '1' as column: DEPLOYMENT2_1_0_
16:02:17,357 FST | [StringType] returning 'jbpmHellowWorld' as column: OBJNAME3_1_0_
16:02:17,357 FST | [StringType] returning 'pdversion' as column: KEY4_1_0_
16:02:17,357 FST | [StringType] returning null as column: STRINGVAL5_1_0_
16:02:17,357 FST | [LongType] returning '1' as column: LONGVAL6_1_0_
16:02:17,357 FST | [LongType] returning '1' as column: DEPLOYMENT2_1_
16:02:17,357 FST | [LongType] returning '6' as column: DBID1_1_
16:02:17,357 FIN | [SQL] 
    update
        JBPM4_LOB 
    set
        DEPLOYMENT_=null,
        NAME_=null 
    where
        DEPLOYMENT_=?
16:02:17,357 FST | [LongType] binding '1' to parameter: 1
16:02:17,357 FIN | [SQL] 
    update
        JBPM4_DEPLOYPROP 
    set
        DEPLOYMENT_=null 
    where
        DEPLOYMENT_=?
16:02:17,357 FST | [LongType] binding '1' to parameter: 1
16:02:17,357 FIN | [SQL] 
    delete 
    from
        JBPM4_LOB 
    where
        DBID_=? 
        and DBVERSION_=?
16:02:17,357 FST | [LongType] binding '2' to parameter: 1
16:02:17,357 FST | [IntegerType] binding '0' to parameter: 2
16:02:17,357 FIN | [SQL] 
    delete 
    from
        JBPM4_DEPLOYPROP 
    where
        DBID_=?
16:02:17,357 FST | [LongType] binding '6' to parameter: 1
16:02:17,357 FIN | [SQL] 
    delete 
    from
        JBPM4_DEPLOYPROP 
    where
        DBID_=?
16:02:17,357 FST | [LongType] binding '5' to parameter: 1
16:02:17,357 FIN | [SQL] 
    delete 
    from
        JBPM4_DEPLOYPROP 
    where
        DBID_=?
16:02:17,357 FST | [LongType] binding '3' to parameter: 1
16:02:17,357 FIN | [SQL] 
    delete 
    from
        JBPM4_DEPLOYPROP 
    where
        DBID_=?
16:02:17,357 FST | [LongType] binding '4' to parameter: 1
16:02:17,357 FIN | [SQL] 
    delete 
    from
        JBPM4_DEPLOYMENT 
    where
        DBID_=?
16:02:17,357 FST | [LongType] binding '1' to parameter: 1
16:02:17,357 FIN | [HibernateSessionResource] ----- committing hibernate tx 26684986 -------------------------------------------------------
16:02:17,357 FIN | [HibernateSessionResource] ----- beginning hibernate tx 24957277 --------------------------------------------------------
16:02:17,357 FIN | [HibernateSessionResource] ----- committing hibernate tx 16949413 -------------------------------------------------------
16:02:17,357 FIN | [HibernateSessionResource] ----- beginning hibernate tx 3275569 --------------------------------------------------------
16:02:17,357 FIN | [SQL] 
    select
        deployment1_.OBJNAME_ as col_0_0_,
        deployment1_.DEPLOYMENT_ as col_1_0_ 
    from
        JBPM4_DEPLOYMENT deployment0_,
        JBPM4_DEPLOYPROP deployment1_,
        JBPM4_DEPLOYPROP deployment2_,
        JBPM4_DEPLOYPROP deployment3_ 
    where
        deployment1_.KEY_='pdid' 
        and deployment1_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment2_.KEY_='pdkey' 
        and deployment2_.OBJNAME_=deployment1_.OBJNAME_ 
        and deployment2_.DEPLOYMENT_=deployment0_.DBID_ 
        and deployment3_.KEY_='pdversion' 
        and deployment3_.OBJNAME_=deployment1_.OBJNAME_ 
        and deployment3_.DEPLOYMENT_=deployment0_.DBID_
16:02:17,357 FIN | [HibernateSessionResource] ----- committing hibernate tx 11555382 -------------------------------------------------------
0

其中最后输出的0代表:流程引擎中没有流程定义,因为我们只部署了一个流程;

jbpmHellowWorld-1代表:输出的部署流程ID,第一次部署版本号为1。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值