Search code examples
aemaem-6

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.


Solution

  • 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