When I was trying to add the line to the existing line using PythonCaller FMELine.appendLine(feature.getGeometry) then it is closing the paths as polygon. Basically it is adding an extra segment and closing the path.
In the below image selected line, there is a straight line created when I use the above function.
What's this worst calculation? Who is the coder for this?