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

Avatar

Avatar
Validate 1
Level 1
praveenk9057427
Level 1

Likes

2 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
praveenk9057427
Level 1

Likes

2 likes

Total Posts

12 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back
Boost 1
Affirm 1
View profile
praveenk9057427
Level 1

24-05-2020

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.

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,322 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,322 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

24-05-2020

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.

Answers (0)