I have a requirement, if my resource is under any running workflow, i have to do some operations on resource and terminate running workflows on this resource. how do this programmatically?
Please let me know if any thoughts on this.
Thank you for all your replies.
I was expecting api to find running workflow instances based on the path. I found out this can be done in following way.
PayloadMap payloadMap = resolver.adaptTo(PayloadMap.class);
List<Workflow> workflowList = payloadMap.getWorkflowInstances(path, true);