funflow icon indicating copy to clipboard operation
funflow copied to clipboard

Workflow graphs

Open cfhammill opened this issue 4 years ago • 1 comments

Presently funflow has support for transforming workflows into graphs via toDiagram (although this isn't exported).

It would be nice to be able to turn funflow graphs into DOT files. The translation from Diagram to DOT should be simple, I'm happy to do that and submit a PR.

A small extension that I think would make the generated graphs cleaner is to be able to annotate mapAs so that mapped actions can be optionally collapsed to simplify the graph.

This would require extending Flow' to have MapA constructor. Does that sound like a reasonable way to add this feature?

cfhammill avatar Nov 21 '19 18:11 cfhammill

Yes, I think having MapA directly as a constructor for the flow would make a lot of sense. At the moment the implementation of mapA will cause the program to hang indefinitely if one tries to print it, which is clearly non-optimal. We've had this on the list of things to do for a while (but don't have any active projects using funflow, so it's not being heavily developed rn)

Likewise, DOT support seems great if you felt like implementing it!

nc6 avatar Nov 22 '19 10:11 nc6