cancel
Showing results for 
Search instead for 
Did you mean: 

Standalone tasks - Activiti REST

anjan
Champ in-the-making
Champ in-the-making
Hi, I am able to create a standalone task using Activiti REST API by POSTing the below JSON to the url
http://localhost:8080/activiti-rest/service/runtime/tasks



{
  "delegationState" : "pending",
  "description" : "New REST task description",
  "dueDate" : "2013-05-12T13:06:02.438+02:00",
  "name" : "New REST task",
  "owner" : "kermit",
  "parentTaskId" : null,
  "priority" : 20
}


How can I fetch only the standalone tasks using REST API.  I tried various query parameters(especially processInstanceId=null) for the Url
http://localhost:8080/activiti-rest/service/runtime/tasks
, but unable to fetch the standalone tasks.  Please advice.

3 REPLIES 3

trademak
Star Contributor
Star Contributor
Getting only the standalone tasks is currently not possible. It could be added though by allowing to filter on process instance id is null. You could create a JIRA issue for this.

Best regards,

anjan
Champ in-the-making
Champ in-the-making
Thanks Tijs.  I created a jira for this https://activiti.atlassian.net/browse/ACT-4016

trademak
Star Contributor
Star Contributor
Thanks