51Degrees Pipeline Node.js  4.1

51Degrees Pipeline for Node.js

Pipeline Class Reference

Detailed Description

Pipeline holding a list of flowElements for processing, can create flowData that will be passed through these, collecting elementData Should be constructed through the PipelineBuilder class.

Public Member Functions

 constructor (flowElements=[])
Constructor for Pipeline. More...
 getElement (key)
get a FlowElement by its dataKey More...
 on (listener, callback)
Method to attach listeners to the logger Shorthand access to the enclosed event emitter. More...
 log (type, message)
Shorthand to trigger a message on the pipeline's eventEmitter. More...
 createFlowData ()
Create a FlowData element from the pipeline. More...
 updatePropertyDataBaseForElement (flowElement)

Member Function Documentation

◆ constructor()

Pipeline::constructor (   flowElements = [] )
inline

Constructor for Pipeline.

Parameters
{FlowElements[]} - flowElements list of FlowElements to add to the Pipeline

◆ createFlowData()

Pipeline::createFlowData ( )
inline

Create a FlowData element from the pipeline.

Returns
{FlowData} a FlowData object for the Pipeline containing methods for adding evidence and processing via the FlowElements in the Pipleine.

◆ log()

Pipeline::log (   type,
  message  
)
inline

Shorthand to trigger a message on the pipeline's eventEmitter.

Parameters
{string} - type type of message
{mixed} - message message to store in the log

◆ on()

Pipeline::on (   listener,
  callback  
)
inline

Method to attach listeners to the logger Shorthand access to the enclosed event emitter.

Parameters
{string} - listener type of message to listen to
{Function} - callback a callback to react to the log