Do not use an equality test for exactly 22 because your lengths may be ever so slightly off. You can use the Similarity component with a small threshold, or compare the absolute difference between each segment length and 22 to some custom tolerance: Abs(Length - 22) < 1 \cdot 10^{-6}
Ultimately you can use the Sift/Combine pattern to separate the custom segments, or use some other data manipulation.
Oh I just did the Arc thing to show how to treat different segments in a polyline different ways. The filleting is a whole different problem. Depending on the angle between the adjacent segments, it can be quite tricky.