Skip to content

The message object is the 'data' object which will be send from step to step

License

Notifications You must be signed in to change notification settings

Kronos-Integration/message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

@kronos-integration/message

The message object is the 'data' object which will be send from step to step

API

Table of Contents

createMessage

Creates a new request message structure. It will merge the new data into a copy of the old request. Only the fields 'info' and 'hops' will be copied

Parameters

  • 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

Adds a new way point to the message

Parameters

  • 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-integration/message

license

BSD-2-Clause

About

The message object is the 'data' object which will be send from step to step

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •