Is the data coming from a repeated field? What is the determination for how many repeated segs you will need.
If the data is coming from a repeated field, you could iterate on the repeated field, you should be able to use the %f in the path of the segment outbound to create your segs.
If I have totally missed your question, give some more details.
Thanks
Ryan Spires