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 JUNE 28, 2018

Applies to:

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

Goal

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//[weblogic.management.runtime.JDBCDataSourceRuntimeMBean]//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//[weblogic.management.runtime.ServerRuntimeMBean]com.bea:Name=AdminServer,Type=ServerRuntime//HealthState.State} >= 3)

Solution

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms