{ "minMuleVersion": "4.1.0" }
Feature Flagging Mechanism
Mule runtime engine incorporates a feature flagging mechanism that enables Mule applications to change the behavior of the Mule instance depending on the required minimum Mule version. This feature ensures backward compatibility because it allows Mule applications to continue working on later Mule runtime versions, while new Mule applications can benefit from the latest bug fixes implemented in the Mule instance.
The feature flagging mechanism is automatic. For each Mule application deployed to a Mule instance, Mule determines which features are enabled or disabled based on the application’s minimum Mule version configured in the application descriptor file (mule-artifact.json
) of the Mule app.
By default, Mule runtime engine disables any new features or bug fixes that aren’t backward compatible with Mule applications running in earlier Mule versions. However, it is possible to manage the feature flags configured for each Mule application or all applications running in the same Mule instance.
Configure Feature Flags for a Mule Application
To configure feature flags for a Mule application, change the minMuleVersion
value in the mule-artifact.json
file of your app. This configuration instructs the Mule instance to run this application implementing all features and bug fixes that were released to that particular version and disabling features and bug fixes that are active by default in later Mule versions.
For example, you can run a Mule application in Mule 4.5.0 instructing the Mule instance to apply only the features that don’t change core functionality up to Mule 4.1.0:
mule-artifact.json
fileConfigure Feature Flags for the Mule Instance
An alternative way to configure feature flags is by using system properties. In this case, you can enable or disable each one of the available feature flags. However, configuring feature flags through system properties applies the changes at the Mule instance level, so all applications deployed to this Mule instance behave according to the configured feature flags.
Note that this configuration is compatible with on-premise deployments only because you cannot configure system properties in other deployment targets.
For example, you can configure a Mule 4.5.0 instance to enable and disable specific features for all applications running on this instance:
wrapper.conf
file… wrapper.java.additional.999=-DHONOUR_RESERVED_PROPERTIES_PROPERTY=true wrapper.java.additional.1000=-DCOMPUTE_CONNECTION_ERRORS_IN_STATS_PROPERTY=false
Feature Flags Reference
The following table shows the available feature flags, a description of their functionality, the Mule version in which the flag became available, the earlier minor version releases that enable the flag by default, and the issue ID in which the change was implemented:
Feature Flag | Description |
---|---|
|
When enabled, batch aggregators with fixed size aggregators commit only when a full block is processed. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, connection errors are computed as part of alerts triggering. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, the default error handler added by the Runtime doesn’t roll back a transaction if it doesn’t correspond to have this roll back made. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, DataWeave removes implicit inputs when a variable with the same name is declared at the root level. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, the object’s factories are created with Byte Buddy instead of CGLIB. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, Mule manages extensions imported by a policy in complete isolation from the extensions imported by the Mule application. Also, validations prevent the use of explicit configurations that the application declared as part of the policy initialization. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, the Runtime profiling capabilities become available. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, the Mule XML DSL parser fails when deploying an application that declares a schema that cannot be located. Otherwise, the parser fails if the application also makes use of the namespace to which such a schema is bound. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, profiling consumers implemented by the Runtime are enabled by default. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, DataWeave correctly handles internal exceptions while splitting a payload, preventing subsequent serialization errors. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, reserved properties such as Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, the operation policy’s error resolution is ignored. Therefore, the error mappings of the processor on which the policy is applied are set successfully. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, AbstractForkJoinRouter-based processors, such as Parallel For Each and Scatter-Gather routers, now show detailed error information for their failed routes. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, if the items to iterate over on a parallel-foreach scope are messages (such as the output of an operation that returns Result objects), they are flattened in a way that is consistent with what the foreach scope does. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, the Set Variable component creates a variable even if its value is Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, extensions are only able to load exported resources from the deployable artifacts (application, policy, domain). Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, managed cursor iterators transformed to strings show the representation of the elements instead of generic value Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, error suppression occurs. This feature prevents components such as the Web Service Consumer connector and the Until Successful scope from reporting errors outside their namespaces. Example of an error log extract for a connectivity error at the Web Service Consumer (HTTP:CONNECTIVITY is being suppressed): Error type : WSC:INVALID_WSDL Caused by : HTTP:CONNECTIVITY Suppressed errors are treated as underlying causes that can also be matched by On Error handlers. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, error types validations are enforced even for error handlers/components that aren’t referenced. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, if an application accesses a native library, the rest of its declared native libraries are also loaded. This prevents errors like Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, internal exceptions are rethrown instead of throwing a general Available Since
Enabled by Default Since
Issue ID
|
|
When this property is set to true, DataWeave retains a mixed-content structure instead of grouping text with mixed content into a single text field. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, error types validations are enforced, even for error handlers/components that aren’t being referenced. This feature isn’t configurable by system property. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, Mule trims whitespaces from parameter values defined at the attribute level in the DSL. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, Mule trims whitespaces from CDATA text parameter of pojos in the DSL. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, expression validations are enforced for Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, expression validations are enforced for all DataWeave expressions. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, profiling consumers implemented by Mule are enabled by default. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, the application model is validated with the region classloader. When disabled, it is validated with the application classloader. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, error suppression happens. This affects, for example, the Web Service Consumer connector and the Until Successful scope that always reports errors from their corresponding namespaces (MULE and WSC). Suppressed errors are treated as underlying causes. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, the 'foreach' router generates an Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, the insecure TLS configuration is honored even if there are fields of the TrustStore configured. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, flux sinks are cached using index as part of the key. If a sink is already in use, a new sink is created. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, a new (Source) Policy Context is created for the execution of parallel scopes: ParallelForeach, ScatterGather, and Async. Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, MBeans isn’t registered for Available Since
Enabled by Default Since
Issue ID
|
|
When enabled, the Scheduler doesn’t log exceptions. Available Since
Enabled by Default Since
Issue ID
|