Expand my Community achievements bar.

SOLVED

Workflow creation by selecting/unselecting domains for Activation

Avatar

Level 4

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!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @kirthim 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

View solution in original post

2 Replies

Avatar

Community Advisor

Hello @kirthim 

 

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-ste...

aanchalsikka_0-1693813688545.png

 

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


Aanchal Sikka

Avatar

Correct answer by
Community Advisor

Hi @kirthim 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