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)