Enabling and disabling event sources

When events are configured for a message flow and deployed to the integration node, you can enable and disable individual events. If you enable and disable events from the command line, you do not need to redeploy the message flow. If you use the Message Flow editor to enable or disable events, you must redeploy the flow.

About this task

To enable or disable events, follow the instructions in one of the following sections:

Enabling and disabling events from the command line

Before you begin

Configure events by using either monitoring properties in the Message Flow editor, or a monitoring profile configurable service:

About this task

To enable or disable events from the command line, complete the following steps.

Procedure

Use the mqsichangeflowmonitoring command, as shown in the following examples.
  • To enable events:
    mqsichangeflowmonitoring IBNODE 
         -e default 
         -f myMessageFlow 
         -s "Node1_Label.terminal.out,Node2_Label.terminal.in" 
         -i enable
  • To disable events:
    mqsichangeflowmonitoring IBNODE 
         -e default 
         -f myMessageFlow 
         -s "Node_Label.terminal.catch" 
         -i disable

You can enable or disable multiple events at once. The change of state takes effect immediately.

If you configured events by using monitoring properties, the change persists if the message flow is restarted, but is lost if the message flow is redeployed. To make the change permanent, you must also update the monitoring properties.

Tip:
  • When you specify values for the -s parameter, use the Event source address property of the event, not the Event name property.
  • To find the list of configured event sources for a message flow, use the mqsireportflowmonitoringcommand, as shown in the following example:
    mqsireportflowmonitoring IBNODE 
          -e default 
          -f myMessageFlow 
          -n 
  • If you configured events by using monitoring properties, you can see a list of the configured event sources in the Message Flow editor by completing the following steps.
    1. Open the message flow by using the Message Flow editor.
    2. Click the canvas.
    3. Select the Monitoring tab in the Properties view.
    The monitoring events that you defined are shown.

Enabling and disabling events from the Message Flow editor

Before you begin

Configure events by using either monitoring properties in the Message Flow editor (see Configuring monitoring event sources by using monitoring properties).

About this task

To enable and disable event sources by using the Message Flow editor, complete the following steps.

Procedure

  1. Open the message flow in the editor.
  2. Click the canvas.
  3. Select the Monitoring tab in the Properties view.
    The monitoring events that you defined are shown.
  4. Select Enabled for each event that you want to enable.

    To disable a single event, clear the check box for that event. To disable all events, click Uncheck All.

  5. Save the message flow.
  6. Rebuild and redeploy the BAR file.