AnsweredAssumed Answered

no deployed process definition found with id '20001'

Question asked by chandanmb1 on Jul 1, 2016
Latest reply on Jul 6, 2016 by chandanmb1
Hello,

One Question, I am deploying my bpmn xml as a string
Sample

String workflow="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
               "<bpmn:definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:bpmn=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" id=\"Definitions_1\" targetNamespace=\"http://bpmn.io/schema/bpmn\">\n" +
               "  <bpmn:process id=\"Process_1\" name=\"Honeywell Process\" isExecutable=\"true\">\n" +
               "    <bpmn:endEvent id=\"EndEvent_14quhpi\" name=\"End\">\n" +
               "      <bpmn:incoming>SequenceFlow_0v4wn48</bpmn:incoming>\n" +
               "    </bpmn:endEvent>\n" +


I am deploying like below

Deployment deployment = repositoryService.createDeployment().addString("Process_1", workflow).name("HoneywellProcess").deploy();
I am getting deployment id as 20001


When i start using runtimeservice, i am getting below exception.


ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("Process_1", variableMap);


I am getting below exception

org.activiti.engine.ActivitiObjectNotFoundException: no processes deployed with key 'Process_1'


Please help!! I am stuck

Outcomes