StartTransaction Event
Fires whenever a control segment is read that marks the start of a transaction.
Syntax
public open class DefaultX12readerEventListener : X12readerEventListener { ... public override fun startTransaction(e: X12readerStartTransactionEvent) {} ... } public class X12readerStartTransactionEvent { val tag: String? val controlNumber: String? val code: String? val fullSegment: String? }
Remarks
The StartTransaction event will fire when a control segment marking the start of a transaction is read. The Tag parameter contains the tag of the segment, such as ST. ControlNumber contains the control number associated with the segment. Code contains the transaction code (such as 810).