extract unedifact data fragment

Extract UN/EDIFACT Data Fragment

Version: 17.07

Supported Since: 17.07

What is an Extract UN/EDIFACT Data Fragment Processor?

Extract UN/EDIFACT Data Fragment Processor is a processing element which can be used to extract an UN/EDIFACT data fragment as a node list (org.w3c.dom.NodeList instance) from the current message payload and assign 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.

<dependency>
    <groupId>org.adroitlogic.x.processors</groupId>
    <artifactId>x-processor-edi</artifactId>
    <version>17.07.2</version>
</dependency>
You would also need to add dependencies that would be required by the types of UN/EDIFACT documents that you wish to process. The following example shows the addition of such a mapping dependency for D93A, to pom.xml:
<dependency>
    <groupId>org.milyn.edi.unedifact</groupId>
    <artifactId>d93a-mapping</artifactId>
    <version>1.4</version>
    <exclusions>
        <exclusion>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
        </exclusion>
    </exclusions>
</dependency>

You should generally be able to adapt the above snippet to any UN/EDIFACT document type of your choice, by replacing the d93a segment on the third line with the lowercase name of the required document type. For example, for D11A documents, the third line would resemble <artifactId>d11a-mapping</artifactId>.

extract unedifact data fragment outports

Out Ports

Next

The message will be sent to this out port if the extraction of the UN/EDIFACT data fragment is successful.

On Exception

The message will be sent to this out port if the processing element failed to extract the specified UN/EDIFACT data fragment.

Parameters

* marked fields are mandatory.

Variable Name *

Basic

The name of the variable which the extracted node list should be stored

XPath *

Basic

The XPath using which the node list should be extracted from the received UN/EDIFACT message payload

In this topic
In this topic
Contact Us