挂起、激活单个流程实例

这篇具有很好参考价值的文章主要介绍了挂起、激活单个流程实例。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

类:com.roy.ActivitiBusinessDemo

/**
     * 挂起、激活单个流程实例
     */
    @Test
    public void suspendSingleProcessInstance(){
//        1、获取流程引擎
        ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
//        2、RuntimeService
        RuntimeService runtimeService = processEngine.getRuntimeService();
//        3、通过RuntimeService获取流程实例对象
        ProcessInstance instance = runtimeService.createProcessInstanceQuery()
                .processInstanceId("85001")
                .singleResult();
//        4、得到当前流程实例的暂停状态,true-已暂停  false -激活
        boolean suspended = instance.isSuspended();
//        5、获取流程实例id
        String instanceId = instance.getId();
//        6、判断是否已经暂停,如果已经暂停,就执行激活操作
        if(suspended){
//            如果已经暂停,就执行激活
            runtimeService.activateProcessInstanceById(instanceId);
            System.out.println("流程实例id:"+instanceId+"已经激活");
        }else {
//        7、如果是激活状态,就执行暂停操作
            runtimeService.suspendProcessInstanceById(instanceId);
            System.out.println("流程实例id:"+instanceId+"已经暂停");
        }
    }

挂起、激活单个流程实例

挂起、激活单个流程实例

2023-06-05 22:12:34,466 0     [           main] INFO  activiti.engine.ProcessEngines  - Initializing process engine using configuration 'file:/D:/workspace/20210614/ActivitiDemo/BasicDemo/target/classes/activiti.cfg.xml'

2023-06-05 22:12:34,468 2     [           main] INFO  activiti.engine.ProcessEngines  - initializing process engine for resource file:/D:/workspace/20210614/ActivitiDemo/BasicDemo/target/classes/activiti.cfg.xml

2023-06-05 22:12:34,987 521   [           main] DEBUG ry.xml.XmlBeanDefinitionReader  - Loaded 2 bean definitions from InputStream resource [resource loaded through InputStream]

2023-06-05 22:12:34,989 523   [           main] DEBUG ort.DefaultListableBeanFactory  - Creating shared instance of singleton bean 'processEngineConfiguration'

2023-06-05 22:12:35,437 971   [           main] DEBUG ort.DefaultListableBeanFactory  - Creating shared instance of singleton bean 'dataSource'

2023-06-05 22:12:39,153 4687  [           main] DEBUG ProcessEngineConfigurationImpl  - database product name: 'MySQL'

2023-06-05 22:12:39,153 4687  [           main] DEBUG ProcessEngineConfigurationImpl  - using database type: mysql

2023-06-05 22:12:39,393 4927  [           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-05 22:12:41,069 6603  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:12:41,069 6603  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- starting SchemaOperationsProcessEngineBuild --------------------------------------------------------

2023-06-05 22:12:41,078 6612  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.interceptor.CommandInvoker$1 added to agenda

2023-06-05 22:12:41,089 6623  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - Executing performSchemaOperationsProcessEngineBuild with setting true

2023-06-05 22:12:41,089 6623  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Opening JDBC Connection

2023-06-05 22:12:41,111 6645  [           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-05 22:12:41,181 6715  [           main] DEBUG pertyEntityImpl.selectProperty  - ==>  Preparing: select * from ACT_GE_PROPERTY where NAME_ = ? 

2023-06-05 22:12:41,219 6753  [           main] DEBUG pertyEntityImpl.selectProperty  - ==> Parameters: schema.version(String)

2023-06-05 22:12:41,267 6801  [           main] DEBUG pertyEntityImpl.selectProperty  - <==      Total: 1

2023-06-05 22:12:41,299 6833  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - Flushing dbSqlSession

2023-06-05 22:12:41,299 6833  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - flush summary: 0 insert, 0 update, 0 delete.

2023-06-05 22:12:41,299 6833  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - now executing flush...

2023-06-05 22:12:41,299 6833  [           main] DEBUG aloneMybatisTransactionContext  - firing event committing...

2023-06-05 22:12:41,300 6834  [           main] DEBUG aloneMybatisTransactionContext  - committing the ibatis sql session...

2023-06-05 22:12:41,300 6834  [           main] DEBUG aloneMybatisTransactionContext  - firing event committed...

2023-06-05 22:12:41,301 6835  [           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-05 22:12:41,302 6836  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Closing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:12:41,302 6836  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- SchemaOperationsProcessEngineBuild finished --------------------------------------------------------

2023-06-05 22:12:41,302 6836  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:12:41,302 6836  [           main] INFO  .engine.impl.ProcessEngineImpl  - ProcessEngine default created

2023-06-05 22:12:41,322 6856  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:12:41,322 6856  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- starting ValidateExecutionRelatedEntityCountCfgCmd --------------------------------------------------------

2023-06-05 22:12:41,322 6856  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.interceptor.CommandInvoker$1 added to agenda

2023-06-05 22:12:41,322 6856  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Opening JDBC Connection

2023-06-05 22:12:41,325 6859  [           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-05 22:12:41,326 6860  [           main] DEBUG pertyEntityImpl.selectProperty  - ==>  Preparing: select * from ACT_GE_PROPERTY where NAME_ = ? 

2023-06-05 22:12:41,326 6860  [           main] DEBUG pertyEntityImpl.selectProperty  - ==> Parameters: cfg.execution-related-entities-count(String)

2023-06-05 22:12:41,327 6861  [           main] DEBUG pertyEntityImpl.selectProperty  - <==      Total: 1

2023-06-05 22:12:41,327 6861  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - Flushing dbSqlSession

2023-06-05 22:12:41,327 6861  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - flush summary: 0 insert, 0 update, 0 delete.

2023-06-05 22:12:41,327 6861  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - now executing flush...

2023-06-05 22:12:41,327 6861  [           main] DEBUG aloneMybatisTransactionContext  - firing event committing...

2023-06-05 22:12:41,327 6861  [           main] DEBUG aloneMybatisTransactionContext  - committing the ibatis sql session...

2023-06-05 22:12:41,328 6862  [           main] DEBUG aloneMybatisTransactionContext  - firing event committed...

2023-06-05 22:12:41,328 6862  [           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-05 22:12:41,330 6864  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Closing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:12:41,330 6864  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- ValidateExecutionRelatedEntityCountCfgCmd finished --------------------------------------------------------

2023-06-05 22:12:41,330 6864  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:12:41,330 6864  [           main] INFO  activiti.engine.ProcessEngines  - initialised process engine default

2023-06-05 22:12:41,335 6869  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:12:41,335 6869  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- starting ProcessInstanceQueryImpl --------------------------------------------------------

2023-06-05 22:12:41,335 6869  [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.interceptor.CommandInvoker$1 added to agenda

2023-06-05 22:12:41,620 7154  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Opening JDBC Connection

2023-06-05 22:12:41,621 7155  [           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-05 22:12:41,621 7155  [           main] DEBUG ProcessInstanceByQueryCriteria  - ==>  Preparing: select distinct RES.* , P.KEY_ as ProcessDefinitionKey, P.ID_ as ProcessDefinitionId, P.NAME_ as ProcessDefinitionName, P.VERSION_ as ProcessDefinitionVersion, P.DEPLOYMENT_ID_ as DeploymentId, S.PROC_INST_ID_ AS PARENT_PROC_INST_ID_ from ACT_RU_EXECUTION RES inner join ACT_RE_PROCDEF P on RES.PROC_DEF_ID_ = P.ID_ left outer join ACT_RU_EXECUTION S on RES.SUPER_EXEC_ = S.ID_ WHERE RES.PARENT_ID_ is null and RES.ID_ = ? and RES.PROC_INST_ID_ = ? order by RES.ID_ asc LIMIT ? OFFSET ? 

2023-06-05 22:12:41,622 7156  [           main] DEBUG ProcessInstanceByQueryCriteria  - ==> Parameters: 85001(String), 85001(String), 2147483647(Integer), 0(Integer)

2023-06-05 22:12:41,639 7173  [           main] DEBUG ProcessInstanceByQueryCriteria  - <==      Total: 1

2023-06-05 22:12:41,640 7174  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - Flushing dbSqlSession

2023-06-05 22:12:41,641 7175  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - flush summary: 0 insert, 0 update, 0 delete.

2023-06-05 22:12:41,642 7176  [           main] DEBUG ti.engine.impl.db.DbSqlSession  - now executing flush...

2023-06-05 22:12:41,643 7177  [           main] DEBUG aloneMybatisTransactionContext  - firing event committing...

2023-06-05 22:12:41,643 7177  [           main] DEBUG aloneMybatisTransactionContext  - committing the ibatis sql session...

2023-06-05 22:12:41,643 7177  [           main] DEBUG aloneMybatisTransactionContext  - firing event committed...

2023-06-05 22:12:41,646 7180  [           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-05 22:12:41,647 7181  [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Closing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:12:41,648 7182  [           main] DEBUG mpl.interceptor.LogInterceptor  - --- ProcessInstanceQueryImpl finished --------------------------------------------------------

2023-06-05 22:12:41,648 7182  [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:13:57,682 83216 [           main] DEBUG mpl.interceptor.LogInterceptor  -

2023-06-05 22:13:58,752 84286 [           main] DEBUG mpl.interceptor.LogInterceptor  - --- starting SuspendProcessInstanceCmd --------------------------------------------------------

2023-06-05 22:14:03,703 89237 [           main] DEBUG da.DefaultActivitiEngineAgenda  - Operation class org.activiti.engine.impl.interceptor.CommandInvoker$1 added to agenda

2023-06-05 22:14:03,705 89239 [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Opening JDBC Connection

2023-06-05 22:14:03,709 89243 [           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-05 22:14:03,715 89249 [           main] DEBUG tionEntityImpl.selectExecution  - ==>  Preparing: select E.*, S.PROC_INST_ID_ AS PARENT_PROC_INST_ID_ from ACT_RU_EXECUTION E LEFT OUTER JOIN ACT_RU_EXECUTION S ON E.SUPER_EXEC_ = S.ID_ where E.ID_ = ? 

2023-06-05 22:14:03,717 89251 [           main] DEBUG tionEntityImpl.selectExecution  - ==> Parameters: 85001(String)

2023-06-05 22:14:03,739 89273 [           main] DEBUG tionEntityImpl.selectExecution  - <==      Total: 1

2023-06-05 22:14:03,743 89277 [           main] DEBUG dExecutionsByProcessInstanceId  - ==>  Preparing: select E.*, S.PROC_INST_ID_ AS PARENT_PROC_INST_ID_ from ACT_RU_EXECUTION E LEFT OUTER JOIN ACT_RU_EXECUTION S ON E.SUPER_EXEC_ = S.ID_ where E.PROC_INST_ID_ = ? and E.PARENT_ID_ is not null 

2023-06-05 22:14:03,744 89278 [           main] DEBUG dExecutionsByProcessInstanceId  - ==> Parameters: 85001(String)

2023-06-05 22:14:03,766 89300 [           main] DEBUG dExecutionsByProcessInstanceId  - <==      Total: 1

2023-06-05 22:14:03,767 89301 [           main] DEBUG selectTasksByProcessInstanceId  - ==>  Preparing: select T.* from ACT_RU_TASK T where T.PROC_INST_ID_ = ? 

2023-06-05 22:14:03,768 89302 [           main] DEBUG selectTasksByProcessInstanceId  - ==> Parameters: 85001(String)

2023-06-05 22:14:03,783 89317 [           main] DEBUG selectTasksByProcessInstanceId  - <==      Total: 1

2023-06-05 22:14:03,784 89318 [           main] DEBUG ctTimerJobsByProcessInstanceId  - ==>  Preparing: select * from ACT_RU_TIMER_JOB J where J.PROCESS_INSTANCE_ID_ = ? 

2023-06-05 22:14:03,785 89319 [           main] DEBUG ctTimerJobsByProcessInstanceId  - ==> Parameters: 85001(String)

2023-06-05 22:14:03,796 89330 [           main] DEBUG ctTimerJobsByProcessInstanceId  - <==      Total: 0

2023-06-05 22:14:03,797 89331 [           main] DEBUG .selectJobsByProcessInstanceId  - ==>  Preparing: select * from ACT_RU_JOB J where J.PROCESS_INSTANCE_ID_ = ? 

2023-06-05 22:14:03,798 89332 [           main] DEBUG .selectJobsByProcessInstanceId  - ==> Parameters: 85001(String)

2023-06-05 22:14:03,808 89342 [           main] DEBUG .selectJobsByProcessInstanceId  - <==      Total: 0

2023-06-05 22:14:03,809 89343 [           main] DEBUG ti.engine.impl.db.DbSqlSession  - Flushing dbSqlSession

2023-06-05 22:14:03,809 89343 [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   update Task[id=85005, name=??????]

2023-06-05 22:14:03,810 89344 [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   update Execution[ id '85002' ] - activity '_3 - parent '85001'

2023-06-05 22:14:03,810 89344 [           main] DEBUG ti.engine.impl.db.DbSqlSession  -   update ProcessInstance[85001]

2023-06-05 22:14:03,810 89344 [           main] DEBUG ti.engine.impl.db.DbSqlSession  - flush summary: 0 insert, 3 update, 0 delete.

2023-06-05 22:14:03,810 89344 [           main] DEBUG ti.engine.impl.db.DbSqlSession  - now executing flush...

2023-06-05 22:14:03,811 89345 [           main] DEBUG ti.engine.impl.db.DbSqlSession  - updating: Task[id=85005, name=??????]

2023-06-05 22:14:03,819 89353 [           main] DEBUG tity.TaskEntityImpl.updateTask  - ==>  Preparing: update ACT_RU_TASK SET REV_ = ?, NAME_ = ?, BUSINESS_KEY_ = ?, PARENT_TASK_ID_ = ?, PRIORITY_ = ?, CREATE_TIME_ = ?, OWNER_ = ?, ASSIGNEE_ = ?, DELEGATION_ = ?, EXECUTION_ID_ = ?, PROC_DEF_ID_ = ?, DESCRIPTION_ = ?, DUE_DATE_ = ?, CATEGORY_ = ?, SUSPENSION_STATE_ = ?, FORM_KEY_ = ?, CLAIM_TIME_ = ? where ID_= ? and REV_ = ? 

2023-06-05 22:14:03,826 89360 [           main] DEBUG tity.TaskEntityImpl.updateTask  - ==> Parameters: 2(Integer), ??????(String), 1001(String), null, 50(Integer), 2023-06-05 22:00:22.844(Timestamp), null, worker(String), null, 85002(String), myLeave:3:72504(String), null, null, null, 2(Integer), null, null, 85005(String), 1(Integer)

2023-06-05 22:14:04,132 89666 [           main] DEBUG tity.TaskEntityImpl.updateTask  - <==    Updates: 1

2023-06-05 22:14:04,133 89667 [           main] DEBUG ti.engine.impl.db.DbSqlSession  - updating: Execution[ id '85002' ] - activity '_3 - parent '85001'

2023-06-05 22:14:04,135 89669 [           main] DEBUG tionEntityImpl.updateExecution  - ==>  Preparing: update ACT_RU_EXECUTION set REV_ = ?, 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_ = ?, NAME_ = ?, 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_ = ? where ID_ = ? and REV_ = ? 

2023-06-05 22:14:04,145 89679 [           main] DEBUG tionEntityImpl.updateExecution  - ==> Parameters: 2(Integer), null, myLeave:3:72504(String), _3(String), true(Boolean), false(Boolean), false(Boolean), false(Boolean), false(Boolean), 85001(String), null, 85001(String), 2(Integer), null, false(Boolean), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), null, 85002(String), 1(Integer)

2023-06-05 22:14:04,149 89683 [           main] DEBUG tionEntityImpl.updateExecution  - <==    Updates: 1

2023-06-05 22:14:04,149 89683 [           main] DEBUG ti.engine.impl.db.DbSqlSession  - updating: ProcessInstance[85001]

2023-06-05 22:14:04,151 89685 [           main] DEBUG tionEntityImpl.updateExecution  - ==>  Preparing: update ACT_RU_EXECUTION set REV_ = ?, 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_ = ?, NAME_ = ?, 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_ = ? where ID_ = ? and REV_ = ?

2023-06-05 22:14:04,162 89696 [           main] DEBUG tionEntityImpl.updateExecution  - ==> Parameters: 2(Integer), 1001(String), myLeave:3:72504(String), null, true(Boolean), false(Boolean), true(Boolean), false(Boolean), false(Boolean), null, null, 85001(String), 2(Integer), null, false(Boolean), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), 0(Integer), null, 85001(String), 1(Integer)

2023-06-05 22:14:04,168 89702 [           main] DEBUG tionEntityImpl.updateExecution  - <==    Updates: 1

2023-06-05 22:14:04,168 89702 [           main] DEBUG aloneMybatisTransactionContext  - firing event committing...

2023-06-05 22:14:04,168 89702 [           main] DEBUG aloneMybatisTransactionContext  - committing the ibatis sql session...

2023-06-05 22:14:04,171 89705 [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Committing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:14:04,211 89745 [           main] DEBUG aloneMybatisTransactionContext  - firing event committed...

2023-06-05 22:14:04,213 89747 [           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-05 22:14:04,219 89753 [           main] DEBUG ansaction.jdbc.JdbcTransaction  - Closing JDBC Connection [jdbc:mysql://localhost:3306/activiti?serverTimezone=GMT%2B8, UserName=root@localhost, MySQL Connector/J]

2023-06-05 22:14:06,024 91558 [           main] DEBUG mpl.interceptor.LogInterceptor  - --- SuspendProcessInstanceCmd finished --------------------------------------------------------

2023-06-05 22:14:08,920 94454 [           main] DEBUG mpl.interceptor.LogInterceptor  -

流程实例id:85001已经暂停

Disconnected from the target VM, address: '127.0.0.1:58037', transport: 'socket'

Process finished with exit code 0文章来源地址https://www.toymoban.com/news/detail-472490.html

到了这里,关于挂起、激活单个流程实例的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • VMware 最新版 - 虚拟机安装、激活、Centos安装、XShell 连接虚拟机、网络配置(全流程)

    目录 一、VMware 从安装到使用全流程 1.1、安装和激活 1.2、下载 Centos 镜像(以 7 为例) 1.3、创建虚拟机 1.4、网络配置 1.5、验证网络是否可用 a)从以下地址下载虚拟机 以下链接来自 B站-小段师兄(官网下载也可以,但是没有梯子可能会比较慢): 虚拟机官方版下载丨最新版

    2024年02月02日
    浏览(58)
  • spring启动流程 (2) Bean实例化流程

    本文通过阅读Spring源码,分析Bean实例化流程。 上一篇文章已经介绍,Bean实例化入口在AbstractApplicationContext类的finishBeanFactoryInitialization方法: 返回指定beanName的(原始)单例对象,如果没有则创建一个新对象: 创建Bean实例、填充属性、调用后置处理器等:

    2024年02月11日
    浏览(80)
  • 流程挖掘in汽车丨宝马的流程效能提升实例

    汽车行业在未来10年里,可能会面临比过去50年更多的变化。电动化、智能化、共享化和自动驾驶等方面的趋势可能给企业流程带来以下挑战: 供应链管理-电动化和智能化的发展可能导致供应链中的零部件和系统结构发生变化,企业需要重新评估和优化供应链流程。 制造和装

    2024年02月12日
    浏览(39)
  • 【人工智能】Transformer 模型数学公式:自注意力机制、多头自注意力、QKV 矩阵计算实例、位置编码、编码器和解码器、常见的激活函数等

    Transformer模型由多个编码器和解码器层组成,其中包含自注意力机制、线性层和层归一化等关键构造模块。虽然无法将整个模型完美地表示为单个数学公式,但我们可以提供一些重要构造模块的数学表示。以下是使用LaTeX格式渲染的部分Transformer关键组件的数学公式: 自注意力

    2024年02月14日
    浏览(53)
  • Vue 实例创建流程

    在当今Web开发领域中,构建交互性强、可复用且易于维护的用户界面是至关重要的。而Vue.js作为一款现代化且流行的JavaScript框架,正是为了满足这些需求而诞生。它采用了MVVM架构模式,并通过数据驱动和组件化的方式,使我们能够更轻松地构建出优雅而高效的Web应用程序。

    2024年01月22日
    浏览(30)
  • GraphSAGE聚合流程计算实例

    本篇中我们只讨论聚合流程,不考虑GraphSAGE的小批量训练等内容。 我们先来看一下GraphSAGE的聚合流程伪代码,之后会给出两个具体的计算例子进行说明: 11行中, N ( k ) ( u ) N^{(k)}(u) N ( k ) ( u ) 表示节点u的邻居节点采样函数(指的是从其邻居节点中选取一批节点),Agg()指的是

    2024年02月01日
    浏览(33)
  • Spring中Bean的实例化详细流程

    还是举个例子,我有一个朋友小汪他远赴南方某城市打工。然后安定下来后他的朋友很想来家里玩,但是呢我这个朋友家里搞的很乱,所以他不好意思请朋友来家里玩。这时我的另一个朋友说那请一个保姆把家里好好整理一下就可以了,然后给他介绍了一个保姆大S(PS:本文无

    2023年04月12日
    浏览(60)
  • Springboot +Flowable,详细解释啥叫流程实例(一)

    上一篇中学习了Flowable 中的流程模板(流程定义)的部署问题,这一篇来学习什么叫流程实例。 部署之后的流程模板,还不能直接运行,例如我们部署了一个请假流程,现在 张三想要请假,他就需要开启一个请假流程,李四 想请假,他也需要开启一个请假流程,这开启的请

    2024年02月01日
    浏览(34)
  • Springboot +Flowable,详细解释啥叫流程实例(二)

    上一篇中学习了Flowable 中的流程模板(流程定义)的部署问题,这一篇来学习什么叫流程实例。 部署之后的流程模板,还不能直接运行,例如我们部署了一个请假流程,现在 张三想要请假,他就需要开启一个请假流程,李四 想请假,他也需要开启一个请假流程,这开启的请

    2024年02月02日
    浏览(35)
  • Springboot整合Camunda工作流引擎实现审批流程实例

    环境:Spingboot2.6.14 + camunda-spring-boot-starter7.18.0 依赖配置 应用程序配置 通过上面的配置后访问控制台: http://localhost:8100/workflow/ 默认是没有上面的tasks中的内容,这里是我之前测试数据 环境准备好后,接下来就可以设计工作流程。 上面的 camunda-bpm-spring-boot-starter-rest依赖中定义

    2024年02月09日
    浏览(49)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包