AEM 6.4.1.0 - Workflow history in page properties [display info in custom tab] | Community
Skip to main content
cquser1
Level 7
March 15, 2019

AEM 6.4.1.0 - Workflow history in page properties [display info in custom tab]

  • March 15, 2019
  • 1 reply
  • 4880 views

Hi All,

1] In OOTB AEM, http://localhost:4502/libs/cq/workflow/admin/console/content/instances.html it displays list of running workflow instances and on selecting any one particular entry and clicking on "Open History", it shows up the "Workflow Instance History" tab with the details.

2] We want this similar feature to be implemented in the page properties i.e, wherein if I click on "Page-> Open Properties"[for example : http://localhost:4502/mnt/overlay/wcm/core/content/sites/properties.html?item=/content/we-retail/us/en/men ]. we should have a new tab say "history" and we should be able to see the workflow history for that concerned page.

Any thoughts/pointers/reference on how do we go about this will be really really helpful.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Gaurav-Behl
Level 10
March 15, 2019

Wouldn't 'Timeline' feature suffice for this requirement? Within 'Timeline' you could choose 'workflow' or 'show all' based on your use case.

cquser1
cquser1Author
Level 7
March 16, 2019

Hi Gaurav,

They want a similar thing as it comes up when the below is done, for the concerned page :

http://localhost:4502/libs/cq/workflow/admin/console/content/instances.html

it displays list of running workflow instances and on selecting any one particular entry and clicking on "Open History", it shows up the "Workflow Instance History" tab with the details.

cquser1
cquser1Author
Level 7
March 17, 2019

It still doesn't make sense to me. Couple of pointers if you wish to proceed:

OOB code for http://localhost:4502/libs/cq/workflow/admin/console/content/instances.html​ is under  "/libs/cq/workflow/admin/console/components"

For extending page properties check

Editing Page Properties

Extending Page Properties in AEM Sites

For history.json refer "/libs/cq/workflow/components/workitem/json.jsp" and other related components "/libs/cq/workflow/components"


Hi Gaurav,

Not planning to overlay the workflow components rendering the json[ as it will affect at other places], but was wondering if we can hit that json url for the concerned page. That way probably we will get all the required data for display, which thereon needs to be displayed in the custom tab.

Like, suppose if on page 'x', a workflow is running, then I need to find the instance id [i.e, /var/workflow/instances/server0/2019-03-15/custom-workflow_1] and then append that to the url http://localhost:4502/libs/cq/workflow/content/console/history.json?workflow=  and form an entire url http://localhost:4502/libs/cq/workflow/content/console/history.json?workflow=/var/workflow/instances/server0/2019-03-15/…

Please let us know your thoughts on this.