cancel
Showing results for 
Search instead for 
Did you mean: 

New Process Instance via REST API

adgonzal
Champ in-the-making
Champ in-the-making
I'm trying to create a new instance of a process via REST call but there is something I don't understand. I invoke the API via curl.
curl  -i -H "Content-Type: application/json;charset=UTF-8" -X POST -d @C:\tmp\escal.json http://localhost:8090/activiti-rest/service/runtime/process-instances where escal.json is:
{
  "processDefinitionKey":"escalationExample"
}

The response is Ok but when I access Activiti Explorer the new instance doesn't appear.
What am I forgotting?.
Do you have an example (or a resource to download) to see how to use the API?

Thanks in advance
1 REPLY 1

adgonzal
Champ in-the-making
Champ in-the-making
I found the problem. I didn't know that activiti-rest point by default to a different h2 database. Now I've configured with mySQL the two applications poiting to the same database.