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. |
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. |
getById | Event getById (long Id) Returns the Event 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. |
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) set the target SimpleEvent's payload from the source SimpleEvent. It is by reference only. Only object ptr is copied. It copies the raw message It returns the target SimpleEvent for further statements. |