AnsweredAssumed Answered

No Process Deployed with the key

Question asked by chandanmb1 on Jun 28, 2016
Latest reply on Jun 29, 2016 by chandanmb1
Hello All,

I have attached the bpmn modeller (diagram.txt).
Now i am trying to insert the same bpmn xml to the activiti database. I am getting an error. "No process deployed with the key myProcess".

                Variable s is the complete bpmn xml present in attached file.
                Deployment deploy = repositoryService.createDeployment().addString("myProcess", s).deploy();
      System.out.println("Deployment:::::::::::::"+deploy);
      Map<String, Object> variableMap = new HashMap<String, Object>();
      runtimeService = processEngine.getRuntimeService();
      processInstance = runtimeService.startProcessInstanceByKey("myProcess",variableMap);

Please help !!!

Attachments

Outcomes