Having duplicate instances of a process instead of just 1

Im trying to add a process instance using this post request to /message

{
  "messageName" : "DocumentReceived",
  "businessKey" : "3",
  "processVariables" : {
    "document" : {"value" : "This is a document...", "type": "String"
                  }
  }
}

But instead of getting 1 instance im getting 2 instances of the same id and same everything, I tried creating a process directly from the webapp (TaskList) but it still creates 2 duplicates, and i noticed one the instances gets stuck on user task while the other can just pass it without doing anything, ill attach a screenshot after running the post request above

Hello @hadi_hoteit do you mind uploading the bpmn file so that I can try to take a look. Thanks

NewURL.bpmn (3.2 KB)
process.bpmn (11.1 KB)

These are the 2 bpmn im using, im not sure if the problem is from building the project from eclipse, because im new to Camunda and eclipse Maven build is giving me alot of problems when i have test enabled, so i disable Testing before the build, and i just copy the .war file to camunda Tomcat file path

Hello again @hadi_hoteit,

If you open you process in the modeler, there are two arrows on top of each other between the “Send new document” task and the “new document received” start event. Delete the one going directly to the event based gateway.

Hope this resolves your issue.

3 Likes