Get workflow id in page author mode

Avatar

Avatar

tarunrajg

Avatar

tarunrajg

tarunrajg

01-10-2020

Hi ,

 

Is there any way to get workflow ID in edit mode of a page when logged in as a content author. Without servlet call to query the available workflows.

 

AEM version : 6.5

 

Thanks 

AEM 6.5 AEM 6.5 workflows Workflow instance

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

883

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

883
Arun_Patidar
MVP

01-10-2020

you can use resource-status api to get running workflow for current page

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/restricting-a-page-to-be-s...

 

e.g. for content/AEM63App/fr

http://localhost:4502/resource-status/editor/content/AEM63App/fr.1.json 

 

If page is part of workflow it returns response something like below:

{"0":{"statusType":"workflow","statusPriority":10000,"shortMessage":"demo-email","variant":"info","i18n.message.snippets":["demo-email"],"title":"Workflow","message":"This page is subject to the workflow <i>{0}<\/i>"}}

 

Answers (2)

Answers (2)

Avatar

Avatar

santhosh_kumark

MVP

Avatar

santhosh_kumark

MVP

santhosh_kumark
MVP

01-10-2020

Hi @tarunrajg ,

 

Hope this helps your requirement to get workflow id and enable it at the page level.

https://helpx.adobe.com/experience-manager/using/aem64_workflow_information.html

 

Regards,

Santosh

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.1K

Correct Reply

1.1K

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.1K

Correct Reply

1.1K
Jörg_Hoh
Employee

01-10-2020

Hi,

do I understand you correctly, that if a user opens a page in editmode and this is part of a workflow, you would like to retrieve the workflow ID of that workflow? What would you like to do with that ID?