How to get if there is any running workflow on a page programatically?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
You can adapt your current resource to WorkflowStatus and get running workflow Information for current page,
e.g
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.
Thanks
Dipti Chauhan
Views
Replies
Total Likes
Hi,
You can adapt your current resource to WorkflowStatus and get running workflow Information for current page,
e.g
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.
Thanks
Dipti Chauhan
There are many different ways to run a workflow on a page programmatically.
I hope this helps answer the question.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies