| Name | Description |
|---|---|
Ext | Functions to operate on Events |
| Name | Signature and Synopsis |
|---|---|
acknowledgeEvent | void acknowledgeEvent (SimpleEvent evt)Manually and immediately acknowledge the event evt passed. |
assertAdvisoryEvent | void assertAdvisoryEvent(String category, String type, String message)Assert an AdvisoryEvent with user defined fields. |
assertEvent | SimpleEvent assertEvent (SimpleEvent event)Asserts a SimpleEvent into the working memory. |
consumeEvent | void consumeEvent (Event evt)Consume the event evt passed. This method removes the event
from working memory. |
createEvent | SimpleEvent createEvent (String xslt-template)Create a SimpleEvent using XSLT EventBuilder. |
createEventFromJSON | Event createEventFromJSON(String uri, String json)This function returns an event instance using the json . The JSON String should adhere to the structure corresponding to the event definition. |
createEventFromXML | Event createEventFromXML (String uri, String xml)This function returns an event instance using the xml . The XML String should adhere to the
XSD schema corresponding to the event definition. |
getByExtId | SimpleEvent getByExtId (String extId) |
getByExtIdByUri | SimpleEvent getByExtIdByUri (String extId, String uri)Returns the SimpleEvent existing in Working Memory using extId as the external ID. |
getById | Event getById (Object Id) |
getByIdByUri | SimpleEvent getByIdByUri (long id, String uri) |
getDestinationURI | String getDestinationURI (SimpleEvent event)Returns the destination URI of the specified Event. |
getPayload | Object getPayload(SimpleEvent event)Returns the payload associated with the event |
getPayloadAsBytes | Object getPayloadAsBytes(SimpleEvent input)This function returns event payload as a byte[] |
replyEvent | boolean replyEvent(SimpleEvent request, SimpleEvent reply)Replies with a reply SimpleEvent to a request SimpleEvent.
If a reply destination on the request SimpleEvent is specified, it will be
used to send the reply SimpleEvent, else no action is taken. |
requestEvent | Object requestEvent(SimpleEvent requestEvent, String responseEventURI, String requestEventDestinationURI, long timeout, String properties)Make synchronous request/response calls using JMS. Sends an event and waits for a response to be returned.Each request creates and listens on a JMS temporary queue for a response. |
routeTo | SimpleEvent routeTo(SimpleEvent event, String destinationPath, String properties) {Routes a SimpleEvent to a Destination specified in destinationPath
with a list of Properties properties. These properties will override the
default properties specified in the Destination. |
sendEvent | SimpleEvent sendEvent (SimpleEvent evt)Sends the SimpleEvent evt to the configured channel and destination. |
serializeToJSON | String serializeToJSON(SimpleEvent event, boolean pretty) |
serializeToXML | String serializeToXML(SimpleEvent event) |
setPayload | void setPayload(SimpleEvent target, SimpleEvent source)Makes the target SimpleEvent use the same payload object as the source SimpleEvent. |
validatePayload | void validatePayload(SimpleEvent event) |