cancel
Showing results for 
Search instead for 
Did you mean: 

Start process is a blocking call?

esseti
Champ in-the-making
Champ in-the-making
Hi all.
i'm playing with the rest api.
i'm trying to start the process calling
http://localhost:8080/activiti-rest/service/process-instance
.
My process is a task that i extended that should do the polling, so keeps going on and on.
i noticed that the rest call for starting the process basically blocks because the first task is on going, so the start action does not return anything.

is this normal? does not sound strange? what should i do?
1 REPLY 1

esseti
Champ in-the-making
Champ in-the-making
Ok, is solved it.
for those who are interested do this:
- set your task as asyncronous or via ui, or place this activiti:async="true" in the task definiton.
- enable the jobprocessing for the rest apis, it is disbled by default (while in the explorer it's enabled). so go to /activiti-rest/WEB-INF/classes/activiti-context.xml set this as true <property name="jobExecutorActivate" value="true" />