New Process Instance via REST API

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2013 09:35 AM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2013 11:44 AM
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.
