◆ _log()
| FlowElement::_log | ( | type, | |
| message | |||
| ) |
Internal log.
- Parameters
-
- {string} - type log type
- {*} - message message to log
\r\n
A FlowElement is placed inside a pipeline It receives Evidence via a FlowData object It uses this to optionally create ElementData on the Flowdata It has a unique dataKey which is used to extract data from the FlowData Any errors in processing are caught in the FlowData's errors object.
| constructor ({ processInternal, dataKey, properties={}, evidenceKeyFilter }={})
Constructor for flowElement class. More...
| |
| onRegistration (pipeline, flowElement)
Internal function to be called when a FlowElement is added to pipeline, runs through any registrationCallbacks on the FlowElement. More...
| |
| ready ()
Function called to check if a FlowElement is ready Used when there are asynchronous initialisation steps. More...
| |
| processInternal (flowData)
Internal process function for a particular flowElement called (via the flowElement.process() method) when flowData generated by a pipleline is processsed. More...
| |
| process (flowData)
To allow actions to take place before and after a FlowElement's processInternal function runs, a process wrapper is run first. More...
| |
| updateProperties ()
Call this function to update the properties meta database in all the pipelines this flowElement has been added to. More...
| |
| getProperties ()
Get a flowElement's properties. More...
| |
| _log (type, message)
Internal log. More...
|
| FlowElement::_log | ( | type, | |
| message | |||
| ) |
Internal log.
| FlowElement::constructor | ( | { processInternal, dataKey, properties={}, evidenceKeyFilter } = {}
| ) |
Constructor for flowElement class.
@type {Function[]}
@type {Pipeline[]}
| FlowElement::getProperties | ( | ) |
Get a flowElement's properties.
By default returns a promise wrapped version of the object's properties list Can return standard value or promise
| FlowElement::onRegistration | ( | pipeline, | |
| flowElement | |||
| ) |
Internal function to be called when a FlowElement is added to pipeline, runs through any registrationCallbacks on the FlowElement.
| FlowElement::process | ( | flowData | ) |
To allow actions to take place before and after a FlowElement's processInternal function runs, a process wrapper is run first.
| FlowElement::processInternal | ( | flowData | ) |
Internal process function for a particular flowElement called (via the flowElement.process() method) when flowData generated by a pipleline is processsed.
Overriden by instances of this base class
| FlowElement::ready | ( | ) |
Function called to check if a FlowElement is ready Used when there are asynchronous initialisation steps.
| FlowElement::updateProperties | ( | ) |
Call this function to update the properties meta database in all the pipelines this flowElement has been added to.