码上敲享录 > activiti问题详解 > Process instance is still running, cannot delete historic process instance

Process instance is still running, cannot delete historic process instance

上一章章节目录下一章 2018-01-23已有4676人阅读 评论(0)


historyService.deleteHistoricProcessInstance(processInstanceId);

今天用上面的代码来删除activiti工作流的流程实例的时候报错了,说流程正在运行无法删除流程实例,报错提示如下所示:

Process instance is still running, cannot delete historic process instance XXXX


解决方法:

将historyService.deleteHistoricProcessInstance(processInstanceId)改成以下代码即可,亲试有效,极力推荐!

runtimeService.deleteProcessInstance(processInstanceId,"");


本文地址:http://www.yayihouse.com/yayishuwu/chapter/1087

向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
1

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交