Sign in to Community
Sign in to view all badges
How to get if there is any running workflow on a page programatically?
You can adapt your current resource to WorkflowStatus and get running workflow Information for current page,
final com.adobe.granite.workflow.status.WorkflowStatus wfState = resource.adaptTo(WorkflowStatus.class);you Can use this method to check if any running workflow
wfState.isInRunningWorkflow(false)and wfState.getWorkflows(false); to get running workflow information.
There are many different ways to run a workflow on a page programmatically.
I hope this helps answer the question.