Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parsing a file that's not quite comma-delimited
Message
De
12/07/2007 15:24:55
 
 
À
12/07/2007 14:11:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01238841
Message ID:
01239874
Vues:
20
Our current approach sounds very similar to yours. You wouldn't know from the code that we are parsing EDI except for a method designed to handle the ISA segment. Everything else is table driven.

We haven't had to subclass our design for trading partners. We do have hooks that can call trading partner specific code Pre and Post file, and Pre and Post transaction.

>Currently, mine is hardcoded, on a per trading partner basis. There is a class definition that handles a specific transaction set (such as purchase order), then I subclass it specifically for a trading partner. The subclass implementation only has hooks for the mapping itself, and knows as little as possible about EDI or the business process itself. There is a master process that examines the file, and knows what kind of object (that part is table driven) to create to do the mapping.
>
>It is a work in process, and certainly is not as mature and bulletproof as what you have. It is for in-house use, so I can tweak and improve it as we go. Someday it will be complete. :)
>
>>
>>Our translators are table based, but in hind-sight, if I was starting from scratch, I think I would hard code the solution for performance reasons. Table based solutions can provide flexibility, but they are harder to debug.
>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform