Page setup in the PageOUT tool > Page types > How the StreamServer determines which page type to use

How the StreamServer determines which page type to use
Which page types to include in the output depends on the amount of recurring data, and on the size of the frames on each page type. The StreamServer fills the frames on the different page types in a specific order until all data has been added to the output. To get the desired output, for example a First and a Body page, you must understand how the StreamServer determines when to use a specific page type.
Testing order
The StreamServer normally uses the following order to test if the data fits in the frames of the different page types:
Single => First => Last => Body
If a page type is not defined, no testing will be performed for that type.
The resulting output
1
If all data fits into a Single page, only this page type is generated and the StreamServer proceeds to the next Process. The output is a Single page.
2
If the data does not fit in a Single page, the server tests if it fits into a First page. If it does, a First page is generated, then the StreamServer proceeds to the next Process. The output is a First page.
3
If the data does not fit in a First page, the StreamServer fills the First page and then tests if the remaining data fits in a Last page. If it does, a Last page is generated, then the StreamServer proceeds to the next Process. The output is a First page and a Last page.
4
If the data does not fit in a Last page, a Body page is generated. If all data fits in the Body page, the StreamServer proceeds to the next Process. The output is a First page and a Body page.
5
If the data does not fit in a Body page, the StreamServer fills the Body page, and tests if the remaining data fits in a Last page. If it does, a Last page is generated, then the StreamServer proceeds to the next Process. The output is a First page, a Body page, and a Last page.
6
If the data does not fit in a Last page, steps 4 and 5 are repeated until there is no remaining data. Depending on the amount of data, the output can be either a First page, one or more Body pages, and a Last page, or it can be a First page and one or more Body pages.
Avoiding getting only a last page
To avoid getting only a Last page in the output, you should always include a Single page type in the PageOUT configuration. If you do not, the StreamServer will use a different order than when a Single page is included:
Last => First => Body
This means that if all data fits on the Last page, the output will only include a Last page. If you include a Single page with a reasonably large frame there will always be a Single page or a First page before the Last page in the output.
OpenText StreamServe 5.6 Updated: 2013-03-01