cancel
Showing results for 
Search instead for 
Did you mean: 

no processes deployed with key

zd251
Champ in-the-making
Champ in-the-making
I created my workflow and have the following code



       ProcessEngine processEngine = ProcessEngineConfiguration
                .createStandaloneInMemProcessEngineConfiguration()
                .buildProcessEngine();
      
      
        RuntimeService runtimeService = processEngine.getRuntimeService();
        RepositoryService repositoryService = processEngine.getRepositoryService();
        repositoryService.createDeployment()
                .addClasspathResource("diagrams/AlertingProcess.bpmn")
                .deploy();
                     
      processEngine.getRuntimeService().startProcessInstanceByKey("alertProcess");

This is my process


<process id="alertProcess" name="Alert Process">
    <startEvent id="startevent1" name="Start"></startEvent>
    <userTask id="assignedTask" name="AssignedTask"></userTask>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="assignedTask"></sequenceFlow>
    <sequenceFlow id="flow2" name="" sourceRef="assignedTask" targetRef="endevent1"></sequenceFlow>
  </process>

I keep getting the following exception

Exception in thread "main" org.activiti.engine.ActivitiException: no processes deployed with key 'alertProcess'
at org.activiti.engine.impl.persistence.deploy.DeploymentCache.findDeployedLatestProcessDefinitionByKey(DeploymentCache.java:63)

I'm using Activiti version 5.9.

Any ideas?
4 REPLIES 4

steve1
Champ on-the-rise
Champ on-the-rise
Hi,

The file extension is changed to ".bpmn" in Activiti Designer 5.9,

but not in Activiti engine 5.9.

You should give the classpath with the extnesion of ".bpmn20.xml", like addClasspathResource("diagrams/AlertingProcess.bpmn20.xml").

You can also open this ".bpmn20.xml" file by clicking that file, and "Open With", and select Activit Designer.

Below post will help you.

http://forums.activiti.org/en/viewtopic.php?f=8&t=3745

Good luck to you.

zd251
Champ in-the-making
Champ in-the-making
I would have found that post earlier if that post had referenced the exception.  Oh well.   Smiley Tongue

That solved my problem.  Thanks!

marwafriaa
Champ in-the-making
Champ in-the-making
Hello , I'am sorry , I need your help please.

I have the same problem (I am using STS as IDE):
Can you give us the other solutions , because even with this extension I am having the same issue.


Thank you.


jbarrez
Star Contributor
Star Contributor
The IDE has nothing to do with this exception … what exactly are you seeing that goes wrong?