6 使用框架提供的API完成流程操作
可以在项目中加入log4j,将框架执行的sql输出到控制台,log4j提供的日志级别:Fatal error warn info debug trace
6.1 部署流程定义
New->Source Folder:process 把所有的流程图都放到这个目录里面
这是快速的画法并且是直的
设置了上述之后要重新创建一个bpmn文件保存之后才会生成流程图片
bpmn文件本质上是一个XML文件
其实改的是这个地方,但是没有必要改XML文件,直接使用图形化的方式修改即可
接下来要把这个流程图部署到我们的数据库里面去,部署完之后就可以按照我们的流程来走了
这两个文件统称为流程定义文件/流程定义文档,这两份文件描述了流程该怎么走。
执行部署流程定义的代码
执行代码之后部署表act_re_deployment和流程定义表act_re_procdef会插入数据,部署表是主表,流程定义表是从表,流程定义表关联部署表。流程定义表可以认为是部署表的扩展表,它记录了更加详细的信息。
通用表act_ge_bytearray,存储的是二进制数据。并不仅仅是存储流程定义文件的文件名,是把它转化成二进制流(序列化成了二进制数据)存储在数据库表act_ge_bytearray中。
再次执行部署流程定义代码,id是101,其实这个id是个String,id是100、100的往上增长。
想打印刚才执行的sql语句,缺少了log4j.properties所以控制台打印不出信息
打印不出sql语句,说明log4j.properties写的有问题
调整log4j.properties之后可以打印出sql语句了
21:05:29,164 INFO ProcessEngines:108 - Initializing process engine using Spring configuration 'file:/D:/%e5%b7%a5%e4%bd%9c%e6%b5%813/activiti1110/bin/activiti-context.xml'
21:05:29,176 DEBUG SpringConfigurationHelper:36 - ==== BUILDING SPRING APPLICATION CONTEXT AND PROCESS ENGINE =========================================
21:05:29,236 DEBUG StandardEnvironment:114 - Initializing new StandardEnvironment
21:05:29,237 DEBUG StandardEnvironment:104 - Adding [systemProperties] PropertySource with lowest search precedence
21:05:29,239 DEBUG StandardEnvironment:104 - Adding [systemEnvironment] PropertySource with lowest search precedence
21:05:29,239 DEBUG StandardEnvironment:120 - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
21:05:29,280 DEBUG StandardEnvironment:114 - Initializing new StandardEnvironment
21:05:29,280 DEBUG StandardEnvironment:104 - Adding [systemProperties] PropertySource with lowest search precedence
21:05:29,280 DEBUG StandardEnvironment:104 - Adding [systemEnvironment] PropertySource with lowest search precedence
21:05:29,281 DEBUG StandardEnvironment:120 - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
21:05:29,287 INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from URL [file:/D:/%e5%b7%a5%e4%bd%9c%e6%b5%813/activiti1110/bin/activiti-context.xml]
21:05:29,303 DEBUG DefaultDocumentLoader:72 - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
21:05:29,326 DEBUG PluggableSchemaResolver:140 - Loading schema mappings from [META-INF/spring.schemas]
21:05:29,330 DEBUG PluggableSchemaResolver:146 - Loaded schema mappings: {http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-3.1.xsd, http://www.springframework.org/schema/task/spring-task.xsd=org/springframework/scheduling/config/spring-task-3.1.xsd, http://www.springframework.org/schema/beans/spring-beans-3.1.xsd=org/springframework/beans/factory/xml/spring-beans-3.1.xsd, http://www.springframework.org/schema/cache/spring-cache.xsd=org/springframework/cache/config/spring-cache-3.1.xsd, http://www.springframework.org/schema/aop/spring-aop-3.0.xsd=org/springframework/aop/config/spring-aop-3.0.xsd, http://www.springframework.org/schema/task/spring-task-3.1.xsd=org/springframework/scheduling/config/spring-task-3.1.xsd, http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.5.xsd=org/springframework/beans/factory/xml/spring-tool-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-3.1.xsd, http://www.springframework.org/schema/jee/spring-jee-2.5.xsd=org/springframework/ejb/config/spring-jee-2.5.xsd, http://www.activiti.org/schema/spring/components/activiti-5.0.xsd=org/activiti/spring/components/config/xml/activit-5.0.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd=org/springframework/jdbc/config/spring-jdbc-3.1.xsd, http://www.springframework.org/schema/tool/spring-tool-3.1.xsd=org/springframework/beans/factory/xml/spring-tool-3.1.xsd, http://www.springframework.org/schema/jee/spring-jee-3.1.xsd=org/springframework/ejb/config/spring-jee-3.1.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-3.1.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans-3.0.xsd=org/springframework/beans/factory/xml/spring-beans-3.0.xsd, http://www.springframework.org/schema/task/spring-task-3.0.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-2.5.xsd=org/springframework/transaction/config/spring-tx-2.5.xsd, http://www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/spring-context-2.5.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd=org/springframework/jdbc/config/spring-jdbc-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool-3.0.xsd=org/springframework/beans/factory/xml/spring-tool-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-3.1.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-3.1.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/util/spring-util-2.5.xsd=org/springframework/beans/factory/xml/spring-util-2.5.xsd, http://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-3.0.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.1.xsd=org/springframework/transaction/config/spring-tx-3.1.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/context/spring-context-3.1.xsd=org/springframework/context/config/spring-context-3.1.xsd, http://www.springframework.org/schema/util/spring-util-3.1.xsd=org/springframework/beans/factory/xml/spring-util-3.1.xsd, http://www.springframework.org/schema/lang/spring-lang-3.1.xsd=org/springframework/scripting/config/spring-lang-3.1.xsd, http://www.springframework.org/schema/cache/spring-cache-3.1.xsd=org/springframework/cache/config/spring-cache-3.1.xsd, http://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/spring-context-3.1.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-3.1.xsd, http://www.activiti.org/schema/spring/components/activiti.xsd=org/activiti/spring/components/config/xml/activiti-5.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.5.xsd=org/springframework/aop/config/spring-aop-2.5.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc.xsd=org/springframework/jdbc/config/spring-jdbc-3.1.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop-3.1.xsd=org/springframework/aop/config/spring-aop-3.1.xsd, http://www.springframework.org/schema/tx/spring-tx-3.0.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd, http://www.springframework.org/schema/context/spring-context-3.0.xsd=org/springframework/context/config/spring-context-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-3.1.xsd, http://www.springframework.org/schema/util/spring-util-3.0.xsd=org/springframework/beans/factory/xml/spring-util-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang-3.0.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd}
21:05:29,333 DEBUG PluggableSchemaResolver:118 - Found XML schema [http://www.springframework.org/schema/beans/spring-beans.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.1.xsd
21:05:29,374 DEBUG DefaultBeanDefinitionDocumentReader:108 - Loading bean definitions
21:05:29,395 INFO GenericXmlApplicationContext:500 - Refreshing org.springframework.context.support.GenericXmlApplicationContext@5ee76547: startup date [Tue Feb 14 21:05:29 CST 2017]; root of context hierarchy
21:05:29,395 DEBUG GenericXmlApplicationContext:530 - Bean factory for org.springframework.context.support.GenericXmlApplicationContext@5ee76547: org.springframework.beans.factory.support.DefaultListableBeanFactory@5d172aa6: defining beans [processEngineConfiguration,processEngine]; root of factory hierarchy
21:05:29,413 DEBUG GenericXmlApplicationContext:799 - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1650b3cd]
21:05:29,415 DEBUG GenericXmlApplicationContext:823 - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@5c66d27c]
21:05:29,415 INFO DefaultListableBeanFactory:581 - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5d172aa6: defining beans [processEngineConfiguration,processEngine]; root of factory hierarchy
21:05:29,416 DEBUG DefaultListableBeanFactory:217 - Creating shared instance of singleton bean 'processEngineConfiguration'
21:05:29,416 DEBUG DefaultListableBeanFactory:430 - Creating instance of bean 'processEngineConfiguration'
21:05:29,448 DEBUG DefaultListableBeanFactory:504 - Eagerly caching bean 'processEngineConfiguration' to allow for resolving potential circular references
21:05:29,596 DEBUG DefaultListableBeanFactory:458 - Finished creating instance of bean 'processEngineConfiguration'
21:05:29,596 DEBUG DefaultListableBeanFactory:217 - Creating shared instance of singleton bean 'processEngine'
21:05:29,596 DEBUG DefaultListableBeanFactory:430 - Creating instance of bean 'processEngine'
21:05:29,597 DEBUG DefaultListableBeanFactory:504 - Eagerly caching bean 'processEngine' to allow for resolving potential circular references
21:05:29,597 DEBUG DefaultListableBeanFactory:245 - Returning cached instance of singleton bean 'processEngineConfiguration'
21:05:29,602 DEBUG DefaultListableBeanFactory:458 - Finished creating instance of bean 'processEngine'
21:05:29,604 DEBUG GenericXmlApplicationContext:850 - Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [org.springframework.context.support.DefaultLifecycleProcessor@751a7a64]
21:05:29,604 DEBUG DefaultListableBeanFactory:245 - Returning cached instance of singleton bean 'lifecycleProcessor'
21:05:29,605 DEBUG DefaultListableBeanFactory:245 - Returning cached instance of singleton bean 'processEngine'
21:05:29,724 DEBUG ProcessEngineConfigurationImpl:508 - initializing datasource to db: jdbc:mysql:///activiti_1110
21:05:29,734 DEBUG LogFactory:115 - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
21:05:29,747 DEBUG PooledDataSource:304 - PooledDataSource forcefully closed/removed all connections.
21:05:29,908 DEBUG PooledDataSource:378 - Created connection 944877390.
21:05:29,910 DEBUG ProcessEngineConfigurationImpl:586 - database product name: 'MySQL'
21:05:29,910 DEBUG ProcessEngineConfigurationImpl:591 - using database type: mysql
21:05:29,911 DEBUG PooledDataSource:332 - Returned connection 944877390 to pool.
21:05:30,913 DEBUG LogInterceptor:33 -
21:05:30,913 DEBUG LogInterceptor:34 - --- starting SchemaOperationsProcessEngineBuild --------------------------------------------------------
21:05:30,920 DEBUG JdbcTransaction:129 - Opening JDBC Connection
21:05:30,921 DEBUG PooledDataSource:367 - Checked out connection 944877390 from pool.
21:05:30,958 DEBUG selectProperty:132 - ooo Using Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:30,958 DEBUG selectProperty:132 - ==> Preparing: select * from ACT_GE_PROPERTY where NAME_ = ?
21:05:30,979 DEBUG selectProperty:132 - ==> Parameters: schema.version(String)
21:05:31,007 DEBUG DbSqlSession:428 - flush summary: 0 insert, 0 update, 0 delete.
21:05:31,007 DEBUG DbSqlSession:438 - now executing flush...
21:05:31,008 DEBUG StandaloneMybatisTransactionContext:56 - firing event committing...
21:05:31,008 DEBUG StandaloneMybatisTransactionContext:58 - committing the ibatis sql session...
21:05:31,008 DEBUG StandaloneMybatisTransactionContext:60 - firing event committed...
21:05:31,008 DEBUG JdbcTransaction:117 - Resetting autocommit to true on JDBC Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,010 DEBUG JdbcTransaction:85 - Closing JDBC Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,010 DEBUG PooledDataSource:332 - Returned connection 944877390 to pool.
21:05:31,010 DEBUG LogInterceptor:40 - --- SchemaOperationsProcessEngineBuild finished --------------------------------------------------------
21:05:31,010 DEBUG LogInterceptor:41 -
21:05:31,010 INFO ProcessEngineImpl:81 - ProcessEngine default created
21:05:31,011 DEBUG SpringConfigurationHelper:48 - ==== SPRING PROCESS ENGINE CREATED ==================================================================
21:05:31,045 DEBUG LogInterceptor:33 -
21:05:31,045 DEBUG LogInterceptor:34 - --- starting DeployCmd --------------------------------------------------------
21:05:31,046 DEBUG LogInterceptor:33 -
21:05:31,046 DEBUG LogInterceptor:34 - --- starting GetNextIdBlockCmd --------------------------------------------------------
21:05:31,047 DEBUG JdbcTransaction:129 - Opening JDBC Connection
21:05:31,047 DEBUG PooledDataSource:367 - Checked out connection 944877390 from pool.
21:05:31,047 DEBUG JdbcTransaction:95 - Setting autocommit to false on JDBC Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,049 DEBUG selectProperty:132 - ooo Using Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,049 DEBUG selectProperty:132 - ==> Preparing: select * from ACT_GE_PROPERTY where NAME_ = ?
21:05:31,049 DEBUG selectProperty:132 - ==> Parameters: next.dbid(String)
21:05:31,051 DEBUG DbSqlSession:428 - flush summary: 0 insert, 1 update, 0 delete.
21:05:31,051 DEBUG DbSqlSession:433 - update PropertyEntity[name=next.dbid, value=501]
21:05:31,051 DEBUG DbSqlSession:438 - now executing flush...
21:05:31,051 DEBUG DbSqlSession:557 - updating: PropertyEntity[name=next.dbid, value=501]
21:05:31,052 DEBUG updateProperty:132 - ooo Using Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,052 DEBUG updateProperty:132 - ==> Preparing: update ACT_GE_PROPERTY SET REV_ = ?, VALUE_ = ? where NAME_ = ? and REV_ = ?
21:05:31,052 DEBUG updateProperty:132 - ==> Parameters: 6(Integer), 501(String), next.dbid(String), 5(Integer)
21:05:31,054 DEBUG StandaloneMybatisTransactionContext:56 - firing event committing...
21:05:31,054 DEBUG StandaloneMybatisTransactionContext:58 - committing the ibatis sql session...
21:05:31,054 DEBUG JdbcTransaction:66 - Committing JDBC Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,078 DEBUG StandaloneMybatisTransactionContext:60 - firing event committed...
21:05:31,078 DEBUG JdbcTransaction:117 - Resetting autocommit to true on JDBC Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,080 DEBUG JdbcTransaction:85 - Closing JDBC Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,080 DEBUG PooledDataSource:332 - Returned connection 944877390 to pool.
21:05:31,080 DEBUG LogInterceptor:40 - --- GetNextIdBlockCmd finished --------------------------------------------------------
21:05:31,080 DEBUG LogInterceptor:41 -
21:05:31,080 DEBUG BpmnDeployer:68 - Processing deployment null
21:05:31,081 INFO BpmnDeployer:75 - Processing resource test2.bpmn
21:05:31,197 DEBUG ProcessParseHandler:77 - Parsing process qjlc
21:05:31,197 DEBUG AbstractBpmnParseHandler:94 - Parsing activity usertask1
21:05:31,226 DEBUG AbstractBpmnParseHandler:94 - Parsing activity usertask2
21:05:31,226 DEBUG AbstractBpmnParseHandler:94 - Parsing activity usertask3
21:05:31,227 DEBUG AbstractBpmnParseHandler:94 - Parsing activity startevent1
21:05:31,228 DEBUG AbstractBpmnParseHandler:94 - Parsing activity endevent1
21:05:31,230 INFO BpmnDeployer:75 - Processing resource test2.png
21:05:31,231 DEBUG JdbcTransaction:129 - Opening JDBC Connection
21:05:31,231 DEBUG PooledDataSource:367 - Checked out connection 944877390 from pool.
21:05:31,231 DEBUG JdbcTransaction:95 - Setting autocommit to false on JDBC Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,234 DEBUG selectLatestProcessDefinitionByKey:132 - ooo Using Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,234 DEBUG selectLatestProcessDefinitionByKey:132 - ==> Preparing: select * from ACT_RE_PROCDEF where KEY_ = ? and VERSION_ = (select max(VERSION_) from ACT_RE_PROCDEF where KEY_ = ?)
21:05:31,234 DEBUG selectLatestProcessDefinitionByKey:132 - ==> Parameters: qjlc(String), qjlc(String)
21:05:31,241 DEBUG selectJobsByConfiguration:132 - ooo Using Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,241 DEBUG selectJobsByConfiguration:132 - ==> Preparing: select * from ACT_RU_JOB where HANDLER_TYPE_ = ? and HANDLER_CFG_ = ?
21:05:31,242 DEBUG selectJobsByConfiguration:132 - ==> Parameters: timer-start-event(String), qjlc(String)
21:05:31,244 DEBUG selectEventSubscriptionsByConfiguration:132 - ooo Using Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,245 DEBUG selectEventSubscriptionsByConfiguration:132 - ==> Preparing: select * from ACT_RU_EVENT_SUBSCR where (EVENT_TYPE_ = ?) and (CONFIGURATION_ = ?)
21:05:31,245 DEBUG selectEventSubscriptionsByConfiguration:132 - ==> Parameters: message(String), qjlc:4:304(String)
21:05:31,248 DEBUG DbSqlSession:428 - flush summary: 4 insert, 0 update, 0 delete.
21:05:31,248 DEBUG DbSqlSession:430 - insert DeploymentEntity[id=401, name=null]
21:05:31,248 DEBUG DbSqlSession:430 - insert ResourceEntity[id=402, name=test2.bpmn]
21:05:31,248 DEBUG DbSqlSession:430 - insert ResourceEntity[id=403, name=test2.png]
21:05:31,248 DEBUG DbSqlSession:430 - insert ProcessDefinitionEntity[qjlc:5:404]
21:05:31,248 DEBUG DbSqlSession:438 - now executing flush...
21:05:31,249 DEBUG DbSqlSession:537 - inserting: DeploymentEntity[id=401, name=null]
21:05:31,249 DEBUG insertDeployment:132 - ooo Using Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,249 DEBUG insertDeployment:132 - ==> Preparing: insert into ACT_RE_DEPLOYMENT(ID_, NAME_, CATEGORY_, DEPLOY_TIME_) values(?, ?, ?, ?)
21:05:31,255 DEBUG insertDeployment:132 - ==> Parameters: 401(String), null, null, 2017-02-14 21:05:31.046(Timestamp)
21:05:31,257 DEBUG DbSqlSession:537 - inserting: ResourceEntity[id=402, name=test2.bpmn]
21:05:31,257 DEBUG insertResource:132 - ooo Using Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,257 DEBUG insertResource:132 - ==> Preparing: insert into ACT_GE_BYTEARRAY(ID_, REV_, NAME_, BYTES_, DEPLOYMENT_ID_, GENERATED_) values (?, 1, ?, ?, ?, ?)
21:05:31,258 DEBUG insertResource:132 - ==> Parameters: 402(String), test2.bpmn(String), java.io.ByteArrayInputStream@7729e4aa(ByteArrayInputStream), 401(String), false(Boolean)
21:05:31,263 DEBUG DbSqlSession:537 - inserting: ResourceEntity[id=403, name=test2.png]
21:05:31,264 DEBUG insertResource:132 - ooo Using Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,264 DEBUG insertResource:132 - ==> Preparing: insert into ACT_GE_BYTEARRAY(ID_, REV_, NAME_, BYTES_, DEPLOYMENT_ID_, GENERATED_) values (?, 1, ?, ?, ?, ?)
21:05:31,265 DEBUG insertResource:132 - ==> Parameters: 403(String), test2.png(String), java.io.ByteArrayInputStream@5386f479(ByteArrayInputStream), 401(String), false(Boolean)
21:05:31,294 DEBUG DbSqlSession:537 - inserting: ProcessDefinitionEntity[qjlc:5:404]
21:05:31,294 DEBUG insertProcessDefinition:132 - ooo Using Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,294 DEBUG insertProcessDefinition:132 - ==> Preparing: insert into ACT_RE_PROCDEF(ID_, REV_, CATEGORY_, NAME_, KEY_, VERSION_, DEPLOYMENT_ID_, RESOURCE_NAME_, DGRM_RESOURCE_NAME_, DESCRIPTION_, HAS_START_FORM_KEY_, SUSPENSION_STATE_) values (?, 1, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
21:05:31,295 DEBUG insertProcessDefinition:132 - ==> Parameters: qjlc:5:404(String), http://www.activiti.org/test(String), 请假流程(String), qjlc(String), 5(Integer), 401(String), test2.bpmn(String), test2.png(String), null, false(Boolean), 1(Integer)
21:05:31,297 DEBUG StandaloneMybatisTransactionContext:56 - firing event committing...
21:05:31,297 DEBUG StandaloneMybatisTransactionContext:58 - committing the ibatis sql session...
21:05:31,298 DEBUG JdbcTransaction:66 - Committing JDBC Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,337 DEBUG StandaloneMybatisTransactionContext:60 - firing event committed...
21:05:31,337 DEBUG JdbcTransaction:117 - Resetting autocommit to true on JDBC Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,339 DEBUG JdbcTransaction:85 - Closing JDBC Connection [com.mysql.jdbc.Connection@3851af4e]
21:05:31,339 DEBUG PooledDataSource:332 - Returned connection 944877390 to pool.
21:05:31,340 DEBUG LogInterceptor:40 - --- DeployCmd finished --------------------------------------------------------
21:05:31,340 DEBUG LogInterceptor:41 -
401