ONYX - Utilisation - Eclatement XML Pivot/en

Différence entre versions

De MappingDoc
(Page créée avec « =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 fo... »)
(Page créée avec « *Manage the split part towards a command (map_lp for sending to queues for example) *Manage the load balancing part by splitting to several different directories *Manage t... »)
 
(8 révisions intermédiaires par le même utilisateur non affichées)
Ligne 4 : Ligne 4 :
 
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<br>  
 
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<br>  
  
Dans la version actuelle, l'éclatement peut se faire <u>uniquement</u> dans un répertoire. Par conséquent l'utilisation d'un scanfolder sera nécessaire pour le traitement de ceux-ci.
 
  
=Prérequis=
+
In the current version, splitting can be done <u>only</u> in a directory. Therefore the use of a scanfolder will be necessary for processing these.
  
*La clé Connect doit être activée sur le serveur Efalia Compose
 
*Connaitre les flux XML
 
  
=Exemples=
+
=Prerequisites=
==Eclatement avec nommage avec la valeur d'un champ==
 
  
  "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 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"
 
<br>
 
<br>
La commande créera autant de fichiers que de balises <doc> présent dans le fichier d'entrée out_pivot.xml. Les fichiers seront nommés invoice_xxx.xml avec xxx la valeur du champ BT-1 pour le <doc> courant.
+
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>.
  
==Eclatement avec nommage automatique==
 
  
  "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"
+
==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"
 
<br>
 
<br>
La commande créera autant de fichiers que de balises <doc> présents dans le fichier d'entrée out_pivot.xml. Les fichiers seront nommés invoice_xxx.xml avec xxx un incrément (incrément donnée par le numéro de <doc> dans le fichier d'entrée)
+
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)
 +
 
  
=Idées d'évolutions=
+
=Ideas for developments=
  
*Gérer la partie split vers une commande ( map_lp pour envoi vers des queues par exemple)
+
*Manage the split part towards a command (map_lp for sending to queues for example)
*Gérer la partie load balancing en éclatant vers plusieurs répertoires différents
+
*Manage the load balancing part by splitting to several different directories
*Gérer la possibilité de faire un split sur plusieurs valeurs
+
*Manage the possibility of splitting several values

Version actuelle datée du 3 janvier 2025 à 13:39

Autres langues :
English • ‎français

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

  • Manage the split part towards a command (map_lp for sending to queues for example)
  • Manage the load balancing part by splitting to several different directories
  • Manage the possibility of splitting several values