kronos-message
v2.2.0
Published
The message object is the 'data' object which will be send from step to step
Downloads
5
Readme
kronos-message
The message object is the 'data' object which will be send from step to step
API Reference
createMessage(newData, oldRequestMessage)
Creates a new request message structure. It will merge the new data into a copy of the old request. Only thf fields 'info' and 'hops' will be copied
Kind: global function
| Param | Type | Description | | --- | --- | --- | | newData | object | This json is new generated data by the step. It has the follwing structure. newData : { "info" : {}, "payload" : } | | oldRequestMessage | object | The request message this step has received |
addHop(message, stepName, stepType, endpoint)
Adds a new way point to the message
Kind: global function
| Param | Type | Description | | --- | --- | --- | | message | object | The message to add the new hop | | stepName | string | The name of the current step which issues this way point | | stepType | string | The typeName of the step | | endpoint | string | The name of endpoint the message is routed through |
install
With npm do:
npm install kronos-message
license
BSD-2-Clause