Name | Description |
---|---|
Ext | Functions to operate on Events |
Name | Signature and Synopsis |
---|---|
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 a event instance using the json . The JSON String should adhere to the
XSD schema corresponding to the event definition. |
createEventFromXML | Event createEventFromXML (String uri, String xml) This function returns a event instance using the xml . The XML String should adhere to the
XSD schema corresponding to the event definition. |
getByExtId | SimpleEvent getByExtId (String extId) Returns the SimpleEvent existing in Working Memory using extId as the external ID. |
getByExtIdByUri | SimpleEvent getByExtIdByUri (String extId, String uri) Returns the SimpleEvent existing in Working Memory using extId as the external ID. |
getById | Event getById (long Id) Returns the Event using Id as the internal ID. |
getByIdByUri | SimpleEvent getByIdByUri (long id, String uri) Returns the SimpleEvent existing in Working Memory using id as the internal ID. |
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. |
setPayload | void setPayload(SimpleEvent target, SimpleEvent source) Makes the target SimpleEvent use the same payload object as the source SimpleEvent. |