InterSystems IRIS Data Platform 2020.4 > Class Reference > ENSLIB namespace > EnsLib.EDI.ServiceInterface

EnsLib.EDI.ServiceInterface

abstract class EnsLib.EDI.ServiceInterface

Method Inventory (Including Private)

Parameters

parameter DOCCLASS;

Methods (Including Private)

method OnDocumentEnd(pDocument As EnsLib.EDI.Document, pSource As %String, pStatus As %Status) as %Status [ Language = objectscript ]
Called by the Parser at the end of a document
method OnDocumentStart(pDocument As EnsLib.EDI.Document, pSource As %String, pStatus As %Status) as %Status [ Language = objectscript ]
Called by the Parser at the start of a document
method OnParsingError(pStatus As %Status, pDocument As EnsLib.EDI.Document, pSeparators As %String = "") as %Status [ Language = objectscript ]
This method is called when a fatal error is encountered while processing a Document, giving an opportunity to send a Reply message in response to those documents that never call OnDocumentEnd
method OnPostDocument(pStream As %IO.I.CharacterStream, ByRef pLineExtra As %String = "") [ Language = objectscript ]
This method is called after processing a Document, giving an opportunity to 'filter' extraneous header/trailer/filler which may be present in the stream. pLineExtra contains any extra chars read that may be part of the beginning of the next Document.
method OnPreDocument(pStream As %IO.I.CharacterStream, ByRef pLineExtra As %String = "") [ Language = objectscript ]
This method is called before attempting to process a Document, giving an opportunity to 'filter' extraneous header/trailer/filler which may be present in the stream. pLineExtra contains any extra chars read that may be part of the beginning of the Document to follow.
method resolveDocType(pDoc As EnsLib.EDI.Document) as %String [ Language = objectscript ]
Return the DocType that the given service would assign to this document

Subclasses

Feedback