cancel
Showing results for 
Search instead for 
Did you mean: 

no deployed process definition found with id '20001'

chandanmb1
Champ on-the-rise
Champ on-the-rise
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
4 REPLIES 4

hari
Star Contributor
Star Contributor
Hi,

Try to pass your tenant id as well and see if it works.

chandanmb1
Champ on-the-rise
Champ on-the-rise
Hello,
How to pass the tenand id? from where i will get it ?
Sorry for asking basic stuffs.

Regards,
Chandan

hari
Star Contributor
Star Contributor
See if you have some value in act_re_procdef tables tenant_id_ column. If you have some value then pass the same value which you see in the table while starting the process.

chandanmb1
Champ on-the-rise
Champ on-the-rise
Hello,
Problem is
<code>
Deployment deployment = repositoryService.createDeployment().addString("Process_1", workflow).name("HoneywellProcess").deploy();
</code>
There is no entry getting inserted to ACT_RE_PROCDEF table. Because of this i guess it is not able to start the Process. What is the cause for this.
When i tried using addClassPathResource, it is making an entry in ACT_RE_PROCDEF. but when i use addString it is not inserting