Trigger a workflow on a specific property change | Community
Skip to main content
Community Advisor
August 22, 2023

Trigger a workflow on a specific property change

  • August 22, 2023
  • 2 replies
  • 1975 views

Hi Folks, We are working on a requirement where a workflow should start when a specific metadata property changes from either false to true or true to false. There are other metadata properties as well, but any update on the resource should not start the workflow as we need to keep the running instances to a minimum.

We looked into ObservationListener - Property updated, but I reckon that is not 100 percent safe on cloud, as pods might restart, and we can lose some events. Launcher is another option, but it listens to node modified event instead of property updated. 

Any thoughts or inputs will be helpful. The solution should be scalable, and extendible to other properties as well.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Shashi_Mulugu
Community Advisor
Community Advisor
August 23, 2023

@shubhanshusi2 how the property will be changed? automated or via some authoring?

Community Advisor
August 24, 2023

External system pushes the data to AEM for metadata updates.

Community Advisor
August 29, 2023

@shubhanshusi2 If the ingestion of data from external system through your code(servlet/service), you have the control of viewing the metadata before making the update and you can flag that asset/page for workflow run after the update for the specific property change. How does the external system ingesting data into AEM?


Data will be ingested from workfront

archana_r
February 6, 2024

Hi Shubhanshu,   we have a similar requirement, which solution you opted for? and challenges faced?