Retrieve workflow information based on resource path

Avatar

Avatar

sd55

Avatar

sd55

sd55

16-10-2019

Hi,

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.

View Entire Topic

Avatar

Avatar

sd55

Avatar

sd55

sd55

16-10-2019

Hi All,

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);