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
Enabling and disabling events from the command line
Before you begin
About this task
Procedure
- 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.
- 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.
- Open the message flow by using the Message Flow editor.
- Click the canvas.
- Select the Monitoring tab in the Properties view.
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).