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

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

String workflow="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
               "<bpmn:definitions xmlns:xsi=\"\" xmlns:bpmn=\"\" xmlns:bpmndi=\"\" xmlns:dc=\"\" xmlns:di=\"\" id=\"Definitions_1\" targetNamespace=\"\">\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