Scheduled deployment post content approval workflow | Community
Skip to main content
Level 2
February 12, 2025
Solved

Scheduled deployment post content approval workflow

  • February 12, 2025
  • 2 replies
  • 711 views

Hi team

 

i already have project specific content approval workflow where i am taking approval from approvers and after their approval, activation of pages happens ( like on selection of 1 lang master page, i am replicating all of its live copies)

 

now the requirement is after the approval process, activation shud happen on scheduled date.


i want to use on/off time (OOTB available in page properties) to select the scheduled activation date and expiry date.

 

So, parallely i need to disable past dates from OOTB on and off time date picker.

 

how can i achieve this after approval process of workflow, the activation of pages to happen on their respective “on” time of page properties.

 

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 TarunKumar

HI @suman589 ,
Once the pages are approved and on/off is set in page properties.

OOTB functionality would trigger publication/unpublication for the pages using the On Time and Off Time.
Is your requirement something different or is there anything that you want to handle it programmatically?


-Tarun

2 replies

anupampat
Community Advisor
Community Advisor
February 12, 2025

Hi @suman589 ,

You need to use the Scheduled Page/Asset Activation & Scheduled Page/Asset Deactivation workflows to achieve them, you will need to listen to the completion of the Approval workflow and then start Scheduled Page/Asset Activation or Scheduled Page/Asset Deactivation Workflows programmatically, more details & code snippet https://medium.com/@anupampatra/future-later-activation-de-activation-of-aem-assets-or-pages-programmatically-1777262030f 

 

Regards,

Anupam Patra

TarunKumar
Community Advisor
TarunKumarCommunity AdvisorAccepted solution
Community Advisor
February 12, 2025

HI @suman589 ,
Once the pages are approved and on/off is set in page properties.

OOTB functionality would trigger publication/unpublication for the pages using the On Time and Off Time.
Is your requirement something different or is there anything that you want to handle it programmatically?


-Tarun

Suman589Author
Level 2
February 26, 2025

Content approval happens in workflow steps… after approval step in workflow, i have one process step - custom activation where i have some logic.. and i am replicating that payload right away.. but from this point, i want to schedule replication…

 

Now separately, i have written a scheduler which will replicate any page path when its on time is reached…

 

but the question is how i’ll pass actual payload path from workflow activation (custom process step) step to this scheduler

 

basically can i call scheduler from this process class in aem6.5