Administration Console Online Help

Previous Next Open TOC in new window
Content starts here

Construct policy expressions

Before you begin

Create policies for a diagnostic system module


The console provides a number of controls for constructing a policy expression. You can build up an expression using these basic operations:

Note:

The following steps describe how to create a policy expression using the deprecated WLDF query language. The Java Expression Language (EL) has replaced the WLDF query language in WebLogic Server 12.2.1. However, the Administration Console still supports existing policy expressions constructed in the WLDF query language.

For more information on constructing EL policy expressions, see Construct Java Expression Language (EL) policy expressions.

To construct a policy expression using the WLDF query language:

  1. If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center).
  2. In the left pane, expand Diagnostics and select Diagnostic Modules.
  3. In the Diagnostic System Modules table, select the diagnostic system module containing the policy you want to edit.
  4. Select the Policies and Actions > Policies page.
  5. In the Policies table, select the name of the policy for which you want to edit the policy expression.
  6. Select the Rule Expressions page.
  7. In the Current Policy field, click Edit and then type or paste the expression. Use the syntax given in Use the WLDF query language to create a policy expression .
  8. Click OK. If the expression is complete, click Save. If you want to continue to construct a more complex expression, go to step 8, below.
  9. On the Config Policy Expressions page, under Expressions, click Add Expressions.
  10. If the policy rule is a Server Log, Domain Log, or Event Data rule, skip to the next step. If the policy rule is a Collected Metrics rule:
    1. On the Add Expression page, select either DomainRuntime or ServerRuntime from the MBean Server Location drop-down. Then click Next.
    2. Select a type from the MBean Type list, then click Next.
    3. On the Select Instances page, select an instance from the Instance drop-down. Click Next.
    4. Go to the next step.
  11. On the Add Expression page, select an attribute from the Message Attribute list.
  12. Select an operator from the Operator list.
  13. Enter a value in the Value field. The value must be an appropriate value for the message attribute chosen above.
  14. Click OK.
  15. If the expression is complete, click Save. If you want to continue to construct a more complex expression, go to the next step.

    For Harvester (Configured Metrics) policy expressions, you can use wildcards in instance names, as well as specify nested or complex attributes in the expression. See Using Wildcards in Expressions for more information.

  16. Notice that when you write or construct a simple expression under Current Policy, the expression is also inserted under Expressions. When you add subsequent simple expressions, they too are inserted under Expressions. Multiple simple expressions are separated by a selection box listing available operators. You can now edit the expression, with any of the following options:
    1. To change the operator, select the appropriate operator from the list.
    2. To group two or more expressions, select the check boxes adjacent to the expressions you want to group. Click Combine.
    3. To ungroup two or more expressions, select the check boxes adjacent to the expressions you want to ungroup. Click Uncombine.
    4. To move one or more expressions up or down, select the check box(es) adjacent to the expression(s) you want to move. Click Move Up or Move Down.
    5. To delete one or more expressions, select the check box(es) adjacent to the expression(s) you want to delete. Click Remove.
    6. To negate one or more expressions, select the check box(es) adjacent to the expression(s) you want to negate. Click Negate.
  17. Click Save.
  18. In the Change Center, click Activate Changes.

Back to Top