Publish Page when page properties is updated via workflow | Community
Skip to main content
Level 3
May 24, 2022
Solved

Publish Page when page properties is updated via workflow

  • May 24, 2022
  • 3 replies
  • 845 views

Is there a possibilty that we can publish page by a workflow automatically whenever the page properties of the specific page is updated?

 

If yes..

 

Please provide a possible solution for the same.

 

Thank you,

Janhavi 

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 lukasz-m

Hi @janhavi_singh,

If I good understood, you would like specific workflow to be run when you change page properties. There are many ways to do this.

  1. You can configure workflow launcher. Assuming that all page properties are stored under cq:PageContent node, you can try similar configuration to below. Of course you have to select proper content path, workflow you would like to be executed, and maybe extend list of properties that should be ignored/excluded.
    Some workflow launcher related documentation:
    https://experienceleague.adobe.com/docs/experience-manager-65/administering/operations/workflows-starting.html?lang=en#workflows-launchers
  2. You can create event handler and sling jobs that will run specific workflow. https://sling.apache.org/documentation/bundles/apache-sling-eventing-and-job-handling.html

3 replies

Himanshu_Jain
Community Advisor
Community Advisor
May 24, 2022

Add a process step .

  • Title: Publish Page as Requested

  • Process: select Activate Page. This process publishes the selected page to the publisher instances

Himanshu Jain
arunpatidar
Community Advisor
Community Advisor
May 24, 2022

Hi,

You can create a workflow launcher on modify for resource(jcr:content) and trigger a workflow.

https://experienceleague.adobe.com/docs/experience-manager-64/administering/operations/workflows-starting.html

 

Arun Patidar
lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAccepted solution
Community Advisor
May 24, 2022

Hi @janhavi_singh,

If I good understood, you would like specific workflow to be run when you change page properties. There are many ways to do this.

  1. You can configure workflow launcher. Assuming that all page properties are stored under cq:PageContent node, you can try similar configuration to below. Of course you have to select proper content path, workflow you would like to be executed, and maybe extend list of properties that should be ignored/excluded.
    Some workflow launcher related documentation:
    https://experienceleague.adobe.com/docs/experience-manager-65/administering/operations/workflows-starting.html?lang=en#workflows-launchers
  2. You can create event handler and sling jobs that will run specific workflow. https://sling.apache.org/documentation/bundles/apache-sling-eventing-and-job-handling.html