krish
krish

Reputation: 489

How to find the workflow running instances by JAVA in AEM

How to find the available workflow instances that are running in an AEM instance Programmatically.

Upvotes: 0

Views: 2422

Answers (1)

VAr
VAr

Reputation: 2601

You can find the all workflows in your workflow session from the Interface com.adobe.granite.workflow.WorkflowSession by using Workflow[] workflows = wfSession.getAllWorkflows()

and you can get the workflow state by using Interface com.adobe.granite.workflow.exec.Workflow getState() method. For more information you can look for the workflow api document.

WorkflowSession API CQ 5.6

WorkflowSession API AEM 6.1

WorkflowSession API AEM 6.2

Upvotes: 1

Related Questions