05-02-2017 09:13 AM
05-03-2017 03:53 AM
Which API? ReST, Java, JavaScript (server-side), JavaScript (client-side, e.g. NPM module "alfresco-js-api")?
If you want meaningful help please be a bit more elaborate on your questions.
05-03-2017 04:07 AM
This Alfresco Content Services REST API Explorer
WorkflowApi
05-03-2017 04:11 AM
That is the new v1 ReST API. It allows to complete a task by performing an update on it via a PUT request on /tasks/{taskId}. See the details of that operation on how to transition / complete / claim a task.
05-03-2017 04:14 AM
There is no approve and reject function.
05-03-2017 04:18 AM
Of course not. "Approve" and "Reject" are just arbitrary outcomes and each workflow / task may have very different outcomes. The outcome of a task is determined by an update to the corresponding task variable that needs to be set as part of the update.
Keep in mind that it is the Alfresco Share UI "fakes" those "Approve" / "Reject" decision buttons, but technically it does nothing special except update the task variable and simply "complete" the task.
05-03-2017 04:19 AM
Thank you.
Explore our Alfresco products with the links below. Use labels to filter content by product module.