07-12-2019 07:33 PM
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
07-14-2019 06:23 AM
Yes.You will get activiti Id from that task id.
WorkflowTask workflowTask =serviceRegistry.getWorkflowService().getTaskById("activiti$18563");
String activitiId=workflowTask.getPath().getInstance().getId();
07-23-2019 05:58 PM
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"]
Explore our Alfresco products with the links below. Use labels to filter content by product module.