Simple Events : Working with Events in Rules

Working with Events in Rules
This section explains various aspects of using events in rules.
See also Using Scheduler Functions (Requires Cache OM).
Explicitly Assert Events Created in Rules
At runtime, event instances that are created using rules are not automatically asserted. You must explicitly assert such events, for example using the Event.assertEvent() function.
Events that are created from incoming messages, on the other hand, are automatically asserted.
Specifying Default and Non-Default Destinations
TIBCO BusinessEvents includes two functions that allow you to send simple events out to another application: Event.sendEvent() and Event.routeTo().
Event.sendEvent() automatically sends the event to its default destination.
Event.routeTo takes a destination as an argument, ignoring the event’s default destination.
With routeTo you can direct an event to a destination on a different channel from the event’s default destination. You can also override the properties of the destination, for example, the subject.
You cannot, however, override the properties of the channel itself, for example, the network field in a Rendezvous channel.
Scheduling Simple Events
You can use two methods to schedule simple events:
Each method is appropriate in different situations. See Chapter 9, Time Events and Scheduler Functions for details.