Event

Description

Functions to operate on Events

Categories

NameDescription
ExtFunctions to operate on Events

Functions

NameSignature and Synopsis
assertEventSimpleEvent assertEvent (SimpleEvent event)
Asserts a SimpleEvent into the working memory.
consumeEventvoid consumeEvent (Event evt)
Consume the event evt passed. This method removes the event from working memory.
createEventSimpleEvent createEvent (String xslt-template)
Create a SimpleEvent using XSLT EventBuilder.
createEventFromJSONEvent 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.
createEventFromXMLEvent 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.
getByExtIdSimpleEvent getByExtId (String extId)
Returns the SimpleEvent existing in Working Memory using extId as the external ID.
getByExtIdByUriSimpleEvent getByExtIdByUri (String extId, String uri)
Returns the SimpleEvent existing in Working Memory using extId as the external ID.
getByIdEvent getById (long Id)
Returns the Event using Id as the internal ID.
getByIdByUriSimpleEvent getByIdByUri (long id, String uri)
Returns the SimpleEvent existing in Working Memory using id as the internal ID.
getDestinationURIString getDestinationURI (SimpleEvent event)
Returns the destination URI of the specified Event.
getPayloadObject getPayload(SimpleEvent event)
Returns the payload associated with the event
getPayloadAsBytesObject getPayloadAsBytes(SimpleEvent input)
This function returns event payload as a byte[]
replyEventboolean 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.
requestEventObject 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.
routeToSimpleEvent 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.
sendEventSimpleEvent sendEvent (SimpleEvent evt)
Sends the SimpleEvent evt to the configured channel and destination.
setPayloadvoid setPayload(SimpleEvent target, SimpleEvent source)
Makes the target SimpleEvent use the same payload object as the source SimpleEvent.