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
BedrockMission!

Learn More

View all

Sign in to view all badges

get running workflow on a page

Avatar

Avatar
Level 1
manishajoshi
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
manishajoshi
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
manishajoshi
Level 1

20-12-2019

How to get if there is any running workflow on a page programatically?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 3
Dipti_Chauhan
Level 3

Likes

13 likes

Total Posts

32 posts

Correct Reply

9 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 3
Dipti_Chauhan
Level 3

Likes

13 likes

Total Posts

32 posts

Correct Reply

9 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile
Dipti_Chauhan
Level 3

22-12-2019

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

Answers (2)

Answers (2)

Avatar

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

582 likes

Total Posts

564 posts

Correct Reply

218 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

582 likes

Total Posts

564 posts

Correct Reply

218 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
MVP

23-12-2019

There are many different ways to run a workflow on a page programmatically. 

  1. Trigger workflow automatically by Sling Schedular Service. - https://helpx.adobe.com/experience-manager/using/aem-first-components1.htmlhttps://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/javadoc/in...
  2. Trigger workflow automatically by workflow launchers. - https://blogs.adobe.com/contentmanagement/tag/workflow-launcher/
  3. Trigger workflow automatically by JCR event listeners. - https://helpx.adobe.com/experience-manager/using/maven_arch12_event_listener.html
  4. Trigger workflow manually from the Touch UI Site's Console . -https://docs.adobe.com/content/help/en/experience-manager-64/authoring/workflows/workflows-applying....
  5. Trigger workflow manually from the Touch UI Workflow Model's Console - https://helpx.adobe.com/uk/experience-manager/6-3/sites/administering/using/workflows-starting.html#...
  6. Trigger workflow manually from CURL command - https://github.com/paulrohrbeck/aem-links/blob/master/curl_cheatsheet.md#user-content-enable-query-d....

I hope this helps answer the question.

 

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,261 likes

Total Posts

3,150 posts

Correct Reply

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

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,261 likes

Total Posts

3,150 posts

Correct Reply

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

20-12-2019