Expand my Community achievements bar.

Introducing Adobe LLM Optimizer: Own your brand’s presence in AI-Powered search and discovery

Content fragment move based on property change

Avatar

Level 4

Hi Team,

 

We have a requirement related to content fragments. Based on a checkbox selection in the content fragment, we need to copy the content fragment from Folder A to Folder B. Additionally, we need to support bulk movement: when a folder is selected and a custom button is clicked, all content fragments in that folder should be moved.

Which approach is better for this: using a workflow or an event listener? Given that the project is headless and the backend system only consumes the content fragments via API,  So i just want to know that our approach does compromise the headless concept.?

AEM version : Aem as a cloud service

 

Thanks

Geo

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Community Advisor

Workflow will be the best option. From my experience event listener is sometimes missed, especially when bulk operations are performed. 

Another advantage of workflow is you can check which workflow is running, aborted, and finished. But for event listeners, you only have to check log.

 

And if you write your own workflow process you can trigger it from any of your backend code. I mean from any service, model, servlet.

Avatar

Administrator

@georhe6 Did you find the suggestion helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!



Kautuk Sahni