varo@1.0.3
This adaptor exports the following from common:
- alterState()
- combine()
- cursor()
- dataPath()
- dataValue()
- each()
- field()
- fields()
- fn()
- fnIf()
- http
- lastReferenceValue()
- merge()
- sourceValue()
Functions
convertToEms
convertToEms(messageContents) ⇒ Operation
Processes EMS data from the provided list of message contents.
Param | Type | Description |
---|---|---|
messageContents | Array | Array of message content objects. |
This operation writes the following keys to state:
State Key | Description |
---|---|
data | The converted, EMS-compliant version of each message contents. |
Example: Convert data to EMS-compliant data.
convertToEms(
[
{
metadata: { content: '', filename: '' },
data: { content: '', filename: '' }
}
]
);