ONYX - Utilisation
XML Pivot split
Sommaire
Introduction
The purpose of the program is to split a Pivot XML file into one file by <doc> tag of the input Pivot XML file. This step is, for example, essential for the EINVOICING electronic invoicing connector
In the current version, splitting can be done only in a directory. Therefore the use of a scanfolder will be necessary for processing these.
Prerequisites
- The Connect key must be activated on the Efalia Compose server
- Know XML feeds
Examples
Splitting with naming with the value of a field
"C:/MAPPING/M-Processing Server/Applications/maprunrpt" -rptname:SPLITPIVOT -param:DB.data_file="C:\work\out_pivot.xml" -param:DB.outfile_folder_path="C:\out" - param:DB.outfile_name="invoice_BT-1.xml"
The command will create as many files as there are <doc> tags present in the input file out_pivot.xml. The files will be named invoice_xxx.xml with xxx the value of the BT-1 field for the current <doc>.
Splitting with automatic naming
"C:/MAPPING/M-Processing Server/Applications/maprunrpt" -rptname:SPLITPIVOT -param:DB.data_file="C:\work\out_pivot.xml" -param:DB.outfile_folder_path="C:\out.xml " -param:DB.outfile_name="invoice.xml"
The command will create as many files as there are <doc> tags present in the input file out_pivot.xml. The files will be named invoice_xxx.xml with xxx as an increment (increment given by the <doc> number in the input file)
Ideas for developments
- Gérer la partie split vers une commande ( map_lp pour envoi vers des queues par exemple)
- Gérer la partie load balancing en éclatant vers plusieurs répertoires différents
- Gérer la possibilité de faire un split sur plusieurs valeurs