Get all the workflows triggered for a payload (asset path)
Hello,
Is there any way to get all the workflow instances launched for a payload (e.g. /content/dam/assets/weddingPictures/party1.jpg).
The two only methods that I can guess are:
- Invoke http://localhost:4502/etc/workflow/instances.json and iterate for every instance
and make a new request in order to get the payload. Then filter all the instances that were not launched under ...party1.jpg. I have tested it, but it does not work as we get the next message: The query read or traversed more than 3000 nodes. To avoid affecting other tasks, processing was stopped. I've checked the documentation at Interacting with Workflows Programmatically but I have not found a way to paginate. - Invoke http://localhost:4502/mnt/overlay/cq/workflow/admin/console/content/archive//jcr:content/views/list.X.Y.html and filter all the instances that were not launched under ...party1.jpg. Althoug it allows me to paginate, I have to perform an unknown number of requests.
Regards.
