IPWorks EDI 2020 Python Edition

Questions / Feedback?

on_edi_data_info Event

Fired when processing an incoming message.

Syntax

class AS2ReceiverEDIDataInfoEventParams(object):
  @property
  def name() -> str: ...
  @property
  def data_type() -> str: ...
  @property
  def duplicate() -> bool: ...
  @duplicate.setter
  def duplicate(value) -> None: ...

# In class AS2Receiver:
@property
def on_edi_data_info() -> Callable[[AS2ReceiverEDIDataInfoEventParams], None]: ...
@on_edi_data_info.setter
def on_edi_data_info(event_hook: Callable[[AS2ReceiverEDIDataInfoEventParams], None]) -> None: ...

Remarks

When parse_request or process_request has been called this event will fire and provide the filename of the incoming data via the Name parameter. DataType will be the EDI type specified in the message, such as "application/edi-x12".

Duplicate is used in conjunction with the InvalidFilenameMDNAction configuration setting when Filename Preservation with an Associated MDN Response is implemented in the receiving agent to support MDN responses for duplicate filenames. If incoming_directory is specified, the Duplicate parameter will return True if the filename specified in the request exists on disk. Additionally, the Duplicate parameter may be set to True before the event exits so that checking for duplicate filenames may be extended to the application logic.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 Python Edition - Version 20.0 [Build 8203]