Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Custom workflow to publish multiple pages to intermediate publish instance and send E-mail notification to approver

vijays80591732
Level 4
Level 4

Hi All,

 

I have a requirement to create a custom workflow to replicate multiple pages into preview publisher instance. Below is the use case, 

 

1) Content author will work on multiple pages/Assets like,(/content/we-retail/en/home,/content/we-retail/en/home/about-us,/content/we-retail/en/home/contact-us, /content/we-retail/en/home/faq). Once the author completes the updates, he will be copying all the page URLs which he worked and pasted in some placeholder (It can be a separate page or separate component to just paste the URLs and start the workflow).

2) Once the workflow started, the workflow should get the list of URLs and replicate to the preview publisher instance and send the notification mail to content-approvers with the preview publisher URLs.

3) If approver approves the pages and completes the workflow then the list of the pages should replicate to the actual publisher instance.

4) During this workflow start and end, the list of pages(step-1) should be locked.

5) Once the workflow completes, then the pages should be unlocked.

 

Need suggestions on the below things:

1) I'm planning to use a workflow package to achieve this requirement, but how can I get the list of pages in the payload? shall we able to get multiple pages in Payload?

2) As I mentioned in step-2, how can I send the email notification to approver? any OOTB mail service is there? or I should go with the custom one? any examples?

3) In my custom workflow, is it possible to replicate the content to a specific publisher agent (In case if I have multiple publishers agents)?

4) How the instances connection should be? It can be one to one? Like Author->preview publisher->publisher. or both the publishers should be connected to the author?

 

FYI- I'm using AEM 6.4 & classic UI

@smacdonald2008 @arunpatidar26 @Ratna_Kumar @kautuk_sahni @wimsymons @cqsapientu69896 @vanegi @Veena_Vikram @Varun_Shakya @Theo_Pendle

 

Thanks in Advance!

 

Regards,

Vijay

 

 

 

AEM 6.4 publisher workflow workflow email notification
1 Accepted Solution
Varun_Shakya
Correct answer by
Community Advisor
Community Advisor

Hi @vijays80591732 ,

 

There could be multiple ways to achieve it. 

1. I would prefer workflow launcher to trigger my workflow as soon as the page is being modified. Using this method u need not to copy paste the url of modified pages in to separate page.(https://blogs.adobe.com/contentmanagement/tag/workflow-launcher/)

 

2. for taking the approval from approves group use Dynamic Participate Step and send inbox notification and mail both .(https://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-steps.html)

 

3.For publishing the page.Use Active/page Asset component in workflow.

 

4.For locking and unlocking the page check any OOTB component is available if not then you can use   process step component and customise it create your own process to lock and unlock the page(https://stackoverflow.com/questions/45376572/workflow-lockprocess-aem-not-locking-the-asset-page)

 

5.U can create your own replication agents to publish the page to specific publishers.

6.Check this thread(Kautuk Comment) for one author and multiple publish instance(https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-publish-different-webs...)

 

There could be other ways to achieve it. See which one fits for your requirement.

 

View solution in original post

2 Replies
Varun_Shakya
Correct answer by
Community Advisor
Community Advisor

Hi @vijays80591732 ,

 

There could be multiple ways to achieve it. 

1. I would prefer workflow launcher to trigger my workflow as soon as the page is being modified. Using this method u need not to copy paste the url of modified pages in to separate page.(https://blogs.adobe.com/contentmanagement/tag/workflow-launcher/)

 

2. for taking the approval from approves group use Dynamic Participate Step and send inbox notification and mail both .(https://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-steps.html)

 

3.For publishing the page.Use Active/page Asset component in workflow.

 

4.For locking and unlocking the page check any OOTB component is available if not then you can use   process step component and customise it create your own process to lock and unlock the page(https://stackoverflow.com/questions/45376572/workflow-lockprocess-aem-not-locking-the-asset-page)

 

5.U can create your own replication agents to publish the page to specific publishers.

6.Check this thread(Kautuk Comment) for one author and multiple publish instance(https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-publish-different-webs...)

 

There could be other ways to achieve it. See which one fits for your requirement.

 

View solution in original post

vijays80591732
Level 4
Level 4
Thanks Varun for your help. I have used workflow package and achieve it. Initially, I was about to go with Launcher. But, customer wants to trigger the workflow for bulk request. For Instance, if content author worked in 25 pages, then he wants to trigger the workflow once and that should be take care of further process(replication..and so on..). If, I go with launcher, then the workflow will be triggered for each time when I create/modify the every single page.