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.
- Examples
- usageSharing/usageSharing.js.
Public Member Functions | |
| constructor (flowElements=[], suppressProcessExceptions=false, dataFileUpdateService=null) | |
| Constructor for Pipeline. | |
| getElement (key) | |
| get a FlowElement by its dataKey | |
| on (listener, callback) | |
| Method to attach listeners to the logger Shorthand access to the enclosed event emitter. | |
| log (type, message) | |
| Shorthand to trigger a message on the pipeline's eventEmitter. | |
| createFlowData () | |
| Create a FlowData element from the pipeline. | |
| updatePropertyDataBaseForElement (flowElement) | |
| Update pipeline's property database for FlowElement. | |
Member Function Documentation
◆ constructor()
|
inline |
Constructor for Pipeline.
- Parameters
-
{FlowElement[]} flowElements list of FlowElements to add to the Pipeline {boolean} suppressProcessExceptions If true then pipeline will suppress exceptions added to FlowData. {DataFileUpdateService} dataFileUpdateService Service that registers FlowElements
A logger for emitting messages @type {EventEmitter}
@type {object}
@type {object}
◆ createFlowData()
|
inline |
◆ getElement()
|
inline |
get a FlowElement by its dataKey
- Parameters
-
{string} key the datakey of the FlowElement
- Returns
- {FlowElement} the FlowElement for the datakey
◆ log()
|
inline |
Shorthand to trigger a message on the pipeline's eventEmitter.
- Parameters
-
{string} type type of message {*} message message to store in the log
◆ on()
|
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
◆ updatePropertyDataBaseForElement()
|
inline |
Update pipeline's property database for FlowElement.
- Parameters
-
{FlowElement} flowElement FlowElement to update
- Returns
- {void}
