This is related to how CDI detects bean archives. When bean-discovery-mode="annotated"
, only classes annotated with bean defining annotations are picked up by CDI; note that @Named
and @FlowScoped
aren't on that list.
Because of this, as you've documented here, using Flow annotations requires bean-discovery-mode="all"
to be set.
There's a spec issue open to discuss if this is a desired behavior.