Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Enable disable workflow launcher based on feature flag

Avatar

Community Advisor

Hi All, 

 

How can we enable or disable any workflow launcher based on feature flag value. 

Any suggestion please. 

 

Thanks, 

Nj

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

Yes, you can enable/disable launcher based on the feature flag.
More info about feature flag at https://aemlab.blogspot.com/2018/06/sling-feature-flag.html

 



Arun Patidar

View solution in original post

8 Replies

Avatar

Employee Advisor

What do you mean with "Feature flag"? Is it the sling feature with the same name [1] or do you refer to the software development pattern (which is not tied to any implementation)?

 

In any way, each workflow launcher has a flag "enabled", which you can set (based on any type of code or automation).

 

 

[1] https://sling.apache.org/documentation/the-sling-engine/featureflags.html

Avatar

Community Advisor

Thanks Jorg for your reply.we have a requirement to invoke workflow based on asset metadata update. For that reason written a launcher which is working fine for individual asset update.

We do not want to invoke that launcher in case of bulk metadata update hence exploring feature enabled / disabled flag option available in launcher configuration.

Avatar

Employee Advisor
Ok, I understand. The problem with enabling/disabling the workflow launcher is that this is a global setting. That means, that when you disable it for your bulk process, all "regular" uploads happening in parallel are affected as well.

Avatar

Employee Advisor
But there is an undocumented feature available, which allows that changes performed during a session do not trigger workflows. I found it described at https://experienceleaguecommunities.adobe.com/t5/Adobe-Experience-Manager/Use-of-quot-event-user-dat...

Avatar

Correct answer by
Community Advisor

Hi,

Yes, you can enable/disable launcher based on the feature flag.
More info about feature flag at https://aemlab.blogspot.com/2018/06/sling-feature-flag.html

 



Arun Patidar

Avatar

Community Advisor
Thanks Arun, for your time and replying on the thread. I already gone through your blog post and found very useful. But somehow not satisfying my requirement.