问题描述:
springboot整合activity启动流程报错
org.activiti.engine.ActivitiObjectNotFoundException: no processes deployed with key 'myProcess_11'
at org.activiti.engine.impl.persistence.deploy.DeploymentManager.findDeployedLatestProcessDefinitionByKey(DeploymentManager.java:85)
at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:85)
at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:37)
at org.activiti.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:37)
at org.activiti.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:78)
at org.activiti.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:57)
问题分析:
没有找到部署的流程定义
解决方案:
select * from act_re_procdef;
在这张表中找到对应的key,再启动流程,如果没有,证明部署流程定义失败。