Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Enable disable workflow launcher based on feature flag

nitinjl
Level 4
Level 4

Hi All, 

 

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

Any suggestion please. 

 

Thanks, 

Nj

1 Accepted Solution
Arun_Patidar
Correct answer by
Community Advisor
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

 

View solution in original post

0 Replies
Jörg_Hoh
Employee
Employee

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

nitinjl
Level 4
Level 4

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.

Jörg_Hoh
Employee
Employee
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.
Jörg_Hoh
Employee
Employee
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...
Arun_Patidar
Correct answer by
Community Advisor
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

 

View solution in original post

nitinjl
Level 4
Level 4
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.