The output file

The output file is an XML file with a content like that :

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="XSL_FILENAME"?>
<Picking xmlns:dpk="http://q37.info/ns/dpk/">
 <Misc>
...
 </Misc>
 <Data>
  <TABLE_TAG TotalAmount="TOTAL_AMOUT" SkippedTotalAmount="SKIPPED_TOTAL_AMOUNT" Amount="AMOUNT"
             SessionAmount="SESSION_AMOUNT" SessionSkippedAmount="SESSION_SKIPPED_AMOUNT"
             CycleAmount="CYCLE_AMOUNT" CycleSkippedAmount="CYCLE_SKIPPED_AMOUNT">
   <RECORD_TAG id="ID">
    RECORD_CONTENT
   </RECORD_TAG>
  </TABLE_TAG>
 </Data>
</Picking>

The session-related values are reseted when the delay between two calls of dpkq exceeds the value defined in the project file.

The cycle-related values are reseted when all records have been picked (given that a record is never picked again before all other records were picked at least once, and at most twice).