...
Info | |||||||
---|---|---|---|---|---|---|---|
| |||||||
This library has not been completely ported to the Node pico engine. However, it supports
If the eid is omitted (null) or |
The event
library provides functions for understanding an event and the environment in which it was raised as well as actions for sending eventsproperties, a function for getting attribute values, and an action for sending events.
event properties
TheĀ event
library provides five properties:
event:domain
The value of this property is the domain which caused the rule to select.
event:name
The value of this property is the event type (or name) which caused this rule to select.
event:eid
The value of this property is the event identifier from the event to which this rule is reacting.
event:time
The value of this property is the time at which the event was received by the pico-engine.
event:attrs
The value of this property is a map of the attributes sent with the event to which this rule is reacting.
event function
event:attr
When this function is called with an attribute name, it returns the attribute value.
event action
event:send
As defined in the compatibility box above, this allows rules to send an event to another pico, whether on the same pico-engine or not.
Warning | ||
---|---|---|
| ||
From this point, this page describes older pico engines. |
Table of Contents | ||
---|---|---|
|
...