Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Need to get Active Step of any workflow that is running on my page

praveenk9057427
Level 2
Level 2

Hi All,

I am trying to get Active step of workflow running on my page.

Basically the required information for this is present under /var/workflows/instances/

 

For this i am writing an OSGI service.

In this using WorkflowSession API and trying to access workflow instances of RUNNING state with the help of method - getWorkflows (String[] states) - but i am getting empty array always. A(my subservice user has permission to instances as well) 

With the help of WorkflowSession iam able to get models(/var/workflow/models) data. But not instances.

 

could you please help on this. Is there any other way of achieving it or please correct me if i need to correct in the approach.

Thanks in advance.

 

1 Accepted Solution
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

You can make a simple json request to get active workflow details in the page.

http://host:port/resource-status/editor/pagepath.1.json

 

or use https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/javadoc/co... API.

View solution in original post

1 Reply
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

You can make a simple json request to get active workflow details in the page.

http://host:port/resource-status/editor/pagepath.1.json

 

or use https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/javadoc/co... API.

View solution in original post