Workflow to Publish only approved content | Community
Skip to main content
Level 2
May 13, 2022 10:48 AM UTC
Solved

Workflow to Publish only approved content

I'd like to create a workflow to publish but only on content that has been approved.

 

For example, say you have a workflow for content approval:

 

start approval workflow for content-fragment-1 -> content-fragment-1 approved -> end approval workflow

 

Then you would have 

 

start publish workflow for content-fragment-1 -> content-fragment-1 publish -> end publish workflow

 

But, what happens if someone makes a changes content-fragment-1 between the approval workflow and the publish workflow?

 

Is there a way to only publish approved content?

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
An1-3Accepted solution
Level 4
May 13, 2022 11:05 AM UTC

@aem_party : Try to create one single workflow to achieve this . Lock the page once workflow started and unlock it once workflow finished. 

4 replies

MayurSatav
New Participant
May 13, 2022 12:21 PM UTC

Hi @aem_party ,

 

I think the below blog will help you to get a clear understanding of what you are looking for. Please check let me know.

 

https://www.aemtutorial.info/2018/09/content-approval-workflows-in-aem-64.html?m=1#:~:text=There%20are%203%20major%20steps,Verify%20the%20workflow

 

Translate
Himanshu_Jain
New Participant
May 13, 2022 11:08 AM UTC

Are you able to edit the CF in between workflow?

check lock unlock payload process.

Ref: https://experienceleague.adobe.com/docs/experience-manager-65/developing/extending-aem/extending-workflows/workflows-process-ref.html?lang=en#lockprocess

 

 

 

Translate
Himanshu Jain
AEM_PARTYAuthor
Level 2
May 13, 2022 12:19 PM UTC

Thanks for the replies and good points.

 

The reason there is no publish from the review flow is that we may want to hold the publish to a particular time (e.g. after business hours, wait until the weekend etc)

 

However, if a further edit takes place on the content after review but before publish we will end up with a non-reviewed change going out.

 

We could indeed lock the content until published but that seems draconian for a change that isn't scheduled to go out on a Friday night say.

Translate
An1-3Accepted solution
Level 4
May 13, 2022 11:05 AM UTC

@aem_party : Try to create one single workflow to achieve this . Lock the page once workflow started and unlock it once workflow finished. 

Translate