EnsLib.EDI.ServiceInterface
abstract class EnsLib.EDI.ServiceInterface
Method Inventory
- OnDocumentEnd()
- OnDocumentStart()
- OnParsingError()
- OnPostDocument()
- OnPreDocument()
- resolveDocType()
Parameters
parameter DOCCLASS;
Methods
method OnDocumentEnd(pDocument As EnsLib.EDI.Document, pSource As %String, pStatus As %Status) as %Status
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
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
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 = "")
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 = "")
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
Return the DocType that the given service would assign to this document