Scenario – No sorting The figure below illustrates a simple scenario where the input job contains four documents: • One hardware invoice (hw) and one software invoice (sw) to customer 01. • One hardware invoice and one software invoice to customer 02 . Figure 66 Processing a job – no sorting applied. 1 The StreamServer application receives the input job. 2 No sorting is done, and the Processes handle documents in the same order as they are received. 3 The documents are delivered in the same order as they are received. Output mode Document In this scenario, it is not possible to group hardware and software invoices by customer, since the Document trigger changes after each processed document. This would result in four Documents (one invoice per Document) instead of two Documents (one hardware and software invoice per Document). Figure 67 Using $customerNumber as Document trigger – no sorting applied. To be able to create Documents by customer, the invoices must first be sorted by customer.