Version: 17.07
Supported Since: 17.07
Extract UN/EDIFACT Data Element Processor is a processing element which can be used to extract an UN/EDIFACT data element as a string from an integration flow and set it to a scope variable.
In order to use this processing element, you must first select the EDI Processors dependency from the processor list when you are creating an empty Ultra project. If you have already created a project, you can add this dependency via Component Registry. From Tools menu, select Ultra Studio → Component Registry and from the Processors list, select the EDI Processors dependency. Alternatively, you can add the following dependency to the maven pom.xml manually.
You should generally be able to adapt the above snippet to any UN/EDIFACT document type of your choice,
by replacing the |
Next |
The message will be sent to this out port if extracting the UN/EDIFACT data element is successful |
On Exception |
The message will be sent to this out port if the processing element failed in extracting the UN/EDIFACT data element |
Variable Name * |
Basic |
The name of the variable which should be used to save the extracted value |
||
Data Element * |
Basic |
The name of the UN/EDIFACT data element to be extracted |
||
XPath * |
Basic |
Custom XPath to extract the string value from the message payload.
|
In the following use case, the requirement is to route EDI files from a common local directory to a set of other directories
based on their message types. During this integration flow Extract UN/EDIFACT Data Element processing element is used to extract
the message identifier (2nd fragment of UNH
segment) from the current message payload and set it to a scope variable.
Configuration of the Extract UN/EDIFACT Data Element is as follows. To determine the message type, we have selected MESSAGE_TYPE for the Data Element.