Hi everyone,
I came across a sling job requirement of checking if any of the pages in a list (this list will come from a TSV or CSV file stored in DAM) is in workflow or not and then do the further processing. What are the ways we can try ? And Is there any way of checking that efficiently? (there are going to be around tens of thousands of pages).
What I have tried : (Please correct me if I'm in the wrong direction)
I was trying Payload Map, but it is returning null in the first line itself. Resource Resolver is working fine.
PayloadMap payloadMap = resourceResolver.adaptTo(PayloadMap.class);
payloadMap.isInWorkflow(resource.getPath(), true/false);
Thank You