After having imported the EDIFACT message definition, you can parse such EDI data by invoking a <<EDIFACTAdapter>> or <<X12Adapter>> action as shown in the examples below.

How to debug an adapter call is described on Debugging a UN EDIFACT Adapter Call.

Static Parsing

For a static parsing, the EDI data file to be parsed is specified via an <<Alias>> adapter action.

Figure: UN/EDIFACT Static Parsing

The alias must have been defined in the component diagram as a <<FileAlias>> before. The path and file name can be changed in the xUML Service Settings.
For further details on how to define a file service see File System Components.

Dynamic Parsing

For dynamic parsing, the EDI data to be parsed is given via a file path (name) or a blob object containing the data (data).

Figure: UN/EDIFACT Dynamic Parsing

encoding and locale can also be used for static parsing.