cancel
Showing results for 
Search instead for 
Did you mean: 

Mysql query to approve or reject a task

Tabu
Champ in-the-making
Champ in-the-making

Hi,
Is there any mysql query to approve or reject a task from backend?

2 REPLIES 2

kintu_barot
Star Collaborator
Star Collaborator

You can use the workflow apis for the same:

https://api-explorer.alfresco.com/api-explorer/?urls.primaryName=Workflow%20API 

Avoid using such direct database queries.

Regards,
Kintu

Tabu
Champ in-the-making
Champ in-the-making

Thank you for the guidance!
I've gone through the APIs, but couldn't understand which can be used for approving or rejecting the task.
Please do provide the API using which we can achieve this.

Idea is to write a script, where authority & taskid can be passed and we should be able to approve or reject the task.