frankframework / frank-doc

Frank!Doc
https://frankdoc.frankframework.org
Apache License 2.0
4 stars 5 forks source link

Make it possible to catogorize forwards #137

Open philipsens opened 1 year ago

philipsens commented 1 year ago

This request comes from an issue in the Frank!Flow (https://github.com/ibissource/frank-flow/issues/716). They want to show different colors for the different types of forwards.

They could just implement a list withing the Frank!Flow, but that would make it possible to oversee new forwards. Implementing this in the Frank!Doc would make it future-proof.

@jjansenvr has made a list of forwards and the categories they belong to:

When thinking about the placing algorithm i found I needed to sort the edges(forwards) to have the happiest flow on top

this is the ordering I use: success 1 then 2 {any unknown forward (fe from switch} 3 else 4 equals 5 lessthan 6 greaterthan 7 warnings 8 outputWarnings 9 failure 10 outputFailure 11 antiVirusFailed 12 filenotfound 13 notInRole 14 passwordProtected 15 noConversionForwardName 16 exception 17 parserError 18 outputParserError 19

It might be an idea to group the forwards and given them a color: 1 t/m 7 green (succes) 8 t/m 9 yellow (warning) 10 t/m 16 orange (failure) 17 t/m 19 red (exception)

Originally posted by @jjansenvr in https://github.com/ibissource/frank-flow/issues/716#issuecomment-1092504992