cancel
Showing results for 
Search instead for 
Did you mean: 

ACTIVITI REST - SUSPEND A TASK

himaakishore
Champ in-the-making
Champ in-the-making
Hi,

Is there any specific service to suspend a task using activiti - rest or should i use the same service which is used for updating a task(PUT runtime/tasks/{taskId})?

if i follow the same service which is used for updating a task(PUT runtime/tasks/{taskId}) ,whether event listener for ENTITY_SUSPENDED event will be executed?


I hope the questions are clear.

Thanks in advance.
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
No, we only support process instance/definition suspension.

himaakishore
Champ in-the-making
Champ in-the-making
Thanks for your reply.

So why suspended field in task is used?

{
  "assignee" : "kermit",
  "createTime" : "2013-04-17T10:17:43.902+0000",
  "delegationState" : "pending",
  "description" : "Task description",
  "dueDate" : "2013-04-17T10:17:43.902+0000",
  "execution" : "http://localhost:8182/runtime/executions/5",
  "id" : "8",
  "name" : "My task",
  "owner" : "owner",
  "parentTask" : "http://localhost:8182/runtime/tasks/9",
  "priority" : 50,
  "processDefinition" : "http://localhost:8182/repository/process-definitions/oneTaskProcess%3A1%3A4",
  "processInstance" : "http://localhost:8182/runtime/process-instances/5",
  "suspended" : false,
  "taskDefinitionKey" : "theTask",
  "url" : "http://localhost:8182/runtime/tasks/8",
  "tenantId" : null
}

jbarrez
Star Contributor
Star Contributor
because a task can be suspended when its process instance is suspended