OpenFeature
Since Camel 4.23
Only producer is supported
The OpenFeature component evaluates feature flags using the OpenFeature specification with flagd as the default provider.
It supports boolean flags for toggle and detour patterns, and string flags for A/B testing, fractional targeting, and targeted rollout.
For boolean predicates in Java, XML and YAML DSL, use the OpenFeature language supplied by this component.
Maven users will need to add the following dependency to their pom.xml for this component:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-openfeature</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency> URI format
openfeature:domain[/evaluationType][?options]
Where domain is the OpenFeature domain to bind the provider to and evaluationType is an optional path parameter that selects the evaluation type (boolean, variant, or isEnabled).
Configuring Options
Camel components are configured on two separate levels:
-
component level
-
endpoint level
Configuring Component Options
At the component level, you set general and shared configurations that are, then, inherited by the endpoints. It is the highest configuration level.
For example, a component may have security settings, credentials for authentication, urls for network connection and so forth.
Some components only have a few options, and others may have many. Because components typically have pre-configured defaults that are commonly used, then you may often only need to configure a few options on a component; or none at all.
You can configure components using:
-
the Component DSL.
-
in a configuration file (
application.properties,*.yamlfiles, etc). -
directly in the Java code.
Configuring Endpoint Options
You usually spend more time setting up endpoints because they have many options. These options help you customize what you want the endpoint to do. The options are also categorized into whether the endpoint is used as a consumer (from), as a producer (to), or both.
Configuring endpoints is most often done directly in the endpoint URI as path and query parameters. You can also use the Endpoint DSL and DataFormat DSL as a type safe way of configuring endpoints and data formats in Java.
A good practice when configuring options is to use Property Placeholders.
Property placeholders provide a few benefits:
-
They help prevent using hardcoded urls, port numbers, sensitive information, and other settings.
-
They allow externalizing the configuration from the code.
-
They help the code to become more flexible and reusable.
The following two sections list all the options, firstly for the component followed by the endpoint.
Component Options
The OpenFeature component supports the following options which are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
The shared configuration of the endpoints: each endpoint starts with a copy of it. | OpenFeatureConfiguration | ||
Whether a Map message body is the evaluation context: its entries become the context attributes, and a targetingKey entry the targeting key. A body of another type is ignored. Not used when the CamelOpenFeatureEvaluationContext header (or an exchange property of that name) holds a Map, which takes precedence. | false | boolean | |
The deadline in milliseconds of the flagd provider. When the endpoint starts, it waits up to twice this time for the provider to be ready (connected to the flagd service, or the flag definitions of flags or flagsResource loaded), and fails to start when it is not. With host, it is also the gRPC deadline of each flag evaluation call. Use a value greater than 0, and a higher value, such as 5000, when the start times out under load. | 500 | int | |
The default value that the evaluation returns when the flag cannot be evaluated, for example when the flag is not found, has another type, or the provider is not ready; the CamelOpenFeatureErrorCode header then holds the error code. For a boolean evaluation the text is parsed with Boolean.parseBoolean, so any value other than true (ignoring case) is false. When no evaluation type is set, true or false (ignoring case) selects a boolean evaluation, and any other value a string evaluation. | false | String | |
The type of flag evaluation, used when the endpoint URI has no evaluationType path: boolean and isEnabled both evaluate a boolean flag (Client.getBooleanDetails), and variant evaluates a string flag (Client.getStringDetails). The CamelOpenFeatureEvaluationType header overrides it. When no type is set, the type follows defaultValue. Enum values:
| String | ||
The flag key of the feature flag to evaluate. The CamelOpenFeatureFlagKey header (or an exchange property of that name) overrides it for a message. One of them must be set. | String | ||
The flag definitions in the flagd JSON format, given inline, for a flagd provider that evaluates the flags in this JVM. The JSON is written to a temporary file that the flagd provider reads in file mode. Used only when no provider bean is used. Cannot be combined with flagsResource, and host is ignored when it is set. | String | ||
The location of a file with flag definitions in the flagd JSON format, for a flagd provider that evaluates the flags in this JVM. Any Camel resource location, such as classpath:flags.json or file:/etc/camel/flags.json. A file: location is read by the flagd provider itself, which reloads the file when it changes; other locations are read once when the endpoint starts. Used only when no provider bean is used. Cannot be combined with flags, and host is ignored when it is set. | String | ||
The host name of a remote flagd service, which the flagd provider calls over gRPC for each flag evaluation. Used only when no provider bean is used and neither flags nor flagsResource is set. | String | ||
The gRPC port of the remote flagd service set by host. | 8013 | int | |
The name of a FeatureProvider bean in the registry that evaluates the flags (a leading # is optional). When not set, a FeatureProvider bean named flags is used when there is one, and otherwise the endpoint creates a flagd provider from flags, flagsResource or host. The flagd options do not apply to a provider bean. | String | ||
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | boolean | |
The name of the exchange property that receives the flag value. When set, the message body is not changed; when not set, the flag value replaces the message body. | String | ||
Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | boolean | |
The path of a PEM file with the CA certificates that the TLS connection to the remote flagd service trusts, in place of the default trust store of the JVM. Used only when tls is true; a path to a file that does not exist is ignored. | String | ||
Whether the gRPC connection to the remote flagd service set by host uses TLS. When false, the connection is plain text, unless the FLAGD_TLS environment variable enables TLS. | false | boolean |
Endpoint Options
The OpenFeature endpoint is configured using URI syntax:
openfeature:domain/evaluationType
With the following path and query parameters:
Path Parameters
| Name | Description | Default | Type |
|---|---|---|---|
Required The OpenFeature domain that the provider is bound to, and whose client evaluates the flags. Endpoints with the same domain share one provider: the first endpoint that starts sets it up, and the provider options of the other endpoints are ignored. | String | ||
The type of flag evaluation: boolean and isEnabled both evaluate a boolean flag (Client.getBooleanDetails), and variant evaluates a string flag (Client.getStringDetails). It overrides the evaluationType option, and the CamelOpenFeatureEvaluationType header overrides it. When no type is set, true or false (ignoring case) in defaultValue selects a boolean evaluation, and any other value a string evaluation. Enum values:
| String |
Query Parameters
| Name | Description | Default | Type |
|---|---|---|---|
Whether a Map message body is the evaluation context: its entries become the context attributes, and a targetingKey entry the targeting key. A body of another type is ignored. Not used when the CamelOpenFeatureEvaluationContext header (or an exchange property of that name) holds a Map, which takes precedence. | false | boolean | |
The deadline in milliseconds of the flagd provider. When the endpoint starts, it waits up to twice this time for the provider to be ready (connected to the flagd service, or the flag definitions of flags or flagsResource loaded), and fails to start when it is not. With host, it is also the gRPC deadline of each flag evaluation call. Use a value greater than 0, and a higher value, such as 5000, when the start times out under load. | 500 | int | |
The default value that the evaluation returns when the flag cannot be evaluated, for example when the flag is not found, has another type, or the provider is not ready; the CamelOpenFeatureErrorCode header then holds the error code. For a boolean evaluation the text is parsed with Boolean.parseBoolean, so any value other than true (ignoring case) is false. When no evaluation type is set, true or false (ignoring case) selects a boolean evaluation, and any other value a string evaluation. | false | String | |
The flag key of the feature flag to evaluate. The CamelOpenFeatureFlagKey header (or an exchange property of that name) overrides it for a message. One of them must be set. | String | ||
The flag definitions in the flagd JSON format, given inline, for a flagd provider that evaluates the flags in this JVM. The JSON is written to a temporary file that the flagd provider reads in file mode. Used only when no provider bean is used. Cannot be combined with flagsResource, and host is ignored when it is set. | String | ||
The location of a file with flag definitions in the flagd JSON format, for a flagd provider that evaluates the flags in this JVM. Any Camel resource location, such as classpath:flags.json or file:/etc/camel/flags.json. A file: location is read by the flagd provider itself, which reloads the file when it changes; other locations are read once when the endpoint starts. Used only when no provider bean is used. Cannot be combined with flags, and host is ignored when it is set. | String | ||
The host name of a remote flagd service, which the flagd provider calls over gRPC for each flag evaluation. Used only when no provider bean is used and neither flags nor flagsResource is set. | String | ||
The gRPC port of the remote flagd service set by host. | 8013 | int | |
The name of a FeatureProvider bean in the registry that evaluates the flags (a leading # is optional). When not set, a FeatureProvider bean named flags is used when there is one, and otherwise the endpoint creates a flagd provider from flags, flagsResource or host. The flagd options do not apply to a provider bean. | String | ||
The name of the exchange property that receives the flag value. When set, the message body is not changed; when not set, the flag value replaces the message body. | String | ||
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | boolean | |
The path of a PEM file with the CA certificates that the TLS connection to the remote flagd service trusts, in place of the default trust store of the JVM. Used only when tls is true; a path to a file that does not exist is ignored. | String | ||
Whether the gRPC connection to the remote flagd service set by host uses TLS. When false, the connection is plain text, unless the FLAGD_TLS environment variable enables TLS. | false | boolean |
Message Headers
The OpenFeature component supports the following message header(s), which is/are listed below:
| Name | Description | Default | Type |
|---|---|---|---|
CamelOpenFeatureFlagKey (producer) Constant: | The flag key to evaluate, in place of the flagKey option, for this message. Also read from an exchange property of this name. | String | |
CamelOpenFeatureTargetingKey (producer) Constant: | The targeting key of the evaluation context, which identifies the subject of the evaluation (such as a user or an order) for targeting rules and fractional rollouts. It overrides a targetingKey entry of the context map. Also read from an exchange property of this name. | String | |
CamelOpenFeatureEvaluationContext (producer) Constant: | A Map with String keys whose entries become the attributes of the evaluation context, for the targeting rules of the provider; a targetingKey entry sets the targeting key. Nested Map and List values become structures and lists. It takes precedence over a Map body with contextFromBody. Also read from an exchange property of this name. | Map | |
CamelOpenFeatureEvaluationType (producer) Constant: | The type of flag evaluation for this message: boolean, isEnabled or variant (ignoring case). It overrides the evaluationType path and option. Also read from an exchange property of this name. | String | |
CamelOpenFeatureVariant (producer) Constant: | The variant of the flag that the provider returned, such as on or off. Not set when the provider returns no variant, for example after an error. | String | |
CamelOpenFeatureReason (producer) Constant: | The reason that the provider gave for the value, such as STATIC, TARGETING_MATCH, DEFAULT or ERROR. | String | |
CamelOpenFeatureErrorCode (producer) Constant: | The error code when the flag could not be evaluated and the default value was returned, such as FLAG_NOT_FOUND, TYPE_MISMATCH or PROVIDER_NOT_READY. Not set when the evaluation succeeded. | String |
Message Body
The message body at each side of the OpenFeature component: Consumer is the body of the messages the consumer creates, Consumer reply the bodies a consumer that answers its caller can reply with, Producer input the bodies the producer can send or write, and Producer output the body after the producer.
| Side | Body | Description |
|---|---|---|
Producer input |
| Not read: the flag key, the targeting key and the context come from the options and the CamelOpenFeature headers. With contextFromBody, a Map body is the evaluation context, and any other body is ignored. |
Producer output |
| The value of the flag: a Boolean for a boolean evaluation, which is the default when defaultValue is true or false, or else a String; the defaultValue when the flag is missing or of another type. The CamelOpenFeatureEvaluationType header overrides the evaluation type. With resultProperty the value goes to that exchange property and the body is unchanged.
Not known when |
The bodies are the ones with the default options. A side that is not listed is not known, and tooling does not guess it. The carriers, the sides and the tools that use them are described in Message Body Types.
Provider resolution
The component resolves the feature flag provider in this order:
-
Explicit provider bean (
provider): a bean reference (e.g.,#myProvider) to a customFeatureProviderlooked up from the Camel registry. When set,providertakes precedence overflags,flagsResource, andhost. -
Default bean lookup: a bean named
flagsof typeFeatureProviderin the Camel registry. -
Flagd fallback (
flags,flagsResource, orhost): creates a flagd provider automatically. UseflagsorflagsResourcefor local file-based evaluation, orhostfor a remote flagd gRPC service.
Evaluation type
The evaluation type (boolean or string) can be set as a path parameter in the endpoint URI or as a query parameter / component property:
-
boolean— boolean evaluation (getBooleanValue) -
isEnabled— same asboolean, semantically indicates a feature toggle check -
variant— string evaluation (getStringValue)
When evaluationType appears both as a path parameter and as a query parameter or component property, the path parameter takes precedence.
Examples:
openfeature:flags/boolean?flagKey=enrichment-enabled openfeature:flags/isEnabled?flagKey=enrichment-enabled openfeature:flags/variant?flagKey=checkout-banner openfeature:flags?flagKey=enrichment-enabled&evaluationType=boolean
When evaluationType is not set at all, the type is inferred from defaultValue:
-
When
defaultValueis"true"or"false"(case-insensitive), boolean evaluation is used. -
When
defaultValueis any other string, string evaluation is used.
The default is "false" with no evaluationType, so boolean evaluation is the default.
Evaluation context and targeting key
The OpenFeature evaluation context carries metadata about the current request — such as a user ID, customer tier, or region — so the provider can make targeting decisions. The targeting key is a special field that uniquely identifies the subject of the evaluation (e.g. a user, an order, or a session). Providers use the targeting key for consistent assignment in fractional rollouts and for per-subject targeting rules.
The evaluation context is built from these sources:
-
CamelOpenFeatureEvaluationContextheader or exchange property: when set to aMap<String, Object>, entries are added to the context. An entry with key"targetingKey"is treated as the targeting key. Context values preserve their original types (Boolean, Integer, Double, String, etc.) for accurate provider-side evaluation. -
Message body (opt-in): when
contextFromBody=trueis set and noCamelOpenFeatureEvaluationContextheader or property is present, aMap<String, Object>body is used as the context. This is disabled by default to prevent untrusted inbound messages from supplying targeting attributes. -
CamelOpenFeatureTargetingKeyheader or exchange property: when set, overrides the targeting key from any of the above sources.
Evaluation result details
The producer exposes evaluation details as message headers after each evaluation:
-
CamelOpenFeatureVariant— the variant name returned by the provider -
CamelOpenFeatureReason— the reason string (e.g.TARGETING_MATCH,DEFAULT,STATIC) -
CamelOpenFeatureErrorCode— the error code when evaluation failed (e.g.FLAG_NOT_FOUND,TYPE_MISMATCH)
When an evaluation error occurs, a warning is logged with the flag key, error code, and error message.
Usage
The examples below use flagd flag definitions in flagd JSON format. Store the flag definitions in a file (e.g. flags.json) and configure the component to load them:
camel.component.openfeature.flags-resource = classpath:flags.json For file-based providers (flags / flagsResource), the deadline option controls the initialization wait timeout (internally deadline * 2 ms). The default of 500 ms is usually sufficient, but on heavily loaded machines or CI agents you may want to raise it (e.g. deadline=5000). |
Boolean flag (toggle / detour pattern)
A boolean flag enables or disables a feature. The flag definition declares two variants (on / off) mapping to true / false:
{
"flags": {
"enrichment-enabled": {
"state": "ENABLED",
"variants": { "on": true, "off": false },
"defaultVariant": "on"
}
}
} The route evaluates the flag and stores the result in an exchange property so the original message body is preserved:
-
Java
-
YAML
from("direct:start")
.to("openfeature:flags?flagKey=enrichment-enabled&resultProperty=enrichEnabled")
.choice()
.when(exchangeProperty("enrichEnabled").isEqualTo(true))
.to("direct:enrich-order")
.otherwise()
.to("direct:skip-enrichment")
.end(); - route:
from:
uri: direct:start
steps:
- to:
uri: openfeature:flags
parameters:
flagKey: enrichment-enabled
resultProperty: enrichEnabled
- choice:
when:
- expression:
simple:
expression: "${exchangeProperty.enrichEnabled} == true"
steps:
- to:
uri: direct:enrich-order
otherwise:
steps:
- to:
uri: direct:skip-enrichment Boolean evaluation is the default (evaluationType is unset and defaultValue defaults to "false").
Variant flag (string evaluation)
A variant flag returns a string value rather than a boolean. Set evaluationType to variant — either as a path parameter or query parameter:
{
"flags": {
"checkout-banner": {
"state": "ENABLED",
"variants": {
"summer-sale": "Buy 2 get 1 free!",
"common": "Free shipping on orders over $50"
},
"defaultVariant": "common"
}
}
} -
Java
-
YAML
from("direct:start")
.to("openfeature:flags/variant?flagKey=checkout-banner&resultProperty=banner")
.log("Banner: ${exchangeProperty.banner}"); - route:
from:
uri: direct:start
steps:
- to:
uri: openfeature:flags/variant
parameters:
flagKey: checkout-banner
resultProperty: banner
- log:
message: "Banner: ${exchangeProperty.banner}" The resultProperty option stores the result in an exchange property instead of replacing the message body.
Fractional variant (A/B testing)
A fractional targeting rule splits traffic across variants by percentage. The provider uses the targeting key to assign each request deterministically to a variant — the same targeting key always gets the same variant.
{
"flags": {
"routing-algorithm": {
"state": "ENABLED",
"variants": {
"legacy": "content-based-router",
"new": "dynamic-router"
},
"defaultVariant": "legacy",
"targeting": {
"fractional": [
["legacy", 90],
["new", 10]
]
}
}
}
} The route passes a targeting key so each order ID is consistently assigned to the same variant:
-
Java
-
YAML
from("direct:start")
.setHeader("CamelOpenFeatureTargetingKey", simple("${header.orderId}"))
.to("openfeature:flags/variant?flagKey=routing-algorithm&resultProperty=algorithm")
.toD("direct:route-${exchangeProperty.algorithm}"); - route:
from:
uri: direct:start
steps:
- setHeader:
name: CamelOpenFeatureTargetingKey
expression:
simple:
expression: "${header.orderId}"
- to:
uri: openfeature:flags/variant
parameters:
flagKey: routing-algorithm
resultProperty: algorithm
- toD:
uri: "direct:route-${exchangeProperty.algorithm}" Without a targeting key, fractional evaluation may fall back to a random assignment or the default variant, depending on the provider.
Targeted variant (context-based rollout)
A targeted rule uses evaluation context attributes to decide which variant to return. In this example, enterprise and VIP customer orders get v2 while all others get v1:
{
"flags": {
"order-compliance-v2": {
"state": "ENABLED",
"variants": { "v1": "v1", "v2": "v2" },
"defaultVariant": "v1",
"targeting": {
"if": [
{ "in": [{ "var": "customer_tier" }, ["ENTERPRISE", "VIP"]] },
"v2",
"v1"
]
}
}
}
} The route stores the result in an exchange property and routes dynamically:
-
Java
-
YAML
from("direct:start")
.to("openfeature:flags/variant?flagKey=order-compliance-v2&resultProperty=orderVariant")
.toD("direct:orders-${exchangeProperty.orderVariant}"); - route:
from:
uri: direct:start
steps:
- to:
uri: openfeature:flags/variant
parameters:
flagKey: order-compliance-v2
resultProperty: orderVariant
- toD:
uri: "direct:orders-${exchangeProperty.orderVariant}" The evaluation context is provided via a header — useful when the message body carries business data:
-
Java
-
YAML
from("direct:start")
.setHeader("CamelOpenFeatureTargetingKey", constant("order-123"))
.setHeader("CamelOpenFeatureEvaluationContext",
constant(Map.of("customer_tier", "ENTERPRISE")))
.to("openfeature:flags/variant?flagKey=order-compliance-v2&resultProperty=orderVariant")
.toD("direct:orders-${exchangeProperty.orderVariant}"); - route:
from:
uri: direct:start
steps:
- setHeader:
name: CamelOpenFeatureTargetingKey
expression:
constant:
expression: order-123
- setHeader:
name: CamelOpenFeatureEvaluationContext
expression:
groovy:
expression: "[customer_tier: 'ENTERPRISE']"
- to:
uri: openfeature:flags/variant
parameters:
flagKey: order-compliance-v2
resultProperty: orderVariant
- toD:
uri: "direct:orders-${exchangeProperty.orderVariant}" In YAML, the Groovy expression [customer_tier: 'ENTERPRISE'] makes the map of the evaluation context.
Alternatively, enable contextFromBody=true to use a Map body as the evaluation context:
-
Java
-
YAML
from("direct:start")
.to("openfeature:flags/variant?flagKey=order-compliance-v2"
+ "&resultProperty=orderVariant&contextFromBody=true")
.toD("direct:orders-${exchangeProperty.orderVariant}"); - route:
from:
uri: direct:start
steps:
- to:
uri: openfeature:flags/variant
parameters:
flagKey: order-compliance-v2
resultProperty: orderVariant
contextFromBody: true
- toD:
uri: "direct:orders-${exchangeProperty.orderVariant}" Remote flagd service
For a remote flagd service, configure host (and optionally port, tls, certPath, and deadline):
camel.component.openfeature.host = flagd.example.com
camel.component.openfeature.port = 8013
camel.component.openfeature.tls = true
camel.component.openfeature.cert-path = /etc/tls/ca.crt
camel.component.openfeature.deadline = 1000 Custom provider
OpenFeature is a vendor-neutral specification. Beyond the built-in flagd provider, the OpenFeature community maintains provider implementations for many feature flag services. Examples include LaunchDarkly, Split, Flagsmith, Flipt, ConfigCat, GrowthBook, and AWS AppConfig among others. See the OpenFeature ecosystem page for the full list of available Java providers.
To use a custom provider, add the provider’s Maven dependency to your project and register it as a bean. For example, the env-var provider resolves flag values from environment variables:
<dependency>
<groupId>dev.openfeature.contrib.providers</groupId>
<artifactId>env-var</artifactId>
<version>0.0.12</version>
</dependency> Register the provider as a bean named flags (the default lookup name) or with a custom name:
-
Java
-
YAML
import dev.openfeature.contrib.providers.envvar.EnvVarProvider;
registry.bind("flags", new EnvVarProvider()); - beans:
- name: flags
type: dev.openfeature.contrib.providers.envvar.EnvVarProvider Routes then use the provider without any additional configuration:
-
Java
-
YAML
from("direct:start")
.to("openfeature:flags?flagKey=MY_FEATURE_FLAG&resultProperty=flagValue"); - route:
from:
uri: direct:start
steps:
- to:
uri: openfeature:flags
parameters:
flagKey: MY_FEATURE_FLAG
resultProperty: flagValue Or reference a named provider bean explicitly:
-
Java
-
YAML
from("direct:start")
.to("openfeature:myDomain?flagKey=enrichment-enabled&provider=#myFlagProvider"); - route:
from:
uri: direct:start
steps:
- to:
uri: openfeature:myDomain
parameters:
flagKey: enrichment-enabled
provider: "#myFlagProvider" InMemoryProvider (testing and simple use cases)
The OpenFeature SDK ships with an InMemoryProvider that requires no external service and no additional dependency. Register it as a bean named flags to make it the default provider, or reference it explicitly with the provider option.
import dev.openfeature.sdk.providers.memory.Flag;
import dev.openfeature.sdk.providers.memory.InMemoryProvider;
InMemoryProvider provider = new InMemoryProvider(Map.of(
"feature-x", Flag.<Boolean>builder()
.variant("on", true)
.variant("off", false)
.defaultVariant("on")
.build()));
registry.bind("flags", provider); Routes then use the provider without any additional configuration:
-
Java
-
YAML
from("direct:start")
.to("openfeature:flags?flagKey=feature-x"); - route:
from:
uri: direct:start
steps:
- to:
uri: openfeature:flags
parameters:
flagKey: feature-x Boolean predicate in filter (language)
For boolean predicates in EIP constructs, use the OpenFeature language:
-
Java
-
YAML
from("direct:start")
.filter().language("openfeature", "enrichment-enabled")
.to("direct:enrich-order")
.end(); - route:
from:
uri: direct:start
steps:
- filter:
expression:
language:
language: openfeature
expression: enrichment-enabled
steps:
- to:
uri: direct:enrich-order