# WLOC Administration Console Online Help

# Quickly define and assign process policies based on MBean attributes

The Process Metrics tab on the Process page enables you to quickly define and automatically assign constraints that are based on the value of an MBean attribute.

Notes:

- WLOC does not support assigning constraints for Open MBeans.
- The service must be deployed in order to be able to browse to the MBean attributes. For more information, see Deploy services.

To quickly define and assign process policies based on MBean attributes.

1. Access the Service page in one of the following ways:
   - Click the Inventory tab in the WLOC navigation bar, expand the Services list in the Inventory pane, and click the name of the Service.
   - Click the Home tab in the WLOC navigation bar, click Services under Manage Inventory, and click the name of the service in the Services table.
2. Click the JVM instance in the Configured Process Groups table for which you want to define a policy.
3. Click the Process Metrics tab on the Process page.

   The MBeans registered in the MBean server for the selected JVM instance are displayed.

4. To filter the list of MBeans, enter Column=Value in the text box and click Filter.

   Column specifies the table column name on which you want to filter Value specifies a string value on which to filter the contents. To clear the filter, click Clear Filter.

5. Click the MBean that you want to use to define the constraint.
6. Select the radio button next to the attribute that you want to use to define the constraint.

   Only attributes that can be selected have a radio button associated with them. Complex types are not supported in policies.

   Note: You can use the breadcrumbs above the table to navigate back to the JVM instance or list of JVM instances.

7. Click Create Policy.
8. Set the policy properties, as required.

   Field | Description
   --- | ---
   Name | Name of the policy.
   Operator | Operator to use for comparison. Valid values include: Less Than, Greater Than, Equal to, and Matches. The Matches operator can be used with String values only.
   Value | Value used for comparison using the operator.
   Evaluation Period | Interval of time (in milliseconds) to wait before re-evaluating the constraint.
   Run Action | Action to use for the policy. Select an action from the drop-down list. For more information about defining actions, see .
   Run Pipeline | Action pipeline to use for the policy. Select an action pipeline from the drop-down list. For more information about defining action pipelines, see . Note: You can select either an action or action pipeline for the policy but not both.
   Automatic Console Notification | Automatically generates a console notification when the specified action for the policy is violated. A notification is also automatically generated when the action taken to rectify the SLA violation has completed. This option is enabled by default for any bound constraint. However, you can decline using the default console notification on a per-constraint basis by clearing this check box while creating or updating the binding. By disabling this option, the automated notification is not sent for anything bound to this rule. Note: Oracle recommends not using this feature if you are already using the full-featured Console notification as a defined action, as this could potentially cause a notification conflict.

9. Click Finish.

   The policy assignment is created and the following confirmation message is displayed:

       Binding created successfully