flow icon indicating copy to clipboard operation
flow copied to clipboard

Link Color Significance

Open ColtonMcInroy opened this issue 3 years ago • 5 comments

I created a flow with various components starting with HTTP Routes and it worked fine. Then I added colour to the lines, making red lines paths to error, blue to unauthenticated, and green to authenticated requests all of a sudden the flow didn't work properly. After some troubleshooting I realised the colours was what was causing the problem. I removed all the colours the flow worked fine again.

So I decided to test a basic example making a trigger output to some Code/Forward components then to a Read JSON component and started playing with the colours but everything appears to work just fine. I couldn't see any documentation about the significance of colours and when taking a brief look at the code I saw nothing in regards to the colours, before deep diving into the code I figured best ask here. Any details or documents you can point me to about this would be appreciated.

ColtonMcInroy avatar Jan 17 '23 09:01 ColtonMcInroy

Flowing data can be sorted based on connection/line colors.

Rules:

  • The data will Flow only for a specific color (except black)
  • The color black is in this case a universal color and it will transport everything

Simple example:

image

As you can see, the green line/connection color will only transmit data along the green or black connections. There is a lack of documentation - @Will-create, could you add this information to the documentation?

petersirka avatar Jan 17 '23 12:01 petersirka

@ColtonMcInroy The documentation of Forward component is updated.

Will-create avatar Jan 18 '23 02:01 Will-create

@ColtonMcInroy We will release all updated components this week because we changed the old declaration for UI components for a more modern one.

@Will-create thank you.

petersirka avatar Jan 18 '23 06:01 petersirka

It would be nice if there was more control of flexibility with the colours. I have noticed that the message depends on the last line colour it was on. Take this for example...

image

Here because the message started with a colour but then went over a line with no colour it goes ends up going to both colours in the forward because it last went down a non-coloured line and that changed the messages associated colour. Having the ability to preserve the message colour would add an additional level of flexibility. Perhaps having the ability to click on a connection dot or input/output line and configure some options such as preserve message colour, reset colour, force a colour, ignore colour and always send, etc.

ColtonMcInroy avatar Jan 24 '23 01:01 ColtonMcInroy

@ColtonMcInroy Data don't remember color. Data are sent in the same color as they are received, except for black. Nothing more.

If you keep the same color throughout your flow, it will work.

petersirka avatar Jan 24 '23 08:01 petersirka