Workflow creation by selecting/unselecting domains for Activation | Community
Skip to main content
Level 3
September 4, 2023
Solved

Workflow creation by selecting/unselecting domains for Activation

  • September 4, 2023
  • 2 replies
  • 573 views

We have a following requirement:

 

To have a workflow that will allow us to publish/ unpublish pages on all/selected country domains of our website.
The following options to be available which an author should be able to select/unselect:

  • Select all domains at once
  • Select desired domains
  • Publish/unpublish the page right at the time of running the workflow
  • Publish/unpublish page on future date and time on the selected domains (schedule publication/unpublication)

We have done publish/unpublish through a workflow. But need inputs in identifying the the best approach in enabling the selection to a content author.

 

Thanks in advance!

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 ShaileshBassi

Hi @pixislinger You can create the field and provided the options available in the workflow console (/libs/cq/gui/content/common/startbulkworkflows/body/items/form/items/wizard/items/properties/items/fixedColumnContainer/items/fixedColumn/items).

 

This can be achieved by creating a similar one as per business requirement and hide/unhide it based on the workflow model selected.

 

Then customize a bit on the script (/libs/cq/gui/components/common/admin/startbulkworkflows/clientlibs/startbulkworkflows/js/startbulkworkflows.js) available for reading the option dropdown provided. Within this script there is the function i.e. createWorkflow which is actually responsible for getting all the data before the workflow is created.

 

Hope this helps!

Thanks

2 replies

aanchal-sikka
Community Advisor
Community Advisor
September 4, 2023

Hello @pixislinger 

 

You can provide drop-downs in dialog participant step to achieve the same.

 

The following example might interest you http://experience-aem.blogspot.com/2019/04/aem-65-content-copy-using-workflow-dialog-participant-step.html

 

Here they are selecting a destination folder from a drop down. The example can be adapted to your requirements.

Aanchal Sikka
ShaileshBassi
Community Advisor
ShaileshBassiCommunity AdvisorAccepted solution
Community Advisor
September 4, 2023

Hi @pixislinger You can create the field and provided the options available in the workflow console (/libs/cq/gui/content/common/startbulkworkflows/body/items/form/items/wizard/items/properties/items/fixedColumnContainer/items/fixedColumn/items).

 

This can be achieved by creating a similar one as per business requirement and hide/unhide it based on the workflow model selected.

 

Then customize a bit on the script (/libs/cq/gui/components/common/admin/startbulkworkflows/clientlibs/startbulkworkflows/js/startbulkworkflows.js) available for reading the option dropdown provided. Within this script there is the function i.e. createWorkflow which is actually responsible for getting all the data before the workflow is created.

 

Hope this helps!

Thanks