Alfresco Content Services REST API (Workflow)

cancel
Showing results for 
Search instead for 
Did you mean: 
mboquillon
Member II

Alfresco Content Services REST API (Workflow)

Hi,

I'm trying to update the state of a task using the REST API but not working. I haven't error message.

Any idea what's wrong in my code ?

Thanks

this.apiService.getInstance().webScript.executeWebScript(
   //Paramètres de l'API
   'PUT',
   'tasks/' + IDTask,
   'state',
   null,
   'api/-default-/public/workflow/versions/1',
   {
      "state": "resolved"
   }
).then(function(response: any) {
   console.log(response);
}, function(error){
   console.log(error);
})
}
2 Replies
abbask01
Senior Member

Re: Alfresco Content Services REST API (Workflow)

have you tried the taskApi?

this.alfrescoApiService.taskApi.updateTask()
Regards,
Abbas
mboquillon
Member II

Re: Alfresco Content Services REST API (Workflow)

You can only update name, dueDate and Description with taskAPI. And it's for activiti ? I only have Alfresco Content Service working with ADF. That's why I use Alfresco Content Services REST API.