Your queues handle thousands of messages. To make managing messages easier, you can create and apply a message criteria configuration to filter messages in viewlets across your management system.
When a message criteria configuration is applied, all message actions (browsing, copying, moving, rerouting, and deleting) are filtered based on the configuration. For mass actions such as Copy All, Move All, and Delete All, you can choose which message criteria configuration to apply. Message criteria that are applied to a viewlet also impact the Put New action and can be applied to messages loaded through the Load from File option.
See Locating a message across all queue managers for an example of when a message criteria configuration is used.
Jump ahead: |
View existing message criteria configurations
- Click the Settings button located in the toolbar to open the Settings window.
At the User Settings level, the Message Criteria list includes the message criteria records that you (the current user) have created. To add, edit, and delete criteria records, you must have the Manage Private Message Criteria security right.
At the Global Settings level, the Message Criteria list includes global message criteria records only. To add, edit, and delete global criteria records, you must have the Manage Global Message Criteria security right. - On the Message Commands tab, under Message Criteria Settings, click Configure to open the Message Criteria window.
- All existing message criteria configurations are listed below Name. (If you are accessing the Message Criteria dialog when editing a viewlet, you can view shared records by turning on the Shared Criteria slider.)
- Click the buttons on the top right to view details of the configuration.
Create new message criteria configurations
Example 1: Search for messages by text data
In this example, we will search for a message by looking for the account number that is within the message text.
- Follow steps 1-3 in the section immediately above.
- Click New (the first button). A new blank row appears in the list.
- Double-click the row to enter a name for the configuration.
- Click on the new configuration to select it (the row appears dark grey).
- Click the Message Data Criteria button on the top right to specify the data to look for.
- Enter the data:
- Click Save on the Message Data Criteria dialog.
- Verify that the Account criteria record is selected on the Message Criteria dialog and click Save.
- On the Edit Viewlet dialog, make sure that the Find Messages checkbox is selected, and that the "Account" message criteria record is displayed in the Search Criteria box.
- Click Apply Changes. Viewlet data is refreshed.
- Click the cell in the viewlet that contains the message count (for example, Current Depth or Pending Message Count).
- The Console panel displays the search results. Open the message to view its data:
See Filter Configurations for descriptions of the buttons on the Message Criteria dialog.
Example 2: Search for messages by put date
In this example, we will search for a message according to the date it was put on the queue.
- Follow steps 1-3 in the section above.
- Click New (the first button). A new blank row appears in the list.
- Double-click the row to enter a name for the configuration.
- Click on the new configuration to select it (the row appears dark grey).
- Click the Message Descriptor Properties button on the top right to specify the data to look for.
- Enter the data:
- Click Save on the Message Descriptor Properties dialog.
- Verify that the Date criteria record is selected on the Message Criteria dialog and click Save.
- On the Edit Viewlet dialog, make sure that the Find Messages checkbox is selected, and that the "Date" message criteria record is displayed in the Search Criteria box.
- Click Apply Changes. Viewlet data is refreshed.
- Click the cell in the viewlet that contains the message count (for example, Current Depth or Pending Message Count).
- The Console panel displays the search results. Messages that meet the criteria are listed::
Example 3: Search for messages by properties
To use this search method, the messages that you are searching for must contain the properties that you are searching for. These properties are in the form of name-value pairs.
- Follow steps 1-3 in the section above.
- Click New (the first button). A new blank row appears in the list.
- Double-click the row to enter a name for the configuration.
- Click on the new configuration to select it (the row appears dark grey).
- Click the Properties button on the top right to specify the name-value pair to look for.
- Click Add to add a property.
- Enter the Name of the property and its Value.
- (Optional.) Add more name-value pair criteria records by clicking Add and repeating the previous step.
- Click Save on the Message Properties Criteria dialog.
- Verify that the criteria record you just created is selected on the Message Criteria dialog and click Save.
- On the Edit Viewlet dialog, make sure that the Find Messages checkbox is selected, and that your new message criteria record is displayed in the Search Criteria box.
- Click Apply Changes. Viewlet data is refreshed.
- Click the cell in the viewlet that contains the message count (for example, Current Depth or Pending Message Count).
- The Console panel displays the search results. Messages that contain the name-value pair (or pairs) that you specified are listed.
Delete message criteria configurations
- Open the Message Criteria dialog. The Message Criteria dialog can be accessed from the Edit Queue Viewlet Queue tab or from the User Settings Message Commands tab Configure button.
- Click the configuration that you want to delete (the row appears dark grey).
- Click . There is no delete confirmation.
Share message criteria configurations
To share criteria records with groups, you must have both the Manage Private Message Criteria and the Manage Shared Message Criteria security rights.
To share any record with one or more groups:
- Double-click its name. The Private icon is displayed in front of the name of the record.
- Click the Private icon to share the record. The icon changes to a Shared icon.
- From the popup menu, click the eye icon next to the groups you want to share the dashboard with. The eye icon changes to green for selected groups.
Apply a message criteria configuration
Perform the steps below to apply a message criteria configuration. When a message criteria configuration is applied, all message actions (browsing, copying, moving, rerouting, and deleting) are filtered based on the configuration.
- Click the Settings button in the toolbar.
- On the Message Commands tab, select a configuration from the Message Criteria list.
- The selected message criteria configuration is now applied. It remains in effect until you change it.
Remove message criteria configuration
If you no longer want your messages filtered, you can remove the filter configuration.
- On the Message Commands tab of the Settings window, click the X next to the selected criteria record on the Message Criteria list.
- Click Save Changes. Messages will no longer be filtered.