cancel
Showing results for 
Search instead for 
Did you mean: 

consult 'no processes deployed with key ' problem

hefuren
Champ in-the-making
Champ in-the-making
Dear, I have one problem to perplex some days. please kindly give me help, thank you .
I successfully deploy one process, i found the database have insert data to the table(act_re_deployment, act_ge_bytearray,act_ge_property) ,but when i start process , the program is wrong.

my code:
<java>
// Create Activiti process engine
SpringProcessEngineConfiguration processEngine = ctx.getBean("processEngineConfiguration",SpringProcessEngineConfiguration.class);
// Get Activiti services
RepositoryService repositoryService = processEngine.getRepositoryService();
RuntimeService runtimeService = processEngine.getRuntimeService();
// Start a process instance
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("vacationRequest");
//runtimeService.startProcessInstanceByKey("vacationRequest", variables);
<java>

the "vacationRequest" is my process id that is defined in leave.bpmn20.xml file.

==========
Server startup in 55396 ms
org.activiti.engine.ActivitiObjectNotFoundException: no processes deployed with key 'vacationRequest'
   at org.activiti.engine.impl.persistence.deploy.DeploymentManager.findDeployedLatestProcessDefinitionByKey(DeploymentManager.java:81)
   at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:79)
   at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:37)
   at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
2 REPLIES 2

hefuren
Champ in-the-making
Champ in-the-making
please give me help, thank you very much.

vasile_dirla
Star Contributor
Star Contributor
please create a unit test for this issue.
here you can see how you should do that:
https://forums.activiti.org/content/sticky-how-write-unit-test

Having your config, bpmn20.xml file, etc.. will help a lot.

please rename your zip to txt before uploading here because zip files are not accepted.