Then I tried to start deployed Process using /process-definition/key/Process1/start , however, I got message:
“No matching process definition with key: Process1 and no tenant-id”
I tried to call /process-definition/key/3463b0bb-0407-11e7-acee-c8d3fff2626c/start as well, but with the same result.
have tried if the process was really deployed or the key is actually “Process1”? You could verify that by performing a GET request on /process-definition (see here for more information).
if possible than please use the latest version of Camunda (7.7.0-alpha1).
In this version we improved the Deployment REST resource. If you run a POST request on the /deployment/create resource the response contains the successful deployed process definitions. If
the list of process definitions are empty no process definition was deployed.
A reason for this can be that you forgot to set the isExecutable flag to true.
Unfortunately, due to some reasons we may run 7.6 only at that time and I don’t see isExecutable flag there.
However, now I wonder if /deployment/create is right way to deploy new Process?
sorry, forgot about that. I seems like you are using the name of the deployment to start the process. However, you need to use the id of the process definition as key (I know this is a bit confusing).
Can please post the processes you want to deploy? Then I could verify that and give you an example of how your request should look like.
I deployed my bpmn (see attachment) and started an instance by calling web service /engine-rest/process-definition/Review_COMP:2:2aa0ba5f-039b-11e7-935e-005056bd024b/start. The web service returned 200 success code.
However, when I go to the Cockpit, there is no instance listed. In the database, a new record is found in the ACT_HI_PROCINST table, but its status is COMPLETED. No new record in the ACT_HI_TASKINST table was created.
since your process have no wait states it will be simply executed. It seems to me that you want to use a user task.
Change the task type in the modeler with the help of the small wheel into a user task.