Changelog
0.5.14 (September 25th 2015)
setSource
requires components/
directory to exist in base directory to work)Changelog
0.5.13 (April 22nd 2015)
--cache
Changelog
0.5.11 (October 23rd 2014)
setSource
now loads components virtually from <baseDir>/components
to support relative module loadingChangelog
0.5.10 (October 23rd 2014)
ComponentLoader.load
method now calls its callback with the Node.js style error, instance
signature to allow catching component loading issuesgetSource
now returns correct type for graphsconnect
stop
and start
methodsisRunning
methodsetDebug
and getDebug
methodsPorts.add
is now chainablestart
port was removed from subgraphsThese changes mean that in situations where a subgraph is used standalone without a network around it, you need to call component.start()
manually. This is typical especially in unit tests.
Changelog
0.5.8 (August 4th 2014)
read-installed
to the latest versiondropInput
option for WirePattern to drop premature data while parameters not yet received. See #239Changelog
0.5.7 (July 23rd 2014)
required: true
the port needs to be connected in order for the component to workMultiError
pattern is enabled by default when using WirePattern
and supports forwardGroups
option for error packets.WirePattern
components now deal more consistently with groups and disconnect eventsChangelog
0.5.6 (June 23rd 2014)
icon
key in graph propertiesWirePattern
components, allowing them to have configuration parameters that need to be set only once. Example:component = new noflo.Component
component.inPorts.add 'path',
datatype: 'string'
required: true
component.inPorts.add 'delay',
datatype: 'int'
required: false
component.inPorts.add 'line',
datatype: 'string'
component.inPorts.add 'repeat',
datatype: 'int'
component.outPorts.add 'out',
datatype: 'object'
component.outPorts.add 'error',
datatype: 'object'
noflo.helpers.WirePattern component,
in: ['line', 'repeat']
out: 'out'
params: ['path', 'delay']
async: true
, (data, groups, out, callback) ->
path = component.params.path
delay = if component.params.delay then component.params.delay else 0
doSomeThing path, delay, data.line, data.repeat, (err, res) ->
return callback err if err
out.send res
callback()