cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Content Services REST API (Workflow)

mboquillon
Champ in-the-making
Champ in-the-making

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 2

abbask01
Star Collaborator
Star Collaborator

have you tried the taskApi?

this.alfrescoApiService.taskApi.updateTask()
Regards,
Abbas

mboquillon
Champ in-the-making
Champ in-the-making

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.