Explanation

This rule counts the number of complex elements within one flow and reports back an issue when the configured maximum number of complex elements is exceeded. Complexity is measured by comparing the number of input and output lines for each element with the respective configured maximum number of lines.

It is recommended for maintainability issues, to keep the number of complex elements in flows below this maximum, otherwise the flow itself is seen as complex.

We estimate that resolving this issue will on average take 30 minutes.

Parameters

This rule can be configured using the following parameters:

maxOutputLines

The maximum acceptable number of output lines for a flow element to not be considered complex.

Default Value: 4
maxInputLines

The maximum acceptable number of input lines for a flow element to not be considered complex.

Default Value: 4
maxComplexElements

The maximum acceptable number of complex elements in a flow.

Default Value: 2

Possible solutions

Try avoiding lots of complex elements in a flow. Think about selecting parts of the flow to become sub-flows, preferably parts of the flow that are used in other flows.

  • No labels