[version: Alfresco Community 5.2]
I need to create functionality, which removes all active workflow instances but only for specified workflow definition.
For instance, document may be a part of many diffrent workflows, e.g. "New Task", "Review and Approve" and so on. More, there may be lot of instances of each workflows active at the same time. I'd like to remove all instances of "Review and Approve" workflow but left "New Task" still active.