Basically your should define the TN rule by selecting doctype X12 Envelope instead of X12 810 set or define EDITPA for Envelope/Group level processing,so this way TN will process “editn_env” variable will be in the pipeline with bizdoc,so you will have all ISA/GS/ST(80 sets) ten loop thru ST’s and map to your flatfile as expected.
Please go thru the webMethods EDI Module Users Guide for envelope or Group level processing using EDI TPA per sender/receiver TPA functionality or create rule with Envelope doctype criteria,but still you will see X12 810 80 documents persisted in TN.
HTH,
RMG
#webMethods#Integration-Server-and-ESB#B2B-Integration