Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.
SOLVED

Scheduled deployment post content approval workflow

Avatar

Level 2

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.

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

3 Replies

Avatar

Community Advisor

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

 

Regards,

Anupam Patra

Avatar

Correct answer by
Community Advisor

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

Avatar

Level 2

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