activiti启动流程实例

/**
     * 启动流程实例
     */
    @Test
    public void testStartProcess(){
//        1、创建ProcessEngine
        ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
//        2、获取RunTimeService
        RuntimeService runtimeService = processEngine.getRuntimeService();
//        3、根据流程定义Id启动流程
        ProcessInstance processInstance = runtimeService
                .startProcessInstanceByKey("myLeave");
//        输出内容
        System.out.println("流程定义id:" + processInstance.getProcessDefinitionId());
        System.out.println("流程实例id:" + processInstance.getId());
        System.out.println("当前活动Id:" + processInstance.getActivityId());
    }

com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4 com.roy.ActivitiDemo,testStartProcess

2023-06-02 21:54:06,306 0     [           main] INFO  activiti.engine.ProcessEngines  - Initializing process engine using configuration 'file:/D:/workspace/20210614/ActivitiDemo/BasicDemo/target/classes/activiti.cfg.xml'

2023-06-02 21:54:06,307 1     [           main] INFO  activiti.engine.ProcessEngines  - initializing process engine for resource file:/D:/workspace/20210614/ActivitiDemo/BasicDemo/target/classes/activiti.cfg.xml

2023-06-02 21:54:06,539 233   [           main] DEBUG ry.xml.XmlBeanDefinitionReader  - Loaded 2 bean definitions from InputStream resource [resource loaded through InputStream]

2023-06-02 21:54:06,541 235   [           main] DEBUG ort.DefaultListableBeanFactory  - Creating shared instance of singleton bean 'processEngineConfiguration'

2023-06-02 21:54:06,788 482   [           main] DEBUG ort.DefaultListableBeanFactory  - Creating shared instance of singleton bean 'dataSource'

2023-06-02 21:54:08,831 2525  [           main] DEBUG ProcessEngineConfigurationImpl  - database product name: 'MySQL'

2023-06-02 21:54:08,831 2525  [           main] DEBUG ProcessEngineConfigurationImpl  - using database type: mysql

2023-06-02 21:54:08,935 2629  [           main] DEBUG ache.ibatis.logging.LogFactory  - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by org.apache.ibatis.reflection.Reflector (file:/D:/studysoftware/mavenRepository-gpidea/org/mybatis/mybatis/3.4.5/mybatis-3.4.5.jar) to method java.lang.Object.finalize()

WARNING: Please consider reporting this to the maintainers of org.apache.ibatis.reflection.Reflector

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

2023-06-02 21:54:09,810 3504  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-02 21:54:09,810 3504  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- starting SchemaOperationsProcessEngineBuild --------------------------------------------------------

2023-06-02 21:54:09,814 3508  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.interceptor.CommandInvoker$1 added to agenda

2023-06-02 21:54:09,821 3515  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - Executing performSchemaOperationsProcessEngineBuild with setting true

2023-06-02 21:54:09,821 3515  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Opening JDBC Connection

2023-06-02 21:54:09,834 3528  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Setting autocommit to false on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-02 21:54:09,876 3570  [           main] DEBUG pertyEntityImpl.selectProperty  - ==>  Preparing: select * from ACT_GE_PROPERTY where NAME_ = ? 

2023-06-02 21:54:09,902 3596  [           main] DEBUG pertyEntityImpl.selectProperty  - ==> Parameters: schema.version(String)

2023-06-02 21:54:09,928 3622  [           main] DEBUG pertyEntityImpl.selectProperty  - <==      Total: 1

2023-06-02 21:54:09,945 3639  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - Flushing dbSqlSession

2023-06-02 21:54:09,945 3639  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - flush summary: 0 insert, 0 update, 0 delete.

2023-06-02 21:54:09,945 3639  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - now executing flush...

2023-06-02 21:54:09,945 3639  [           main] DEBUG aloneMybatisTransactionContext  - firing event committing...

2023-06-02 21:54:09,945 3639  [           main] DEBUG aloneMybatisTransactionContext  - committing the ibatis sql session...

2023-06-02 21:54:09,946 3640  [           main] DEBUG aloneMybatisTransactionContext  - firing event committed...

2023-06-02 21:54:09,946 3640  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Resetting autocommit to true on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-02 21:54:09,949 3643  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Closing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-02 21:54:09,949 3643  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- SchemaOperationsProcessEngineBuild finished --------------------------------------------------------

2023-06-02 21:54:09,949 3643  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-02 21:54:09,949 3643  [           main] INFO  .engine.impl.ProcessEngineImpl  - ProcessEngine default created

2023-06-02 21:54:09,956 3650  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-02 21:54:09,956 3650  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- starting ValidateExecutionRelatedEntityCountCfgCmd --------------------------------------------------------

2023-06-02 21:54:09,956 3650  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.interceptor.CommandInvoker$1 added to agenda

2023-06-02 21:54:09,956 3650  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Opening JDBC Connection

2023-06-02 21:54:09,957 3651  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Setting autocommit to false on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-02 21:54:09,958 3652  [           main] DEBUG pertyEntityImpl.selectProperty  - ==>  Preparing: select * from ACT_GE_PROPERTY where NAME_ = ? 

2023-06-02 21:54:09,958 3652  [           main] DEBUG pertyEntityImpl.selectProperty  - ==> Parameters: cfg.execution-related-entities-count(String)

2023-06-02 21:54:09,959 3653  [           main] DEBUG pertyEntityImpl.selectProperty  - <==      Total: 1

2023-06-02 21:54:09,960 3654  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - Flushing dbSqlSession

2023-06-02 21:54:09,960 3654  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - flush summary: 0 insert, 0 update, 0 delete.

2023-06-02 21:54:09,960 3654  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - now executing flush...

2023-06-02 21:54:09,960 3654  [           main] DEBUG aloneMybatisTransactionContext  - firing event committing...

2023-06-02 21:54:09,960 3654  [           main] DEBUG aloneMybatisTransactionContext  - committing the ibatis sql session...

2023-06-02 21:54:09,960 3654  [           main] DEBUG aloneMybatisTransactionContext  - firing event committed...

2023-06-02 21:54:09,961 3655  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Resetting autocommit to true on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-02 21:54:09,961 3655  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Closing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-02 21:54:09,962 3656  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- ValidateExecutionRelatedEntityCountCfgCmd finished --------------------------------------------------------

2023-06-02 21:54:09,962 3656  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-02 21:54:09,962 3656  [           main] INFO  activiti.engine.ProcessEngines  - initialised process engine default

2023-06-02 21:54:09,964 3658  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-02 21:54:09,964 3658  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- starting StartProcessInstanceCmd --------------------------------------------------------

2023-06-02 21:54:09,964 3658  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.interceptor.CommandInvoker$1 added to agenda

2023-06-02 21:54:09,964 3658  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Opening JDBC Connection

2023-06-02 21:54:09,965 3659  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Setting autocommit to false on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-02 21:54:09,966 3660  [           main] DEBUG ctLatestProcessDefinitionByKey  - ==>  Preparing: select * from ACT_RE_PROCDEF where KEY_ = ? and (TENANT_ID_ = '' or TENANT_ID_ is null) and VERSION_ = (select max(VERSION_) from ACT_RE_PROCDEF where KEY_ = ? and (TENANT_ID_ = '' or TENANT_ID_ is null)) 

2023-06-02 21:54:09,967 3661  [           main] DEBUG ctLatestProcessDefinitionByKey  - ==> Parameters: myLeave(String), myLeave(String)

2023-06-02 21:54:09,975 3669  [           main] DEBUG ctLatestProcessDefinitionByKey  - <==      Total: 1

2023-06-02 21:54:09,975 3669  [           main] DEBUG entEntityImpl.selectDeployment  - ==>  Preparing: select * from ACT_RE_DEPLOYMENT where ID_ = ? 

2023-06-02 21:54:09,976 3670  [           main] DEBUG entEntityImpl.selectDeployment  - ==> Parameters: 72501(String)

2023-06-02 21:54:09,982 3676  [           main] DEBUG entEntityImpl.selectDeployment  - <==      Total: 1

2023-06-02 21:54:09,982 3676  [           main] DEBUG mpl.bpmn.deployer.BpmnDeployer  - Processing deployment ??????

2023-06-02 21:54:09,983 3677  [           main] DEBUG .selectResourcesByDeploymentId  - ==>  Preparing: select * from ACT_GE_BYTEARRAY where DEPLOYMENT_ID_ = ? order by NAME_ asc 

2023-06-02 21:54:09,983 3677  [           main] DEBUG .selectResourcesByDeploymentId  - ==> Parameters: 72501(String)

2023-06-02 21:54:09,992 3686  [           main] DEBUG .selectResourcesByDeploymentId  - <==      Total: 2

2023-06-02 21:54:09,992 3686  [           main] DEBUG ployer.ParsedDeploymentBuilder  - Processing BPMN resource bpmn/Leave.bpmn

2023-06-02 21:54:10,061 3755  [           main] DEBUG er.handler.ProcessParseHandler  - Parsing process myLeave

2023-06-02 21:54:10,066 3760  [           main] DEBUG ssDefinitionByDeploymentAndKey  - ==>  Preparing: select * from ACT_RE_PROCDEF where DEPLOYMENT_ID_ = ? and KEY_ = ? and (TENANT_ID_ = '' or TENANT_ID_ is null) 

2023-06-02 21:54:10,067 3761  [           main] DEBUG ssDefinitionByDeploymentAndKey  - ==> Parameters: 72501(String), myLeave(String)

2023-06-02 21:54:10,068 3762  [           main] DEBUG ssDefinitionByDeploymentAndKey  - <==      Total: 1

2023-06-02 21:54:10,069 3763  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-02 21:54:10,069 3763  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- starting GetProcessDefinitionInfoCmd --------------------------------------------------------

2023-06-02 21:54:10,069 3763  [           main] DEBUG ptor.CommandContextInterceptor  - Valid context found. Reusing it for the current command 'org.activiti.engine.impl.cmd.GetProcessDefinitionInfoCmd'

2023-06-02 21:54:10,069 3763  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.interceptor.CommandInvoker$1 added to agenda

2023-06-02 21:54:10,071 3765  [           main] DEBUG itionInfoByProcessDefinitionId  - ==>  Preparing: select * from ACT_PROCDEF_INFO where PROC_DEF_ID_ = ? 

2023-06-02 21:54:10,071 3765  [           main] DEBUG itionInfoByProcessDefinitionId  - ==> Parameters: myLeave:3:72504(String)

2023-06-02 21:54:10,076 3770  [           main] DEBUG itionInfoByProcessDefinitionId  - <==      Total: 0

2023-06-02 21:54:10,076 3770  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- GetProcessDefinitionInfoCmd finished --------------------------------------------------------

2023-06-02 21:54:10,076 3770  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-02 21:54:10,078 3772  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-02 21:54:10,078 3772  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- starting GetNextIdBlockCmd --------------------------------------------------------

2023-06-02 21:54:10,078 3772  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.interceptor.CommandInvoker$1 added to agenda

2023-06-02 21:54:10,078 3772  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Opening JDBC Connection

2023-06-02 21:54:10,114 3808  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Setting autocommit to false on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-02 21:54:10,115 3809  [           main] DEBUG pertyEntityImpl.selectProperty  - ==>  Preparing: select * from ACT_GE_PROPERTY where NAME_ = ? 

2023-06-02 21:54:10,115 3809  [           main] DEBUG pertyEntityImpl.selectProperty  - ==> Parameters: next.dbid(String)

2023-06-02 21:54:10,123 3817  [           main] DEBUG pertyEntityImpl.selectProperty  - <==      Total: 1

2023-06-02 21:54:10,125 3819  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - Flushing dbSqlSession

2023-06-02 21:54:10,125 3819  [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   update PropertyEntity[name=next.dbid, value=77501]

2023-06-02 21:54:10,125 3819  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - flush summary: 0 insert, 1 update, 0 delete.

2023-06-02 21:54:10,125 3819  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - now executing flush...

2023-06-02 21:54:10,125 3819  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - updating: PropertyEntity[name=next.dbid, value=77501]

2023-06-02 21:54:10,126 3820  [           main] DEBUG pertyEntityImpl.updateProperty  - ==>  Preparing: update ACT_GE_PROPERTY SET REV_ = ?, VALUE_ = ? where NAME_ = ? and REV_ = ? 

2023-06-02 21:54:10,127 3821  [           main] DEBUG pertyEntityImpl.updateProperty  - ==> Parameters: 32(Integer), 77501(String), next.dbid(String), 31(Integer)

2023-06-02 21:54:10,145 3839  [           main] DEBUG pertyEntityImpl.updateProperty  - <==    Updates: 1

2023-06-02 21:54:10,145 3839  [           main] DEBUG aloneMybatisTransactionContext  - firing event committing...

2023-06-02 21:54:10,145 3839  [           main] DEBUG aloneMybatisTransactionContext  - committing the ibatis sql session...

2023-06-02 21:54:10,146 3840  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Committing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-02 21:54:10,208 3902  [           main] DEBUG aloneMybatisTransactionContext  - firing event committed...

2023-06-02 21:54:10,209 3903  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Resetting autocommit to true on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-02 21:54:10,209 3903  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Closing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-02 21:54:10,209 3903  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- GetNextIdBlockCmd finished --------------------------------------------------------

2023-06-02 21:54:10,210 3904  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-02 21:54:10,210 3904  [           main] DEBUG .history.DefaultHistoryManager  - Current history level: AUDIT, level required: ACTIVITY

2023-06-02 21:54:10,210 3904  [           main] DEBUG ity.ExecutionEntityManagerImpl  - Child execution Execution[ id '75002' ] - parent '75001' created with parent 75001

2023-06-02 21:54:10,211 3905  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.agenda.ContinueProcessOperation added to agenda

2023-06-02 21:54:10,211 3905  [           main] DEBUG mpl.interceptor.CommandInvoker  - Executing operation class org.activiti.engine.impl.agenda.ContinueProcessOperation

2023-06-02 21:54:10,211 3905  [           main] DEBUG .history.DefaultHistoryManager  - Current history level: AUDIT, level required: ACTIVITY

2023-06-02 21:54:10,211 3905  [           main] DEBUG genda.ContinueProcessOperation  - Executing activityBehavior class org.activiti.engine.impl.bpmn.behavior.NoneStartEventActivityBehavior on activity '_2' with execution 75002

2023-06-02 21:54:10,223 3917  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.agenda.TakeOutgoingSequenceFlowsOperation added to agenda

2023-06-02 21:54:10,223 3917  [           main] DEBUG mpl.interceptor.CommandInvoker  - Executing operation class org.activiti.engine.impl.agenda.TakeOutgoingSequenceFlowsOperation

2023-06-02 21:54:10,223 3917  [           main] DEBUG .history.DefaultHistoryManager  - Current history level: AUDIT, level required: ACTIVITY

2023-06-02 21:54:10,223 3917  [           main] DEBUG OutgoingSequenceFlowsOperation  - Leaving flow node class org.activiti.bpmn.model.StartEvent with id '_2' by following it's 1 outgoing sequenceflow

2023-06-02 21:54:10,228 3922  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.agenda.ContinueProcessOperation added to agenda

2023-06-02 21:54:10,228 3922  [           main] DEBUG mpl.interceptor.CommandInvoker  - Executing operation class org.activiti.engine.impl.agenda.ContinueProcessOperation

2023-06-02 21:54:10,229 3923  [           main] DEBUG genda.ContinueProcessOperation  - Sequence flow '_7' encountered. Continuing process by following it using execution 75002

2023-06-02 21:54:10,229 3923  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.agenda.ContinueProcessOperation added to agenda

2023-06-02 21:54:10,229 3923  [           main] DEBUG mpl.interceptor.CommandInvoker  - Executing operation class org.activiti.engine.impl.agenda.ContinueProcessOperation

2023-06-02 21:54:10,229 3923  [           main] DEBUG .history.DefaultHistoryManager  - Current history level: AUDIT, level required: ACTIVITY

2023-06-02 21:54:10,229 3923  [           main] DEBUG genda.ContinueProcessOperation  - Executing activityBehavior class org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior on activity '_3' with execution 75002

2023-06-02 21:54:10,248 3942  [           main] DEBUG .history.DefaultHistoryManager  - Current history level: AUDIT, level required: AUDIT

2023-06-02 21:54:10,248 3942  [           main] DEBUG .history.DefaultHistoryManager  - Current history level: AUDIT, level required: AUDIT

2023-06-02 21:54:10,248 3942  [           main] DEBUG .history.DefaultHistoryManager  - Current history level: AUDIT, level required: ACTIVITY

2023-06-02 21:54:10,249 3943  [           main] DEBUG .history.DefaultHistoryManager  - Current history level: AUDIT, level required: ACTIVITY

2023-06-02 21:54:10,249 3943  [           main] DEBUG .history.DefaultHistoryManager  - Current history level: AUDIT, level required: ACTIVITY

2023-06-02 21:54:10,249 3943  [           main] DEBUG .history.DefaultHistoryManager  - Current history level: AUDIT, level required: AUDIT

2023-06-02 21:54:10,249 3943  [           main] DEBUG .history.DefaultHistoryManager  - Current history level: AUDIT, level required: AUDIT

2023-06-02 21:54:10,250 3944  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.agenda.ExecuteInactiveBehaviorsOperation added to agenda

2023-06-02 21:54:10,250 3944  [           main] DEBUG mpl.interceptor.CommandInvoker  - Executing operation class org.activiti.engine.impl.agenda.ExecuteInactiveBehaviorsOperation

2023-06-02 21:54:10,250 3944  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - Flushing dbSqlSession

2023-06-02 21:54:10,251 3945  [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   insert org.activiti.engine.impl.persistence.entity.HistoricIdentityLinkEntityImpl@7f1ef916

2023-06-02 21:54:10,251 3945  [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   insert ProcessInstance[75001]

2023-06-02 21:54:10,251 3945  [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   insert Execution[ id '75002' ] - activity '_3 - parent '75001'

2023-06-02 21:54:10,251 3945  [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   insert HistoricProcessInstanceEntity[superProcessInstanceId=null]

2023-06-02 21:54:10,251 3945  [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   insert org.activiti.engine.impl.persistence.entity.HistoricTaskInstanceEntityImpl@1886991b

2023-06-02 21:54:10,251 3945  [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   insert HistoricActivityInstanceEntity[id=75003, activityId=_2, activityName=StartEvent]

2023-06-02 21:54:10,251 3945  [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   insert HistoricActivityInstanceEntity[id=75004, activityId=_3, activityName=提交请假申请]

2023-06-02 21:54:10,251 3945  [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   insert Task[id=75005, name=提交请假申请]

2023-06-02 21:54:10,251 3945  [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   insert IdentityLinkEntity[id=75006, type=participant, userId=worker, processInstanceId=75001]

2023-06-02 21:54:10,251 3945  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - flush summary: 9 insert, 0 update, 0 delete.

2023-06-02 21:54:10,251 3945  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - now executing flush...

2023-06-02 21:54:10,251 3945  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - inserting: org.activiti.engine.impl.persistence.entity.HistoricTaskInstanceEntityImpl@1886991b

2023-06-02 21:54:10,251 3945  [           main] DEBUG mpl.insertHistoricTaskInstance  - ==>  Preparing: insert into ACT_HI_TASKINST ( ID_, PROC_DEF_ID_, PROC_INST_ID_, EXECUTION_ID_, NAME_, PARENT_TASK_ID_, DESCRIPTION_, OWNER_, ASSIGNEE_, START_TIME_, CLAIM_TIME_, END_TIME_, DURATION_, DELETE_REASON_, TASK_DEF_KEY_, FORM_KEY_, PRIORITY_, DUE_DATE_, CATEGORY_, TENANT_ID_ ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) 

2023-06-02 21:54:10,255 3949  [           main] DEBUG mpl.insertHistoricTaskInstance  - ==> Parameters: 75005(String), myLeave:3:72504(String), 75001(String), 75002(String), 提交请假申请(String), null, null, null, worker(String), 2023-06-02 21:54:10.248(Timestamp), null, null, null, null, _3(String), null, 50(Integer), null, null, (String)

2023-06-02 21:54:10,292 3986  [           main] DEBUG mpl.insertHistoricTaskInstance  - <==    Updates: 1

2023-06-02 21:54:10,292 3986  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - inserting: HistoricProcessInstanceEntity[superProcessInstanceId=null]

2023-06-02 21:54:10,292 3986  [           main] DEBUG .insertHistoricProcessInstance  - ==>  Preparing: insert into ACT_HI_PROCINST ( ID_, PROC_INST_ID_, BUSINESS_KEY_, PROC_DEF_ID_, START_TIME_, END_TIME_, DURATION_, START_USER_ID_, START_ACT_ID_, END_ACT_ID_, SUPER_PROCESS_INSTANCE_ID_, DELETE_REASON_, TENANT_ID_, NAME_ ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) 

2023-06-02 21:54:10,294 3988  [           main] DEBUG .insertHistoricProcessInstance  - ==> Parameters: 75001(String), 75001(String), null, myLeave:3:72504(String), 2023-06-02 21:54:10.077(Timestamp), null, null, null, _2(String), null, null, null, (String), null

2023-06-02 21:54:10,321 4015  [           main] DEBUG .insertHistoricProcessInstance  - <==    Updates: 1

2023-06-02 21:54:10,358 4052  [           main] DEBUG InsertHistoricActivityInstance  - ==>  Preparing: insert into ACT_HI_ACTINST ( ID_, PROC_DEF_ID_, PROC_INST_ID_, EXECUTION_ID_, ACT_ID_, TASK_ID_, CALL_PROC_INST_ID_, ACT_NAME_, ACT_TYPE_, ASSIGNEE_, START_TIME_, END_TIME_, DURATION_, DELETE_REASON_, TENANT_ID_ ) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) , (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) 

2023-06-02 21:54:10,359 4053  [           main] DEBUG InsertHistoricActivityInstance  - ==> Parameters: 75003(String), myLeave:3:72504(String), 75001(String), 75002(String), _2(String), null, null, StartEvent(String), startEvent(String), null, 2023-06-02 21:54:10.211(Timestamp), 2023-06-02 21:54:10.223(Timestamp), 12(Long), null, (String), 75004(String), myLeave:3:72504(String), 75001(String), 75002(String), _3(String), 75005(String), null, 提交请假申请(String), userTask(String), worker(String), 2023-06-02 21:54:10.229(Timestamp), null, null, null, (String)

2023-06-02 21:54:10,380 4074  [           main] DEBUG InsertHistoricActivityInstance  - <==    Updates: 2

2023-06-02 21:54:10,380 4074  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - inserting: org.activiti.engine.impl.persistence.entity.HistoricIdentityLinkEntityImpl@7f1ef916

2023-06-02 21:54:10,381 4075  [           main] DEBUG mpl.insertHistoricIdentityLink  - ==>  Preparing: insert into ACT_HI_IDENTITYLINK (ID_, TYPE_, USER_ID_, GROUP_ID_, TASK_ID_, PROC_INST_ID_) values (?, ?, ?, ?, ?, ?) 

2023-06-02 21:54:10,382 4076  [           main] DEBUG mpl.insertHistoricIdentityLink  - ==> Parameters: 75006(String), participant(String), worker(String), null, null, 75001(String)

2023-06-02 21:54:10,399 4093  [           main] DEBUG mpl.insertHistoricIdentityLink  - <==    Updates: 1

2023-06-02 21:54:10,401 4095  [           main] DEBUG EntityImpl.bulkInsertExecution  - ==>  Preparing: insert into ACT_RU_EXECUTION (ID_, REV_, PROC_INST_ID_, BUSINESS_KEY_, PROC_DEF_ID_, ACT_ID_, IS_ACTIVE_, IS_CONCURRENT_, IS_SCOPE_,IS_EVENT_SCOPE_, IS_MI_ROOT_, PARENT_ID_, SUPER_EXEC_, ROOT_PROC_INST_ID_, SUSPENSION_STATE_, TENANT_ID_, NAME_, START_TIME_, START_USER_ID_, IS_COUNT_ENABLED_, EVT_SUBSCR_COUNT_, TASK_COUNT_, JOB_COUNT_, TIMER_JOB_COUNT_, SUSP_JOB_COUNT_, DEADLETTER_JOB_COUNT_, VAR_COUNT_, ID_LINK_COUNT_, APP_VERSION_) values (?, 1, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) , (?, 1, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) 

2023-06-02 21:54:10,405 4099  [           main] DEBUG EntityImpl.bulkInsertExecution  - ==> Parameters: 75001(String), 75001(String), null, myLeave:3:72504(String), null, true(Boolean), false(Boolean), true(Boolean), false(Boolean), false(Boolean), null, null, 75001(String), 1(Integer), (String), null, 2023-06-02 21:54:10.077(Timestamp), null, false(Boolean), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), null, 75002(String), 75001(String), null, myLeave:3:72504(String), _3(String), true(Boolean), false(Boolean), false(Boolean), false(Boolean), false(Boolean), 75001(String), null, 75001(String), 1(Integer), (String), null, 2023-06-02 21:54:10.21(Timestamp), null, false(Boolean), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), null

2023-06-02 21:54:10,430 4124  [           main] DEBUG EntityImpl.bulkInsertExecution  - <==    Updates: 2

2023-06-02 21:54:10,430 4124  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - inserting: Task[id=75005, name=提交请假申请]

2023-06-02 21:54:10,431 4125  [           main] DEBUG tity.TaskEntityImpl.insertTask  - ==>  Preparing: insert into ACT_RU_TASK (ID_, REV_, NAME_, BUSINESS_KEY_, PARENT_TASK_ID_, DESCRIPTION_, PRIORITY_, CREATE_TIME_, OWNER_, ASSIGNEE_, DELEGATION_, EXECUTION_ID_, PROC_INST_ID_, PROC_DEF_ID_, TASK_DEF_KEY_, DUE_DATE_, CATEGORY_, SUSPENSION_STATE_, TENANT_ID_, FORM_KEY_, CLAIM_TIME_, APP_VERSION_) values (?, 1, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) 

2023-06-02 21:54:10,432 4126  [           main] DEBUG tity.TaskEntityImpl.insertTask  - ==> Parameters: 75005(String), 提交请假申请(String), null, null, null, 50(Integer), 2023-06-02 21:54:10.229(Timestamp), null, worker(String), null, 75002(String), 75001(String), myLeave:3:72504(String), _3(String), null, null, 1(Integer), (String), null, null, null

2023-06-02 21:54:10,438 4132  [           main] DEBUG tity.TaskEntityImpl.insertTask  - <==    Updates: 1

2023-06-02 21:54:10,438 4132  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - inserting: IdentityLinkEntity[id=75006, type=participant, userId=worker, processInstanceId=75001]

2023-06-02 21:54:10,439 4133  [           main] DEBUG kEntityImpl.insertIdentityLink  - ==>  Preparing: insert into ACT_RU_IDENTITYLINK (ID_, REV_, TYPE_, USER_ID_, GROUP_ID_, TASK_ID_, PROC_INST_ID_, PROC_DEF_ID_) values (?, 1, ?, ?, ?, ?, ?, ?) 

2023-06-02 21:54:10,439 4133  [           main] DEBUG kEntityImpl.insertIdentityLink  - ==> Parameters: 75006(String), participant(String), worker(String), null, null, 75001(String), null

2023-06-02 21:54:10,460 4154  [           main] DEBUG kEntityImpl.insertIdentityLink  - <==    Updates: 1

2023-06-02 21:54:10,460 4154  [           main] DEBUG aloneMybatisTransactionContext  - firing event committing...

2023-06-02 21:54:10,460 4154  [           main] DEBUG aloneMybatisTransactionContext  - committing the ibatis sql session...

2023-06-02 21:54:10,461 4155  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Committing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-02 21:54:10,488 4182  [           main] DEBUG aloneMybatisTransactionContext  - firing event committed...

2023-06-02 21:54:10,489 4183  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Resetting autocommit to true on JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-02 21:54:10,490 4184  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Closing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-02 21:54:10,491 4185  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- StartProcessInstanceCmd finished --------------------------------------------------------

2023-06-02 21:54:10,491 4185  [           main] DEBUG mpl.interceptor.LogInterceptor  -

流程定义id:myLeave:3:72504

流程实例id:75001

当前活动Id:null

Process finished with exit code 0

你可能感兴趣的:(activiti,单元测试,java)