no deployed process definition found with id '20001'

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2016 05:16 AM
Hello,
One Question, I am deploying my bpmn xml as a string
Sample
I am deploying like below
When i start using runtimeservice, i am getting below exception.
I am getting below exception
Please help!! I am stuck
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
Labels:
- Labels:
-
Archive
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2016 01:07 AM
Hi,
Try to pass your tenant id as well and see if it works.
Try to pass your tenant id as well and see if it works.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2016 11:51 PM
Hello,
How to pass the tenand id? from where i will get it ?
Sorry for asking basic stuffs.
Regards,
Chandan
How to pass the tenand id? from where i will get it ?
Sorry for asking basic stuffs.
Regards,
Chandan

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2016 02:16 AM
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2016 03:18 AM
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
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
