Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Note -> Info


Noteinfo
titleEngine Compatibility

The Node pico engine only supports the alternate encoding at this time.

...

The following key-value pairs are used:

keyvaluerequired?
_domainthe event domainyes
_type

the event type. _name is also accepted for this attribute.

yes
_asyncraise the event asynchronouslyno
_epiendpoint identifierno
_eplendpoint locationno
_ridsa semicolon delimited list of ruleset identifiers. When the RID list is not specified, KRE fires any rule that is salient for the given event domain and type.no
_timestampthe timestamp for the event, if different than the time the ESL is calledno

Keys with a leading underscore are reserved. Attributes are encoded as key-value pairs in the usual way. 

When sent as the body of an HTTP POST the attributes must be encoded using one of the methods shown in the following table. Note that the Content-Type header must be set to the appropriate mime-type for the event consumer to understand the message.

encodingmime-type
formapplication/x-www-form-urlencoded
JSONapplication/json

If the body is JSON-encoded, the encoding should be a JSON object containing the keys and values as follows:

...

When events are processed synchronously, the results of the processing, either a JSON-encoded directive document or a JavaScript program is returned to the generator. Actions in KRL are responsible for creating the response. 

...