My Oracle Support Banner

Converting WLDF Watch Rules from WLS 10.3.x to Policy Expressions in WLS 12.2.1.x (Doc ID 2305243.1)

Last updated on FEBRUARY 16, 2024

Applies to:

Oracle WebLogic Server - Version and later
Oracle Service Bus - Version to
Information in this document applies to any platform.


When migrating to Oracle WebLogic Server 12.2.1, the WebLogic Diagnostics Framework (WLDF) "Watch Rule" from previous releases has changed to "Policy Expression". 

It is not an easy conversion from watch rules to policy expressions unless very familiar with Java Expression Language (Java EL).

For example, the below watch rule was defined to monitor all datasources under a domain and trigger a notification if its state is anything but Running:

      (${ServerRuntime//[]//State} IN ('Suspended', 'Overloaded', 'Unknown'))

For another example, looking for when an admin/managed server health state is greater than or equal to 3:

      (${ServerRuntime//[]com.bea:Name=AdminServer,Type=ServerRuntime//HealthState.State} >= 3)


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.