Enabling workflow options for taging console. | Community
Skip to main content
Umesh_Thakur
Community Advisor
Community Advisor
November 20, 2023
Solved

Enabling workflow options for taging console.

  • November 20, 2023
  • 2 replies
  • 957 views

Hi,

We have requirement to publish tags thru a workflow. We already have a workflow configured to publish pages to different publisher, to use the same workflow for tag publishing we wanted to enable workflow option in tagging console along with other options, when I tag selected. For this I copy a workflow node from 

/libs/wcm/core/content/sites/jcr:content/actions/selection/create/items/createworkflow to /libs/cq/tagging/gui/content/tags/jcr:content/actions/selection.

After this step, I am able to see the workflow  option in tagging console, but it is not working getting one error in browser console that is :

Uncaught TypeError: Cannot read properties of undefined (reading 'dataset')
at HTMLAnchorElement.handler (foundation.js:4612:32)

If any one have any idea about the requirement implementation, can you please guide me how to implement this .

Thank you

Umesh Thakur

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

Hi @umesh_thakur  The workflow you are using is it based on custom code or is OOTB?

Please note as page and tags have different properties the same workflow may will not work for tags. You probably have to create your own workflow process and based on workload item type (page or tag) you have to process it differently. 

To get more details please enable debug log at AEM server and check if there are any exceptions on particular workflow. 

2 replies

fmateen
fmateenAccepted solution
November 26, 2023

Hi @umesh_thakur  The workflow you are using is it based on custom code or is OOTB?

Please note as page and tags have different properties the same workflow may will not work for tags. You probably have to create your own workflow process and based on workload item type (page or tag) you have to process it differently. 

To get more details please enable debug log at AEM server and check if there are any exceptions on particular workflow. 

January 22, 2024

Hi @umesh_thakur ,

I am also having same requirement for me also getting same error. Is it resolved? If it's resolved, can you guide me how to overcome this.

Umesh_Thakur
Community Advisor
Community Advisor
February 1, 2024

I have created a custom solution which is a mix of OOB and custom implementation. I overlayed ceateworkflow from libs to apps, as mentioned in the question. Then onclick of the create workflow button I redierct it to a custom util page to list all the tags under certain path, that page was having a list of dropdown for environment select the tag and environment once you click on the publish button it make a post call to a servlet with the data. this servlet is responsible to publish the tag.

Hope this helps

Umesh Thakur