I have a ruby script that can delete a task given its activiti$<number>.
I get this number from admin console:
Command: show workflows all
I want to automate the process of deleting workflows. Can I get this activiti number from Task identifier
Yes.You will get activiti Id from that task id.
WorkflowTask workflowTask =serviceRegistry.getWorkflowService().getTaskById("activiti$18563");
String activitiId=workflowTask.getPath().getInstance().getId();
Hi Sanjay,
Thanks for the answer. I do not have alfresco SDK setup and hence I could not do this in Java.
I found an API provided by alfresco that returns details about a task :
https://<Domain name>/alfresco/service/api/task-instances/activiti$<taskidentifier>.
It throws lots of details about this task in JSON. I pull the activiti ID like this:
JSON.parse(result)["data"]["workflowInstance"]["id"]
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.