Broker 10.15 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | Using the Callback Model | Dispatching Callback Functions | Event Dispatching Rules
 
Event Dispatching Rules
When an event is received in the callback model, the following rules are used to dispatch the event.
1. If the received event has a tag field and the tag matches a registered callback, the received event is dispatched to that callback function.
2. If the received event has a subscription identifier, the event is dispatched once to each callback that matches the subscription identifier. If the event matches two event subscriptions with the same subscription identifier, the event will be dispatched twice to the callback function for that identifier.
3. The received event will be dispatched to the general callback function if the tag did not match any callback and:
a. At least one subscription identifier did not match a specific callback.
b. No subscription identifiers were matched because the event was delivered.