Sign in to Community
Sign in to view all badges
I have a payload path like /content/world/latest-news. I want to check if this page is in any active workflow job queue. How to check that through programing?
Have you tried this already?
Resource r = ResourceResolver.get("/content/world/latest-news"); WorkflowStatus wfStatus = r.adaptTo(WorkflowStatus.class);
You can use the Workflow API described at: https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/workflow/WorkflowSession.html
Look at the method and the return values. You can get a collection of all workflows by invoking the getActiveWorkItems method and from their get all data.