Share via


Implementing triggers

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Implementing triggers

Suppose you create a new trigger named PrivateTrigger, which is associated with the private queue MyComputer\MyQueue and has two rules attached to it: MyRule1 and MyRule2.

Each of these rules defines a condition (such as "Message label contains marketing") and an action to be taken when the condition is true (such as "open MSPaint.exe" with the parameter Message label).

When a message arrives at MyComputer\MyQueue, the Message Queuing Triggers service is notified. Next, for the trigger, PrivateTrigger, defined for that queue, the rules MyRule1 and MyRule2, which are attached to that trigger, are applied. Last, Microsoft Paint is opened if all the conditions for those rules are satisfied (are true).

For more information about implementing the Message Queuing Triggers service, see Installing Message Queuing triggers.