Placing ports on the border of Shape(cloud,ellipse)

Yes, as I just said above, use a “Spot” Panel where the main/first element is your Shape such as an ellipse, and where the rest of the elements are each ports with an alignment and with the usual port-related properties.

If the number of ports will vary, bind the Panel.itemArray and make sure the Panel.itemTemplate is a Panel that holds (or is) your port element(s). The Dynamic Ports sample uses four separate item arrays, one for each side, but you only need one, where all of the elements can be placed anywhere relative to the main Shape of the “Spot” Panel.

This is exactly how the Pipes sample defines its node template, so that each node can have a different number of ports positioned at different points along the edges of its main shape. Pipes