I'm trying to fetch active workflows in the instances and their payload but some paths are '/var/workflow/packages/generated-package80' so I've used
ResourceCollectionHelper.getPaths("/var/workflow/packages/generated-package80", rcCollections)
for getting the content and other associated path...