Run function in bundling

The Run function performs these actions for the bundling component:

  1. Moves the input process records to the Busy status.
  2. In each created envelope, it sorts the process records, according to the configured sorting criteria.
  3. Combines the process records into envelopes, according to the specified grouping criteria and paper count and weight limits.

    Only process records for the same channel can be combined into the same envelope. The organizational metadata values shared by all process records are taken over in the envelope.

  4. Assigns all created envelopes to the configured outsourcing printer.
  5. Computes the paper count and weight of each envelope, using the tray information from the assigned printer, and the forms of the documents (jobs) in the envelopes.
  6. Assigns a postage class to each envelope, according to the configured postage definition.
  7. Writes the created envelopes to the run-time database. In addition, it performs these steps:
    1. Moves the process records to the Finished status.
    2. Updates the process records with the envelope.
    3. Updates the job records with the envelope and with the printer to which the envelope is assigned.

Parameters

The Run function does not have any input parameters. It selects process records from the run-time database, according to the configured selection criteria. Only process records, which are in the Waiting status, have process state "Rendition created," and are not yet assigned to an envelope, are considered for selection.

Result

The Run function returns the number of created envelopes.

If an error is encountered, the Run function moves the input process records to the Error status and sets the error message.