Too many workflows are triggered by a workflow launcher configuration set on node_modified event

Issue

A custom workflow launcher configuration is firing too many times.

The launcher has Event Type="Node modified" and Condition set with a condition like "property==value".

The launcher is triggering the workflow too many times.

Environment

AEM 6.x

Cause

The workflow launcher is triggered for any modification to the node where there property value matches the condition criteria. 

It doesn't only get fired when the property in the condition itself is modified.

Resolution

The solution to the problem is to make sure only one event is picked up by the launcher condition.

Here are the possible resolutions

  1. Configure the Exclude List with a comma separated list of properties of the node to ignore modifications for.

    This may or may not be enough to avoid the problem (depending on the property the condition is defined for). 

  2. Add a custom property to the node then have that property get removed by the workflow step.

    Then you can set the condition to listen to the change to that property's value.

  3. Implement a custom JCR event listener instead.

    See for example https://helpx.adobe.com/experience-manager/using/maven_arch12_event_listener.html

 Adobe

Obtén ayuda de forma más rápida y sencilla

¿Nuevo usuario?

Adobe MAX 2024

Adobe MAX
La conferencia de creatividad

Del 14 al 16 de octubre en Miami Beach y en línea

Adobe MAX

La conferencia de creatividad

Del 14 al 16 de octubre en Miami Beach y en línea

Adobe MAX 2024

Adobe MAX
La conferencia de creatividad

Del 14 al 16 de octubre en Miami Beach y en línea

Adobe MAX

La conferencia de creatividad

Del 14 al 16 de octubre en Miami Beach y en línea