Questions tagged [noflo]

NoFlo is a JavaScript implementation of Flow-Based Programming (FBP), a specific type of dataflow programming, for Node.js and browser.

78 questions
6
votes
1 answer

Which of these approaches should be used to wait for input on all ports before sending packets?

I'm still learning a lot about how FBP and NoFlo works from a process perspective, so while I can hack something together that does the job, I'm unsure whether I'm introduce problems somewhere else. In this case, I'm creating a component that waits…
Robin Hawkes
  • 688
  • 8
  • 24
6
votes
1 answer

When do the events emitted by Port get emitted? And what do they mean?

As far as I can tell there are 7 events dispatched by a NoFlo port: attach, connect, begingroup, data, endgroup, disconnect, detach To me some of these events sound very similar such as attach + connect, and disconnect + detach. What is the…
MikkoH
  • 105
  • 3
4
votes
1 answer

How do I use groups in NoFlo?

NoFlo Components documentation mentions groups but doesn't explain what they are used for and how they should be used. Could somebody explain what role groups play in NoFlo, how groups and nested groups should be used and how it affects Asynchronous…
3
votes
1 answer

NoFlo components with different runtimes in a single graph

NoFlo can run with different runtimes. Is it possible to connect components that run with different runtimes? That is to say, execute scripts written in different languages but connected in a single graph. I would like to know if it is possible to…
jeybee
  • 323
  • 2
  • 9
3
votes
1 answer

Plotting of Network Topology graph based on json input

I want to draw network topology graph with Highchart or any other js library by proving json data as input . While going through the example at http://www.highcharts.com/demo/renderer for Topology plot requirement , I found that it is static and…
3
votes
1 answer

Starting out with noflo, running it from nodejs

I got a simple noflo example running from noflo. But I'm having no luck figuring out how noflo should work with node and other code. At first I had this fbp file: # In the graph we first need to define the nodes and the connections between…
Madd0g
  • 3,841
  • 5
  • 37
  • 59
3
votes
1 answer

Default value for a port?

Is it possible to set a default value or an IIP (Initial Information Packet) for a port via Coffee/Javascript? Often it would be nice to set a default value for a port so that there's some initial data to start with.
MikkoH
  • 105
  • 3
3
votes
1 answer

NoFlo - how to start a graph / network

Pure Data has a loadbang component, which does what it says: sends one bang when the graph starts running. NoFlo's core/Kick doesn't send its data until its IN input is hit, and you can't save a bang IIP in noflo-ui.
forresto
  • 12,078
  • 7
  • 45
  • 64
2
votes
1 answer

Noflo: Steps to run inside browser when frontend is Angular 4 CLI

I am trying to run noflo in browser, with a twist that it will be an Angular App. Noflo documentation mentions following: NoFlo projects can also run in web browsers. You can use the webpack tool create a browser-runnable build of a NoFlo…
Santosh Kumar
  • 143
  • 12
2
votes
1 answer

use local graph in noflo.asCallback

I'm trying to execute a graph located in a local graphs/ folder using the noflo.asCallback function. I'm getting an error that the graph or component is not available with the base specified at the baseDir. What is the correct way to us the…
rvanrooy
  • 91
  • 4
2
votes
1 answer

Using javascript workflow library within mean stack project

I have developed a web app which is a QA forum using mean stack approach. Currently the project is working and I have implemented the basic requirements like login authentication using passportjs, then storing questions, answers, votes etc. in…
varad_s
  • 764
  • 1
  • 12
  • 24
2
votes
2 answers

How does one remove (unregister) a runtime (not component) from the NoFlo Development Environment

I am running a local version of the NoFlo Development Environment and would like to know how to remove (unregister) a runtime. Actually, how can I remove a runtime from the FlowHub hosted environment, as well?
P C Marks
  • 31
  • 2
2
votes
1 answer

Noflo custom components

I'm trying to build a working example using a custom component using noflo. Could somebody please explain how I should reference my component from within my .fbp file. The examples in the docs all seem to relate to npm based components. Thanks
user1513388
  • 7,165
  • 14
  • 69
  • 111
2
votes
1 answer

How to simulate an 'error' event on MongoDB

I'm trying to write a test case for a NoFlo component (written by a colleague) - where the component has a "connect" inPort and an "error" outPort like: var self = this; // a NoFlo Component var mongodb = null; self.inPorts.connect.on("data",…
Kenny Ki
  • 3,400
  • 1
  • 25
  • 30
2
votes
1 answer

Run NofloJS using NodeJS in Windows

As per NoflowJS is concerned it is a visual programming interface of JavaScript. I got stuck in this syntax : $ ./node_modules/.bin/noflo -h I want the syntax for Windows Operating System. Link to NofloJS: http://noflojs.org/documentation/ Also…
1
2 3 4 5 6