flow icon indicating copy to clipboard operation
flow copied to clipboard

Is it possible to create a Flow visually, then run it stand-alone somewhere else with no GUI?

Open robhawkes opened this issue 7 years ago • 3 comments

First off, I want to say how cool Flow looks — I've been searching for a decent visual programming system for a while and I think Flow fits the bill. However, I have a question about how it can be used.

For my use-case I'd like to use the visual designer for constructing and testing the initial flow, however I'd want to run the flows manually as and when I want. Is it possible to save a flow from the designer and then run it separately to the GUI?

Specifically, I'd be talking about creating flows locally using the designer, saving them in sane way (eg. JSON/a package), and then running those flows in a headless way on a remote server (which I don't want to have the GUI, nor any ability to create or modify flows).

Is this possible?

robhawkes avatar Feb 08 '19 16:02 robhawkes

Hi Rob, yes it is possible. You can run the Flow in 3 modes.

  • both client and server
  • server only, this is probably what you want
  • client only, usefull to connect to "server only" instance

See the options options.type and options.external here

The flows are saved in ./flow/designer.json so once you're done with the changes in the designer simply copy&paste the designer.json to your "server only" instance and restart the app.

molda avatar Feb 08 '19 17:02 molda

Hey, @robhawkes have you implemented the above scenario? If you have done anything could you please share some snippets of code?

sb-saurabhbhosale avatar Jun 15 '22 05:06 sb-saurabhbhosale

@sb-saurabhbhosale:

  • both: this repository
  • server only: https://github.com/totaljs/flowstreamworker
  • client only: https://github.com/totaljs/flowstreamdesigner (but it's not the same designer)

petersirka avatar Jun 15 '22 06:06 petersirka