cancel
Showing results for 
Search instead for 
Did you mean: 

How to call REST APIs for the processes deployed via Activiti Explorer

chandan_t81
Champ in-the-making
Champ in-the-making
Hi,

I am very new to Activiti. I have created a process definition and deployed via Activiti Explorer. Now I want to start the process instance via the activiti-rest APIs. Is that possible to do ? I am not able to see my process definition when I call 'GET http://localhost:8080/activiti-rest/service/repository/process-definitions'. Your quick response is much appreciated.

Thanks in advance.
4 REPLIES 4

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

do you run both applications? (activiti-explorer and activiti-rest)
Do they point to the same DB? (by default there is H2 in memory configuration)
http://forums.activiti.org/content/how-configure-activiti-explorer-and-rest-use-same-database

Regards
Martin

chandan_t81
Champ in-the-making
Champ in-the-making
Thank you for the quick reply.

Actually I have developed one application (bar) which defines a set of rules. I have deployed the bar file using activiti explorer. Now, I need to invoke the rules from a front end system using the REST calls. Basically, I need to do 'start process definition', 'activate process instance', 'suspend process instance' from front end using REST. But, while trying to call via REST, I am not able to find my process definition. I assume that I need to deploy the bar on the rest application rather than the Activity Explorer. Please help me to understand the concepts. I am using the default in-memory H2 DB.

Regards
Chandan

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Chandan.

If you wan to share deployments between apps they must have shared memory (DB) ->
http://forums.activiti.org/content/how-configure-activiti-explorer-and-rest-use-same-database

Regards
Martin

chandan_t81
Champ in-the-making
Champ in-the-making
Thank you Martin. Very helpful.

Regards
Chandan