\r\n

51Degrees Pipeline Node.js  4.4

51Degrees Pipeline for Node.js

JSONBundlerElement Class Reference

Detailed Description

The JSONBundler aggregates all properties from FlowElements into a JSON object It is used for retrieving via an endpoint from the client side via the JavaScriptBuilder and also used inside the JavaScriptBuilder itself to pass properties to the client side.

Both this and the JavaScriptBuilder element are automatically added to a pipeline unless specifically ommited in the PipelineBuilder

Inheritance diagram for JSONBundlerElement:

[legend]

Collaboration diagram for JSONBundlerElement:

[legend]

Public Member Functions

 constructor ()
 processInternal (flowData)
The JSON Builder extracts all properties and serializes them into JSON. More...

Public Member Functions inherited from FlowElement

 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)

Member Function Documentation

◆ processInternal()

JSONBundlerElement::processInternal (   flowData )
inline

The JSON Builder extracts all properties and serializes them into JSON.

Parameters
{FlowData} - flowData the FlowData being processed