The custom aem workflow launcher with exclude list does not work. | Community
Skip to main content
Level 2
July 21, 2022
Solved

The custom aem workflow launcher with exclude list does not work.

  • July 21, 2022
  • 2 replies
  • 2549 views

Hello,

   I am trying to create a custom launcher where a workflow will be triggered when only one specific property is updated. This does not seem to work and I don't know what I'm doing wrong.

 

I am currently using AEM 6.5.11 version

 

 

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 Tushar_Gupta

I think NodeType you mentioned is dam:AssetContent which means its not metadata. Generally this node contains only few fields like name, parentPath, processed etc. 

You may be need to enable the launcher on your custom Metadata - In that case few configurations needs to be modified:

NodeType - nt:unstructured

Path - /content/dam/(/.*/)jcr:content/metadata (something like this)

Also, exclude list may include - jcr:lastModified,dc:modified,dc:format,jcr:lastModifiedBy,imageMap,event-user-data:changedByWorkflowProcess (may be more depending upon the usecase)

 

2 replies

Tushar_GuptaAdobe EmployeeAccepted solution
Adobe Employee
July 21, 2022

I think NodeType you mentioned is dam:AssetContent which means its not metadata. Generally this node contains only few fields like name, parentPath, processed etc. 

You may be need to enable the launcher on your custom Metadata - In that case few configurations needs to be modified:

NodeType - nt:unstructured

Path - /content/dam/(/.*/)jcr:content/metadata (something like this)

Also, exclude list may include - jcr:lastModified,dc:modified,dc:format,jcr:lastModifiedBy,imageMap,event-user-data:changedByWorkflowProcess (may be more depending upon the usecase)

 

manlosa2Author
Level 2
July 21, 2022

Hi, thanks or your response. Can I exclude custom metadata or there's only a list you're allowed to exclude?

Nikhil_Verma
Level 4
July 21, 2022

Judging from the screenshot you provided, the configuration says to not to listen to changes in the property dc:title. This will trigger the workflow when any property except dc:title is modified, so kinda opposite to what you're after (to trigger the workflow when only dc:title changes).

 

One way is to add all possible node properties in the 'Exclude list' except for 'dc:title', but that isn't practical.

 

Another way would be to use custom event listener/handler:

https://aem.redquark.org/2018/10/day-14-eventing-in-aem.html

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-event-handler-how-to-process-events-using-eventhandler/m-p/393052