Hi
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?
thanks
Srini
Solved! Go to Solution.
Views
Replies
Total Likes
Have you tried this already?
Resource r = ResourceResolver.get("/content/world/latest-news"); WorkflowStatus wfStatus = r.adaptTo(WorkflowStatus.class);
cheers,
Jörg
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Have you tried this already?
Resource r = ResourceResolver.get("/content/world/latest-news"); WorkflowStatus wfStatus = r.adaptTo(WorkflowStatus.class);
cheers,
Jörg
Views
Replies
Total Likes
Views
Likes
Replies