Skip to content

Element <profile>

Purpose: Named EDIFACT separator profile used by AMA templates and outputs.

Why: Use it to give one EDIFACT separator configuration a stable local identifier.

Example

1
<profile id="uoc3_comma" decimal="," data="+" comp=":" release="?" term="'"/>

Decision guide

Business value: Lets templates and outputs consistently render the delimiters required by a partner.

  • Use when

    • A partner-specific EDIFACT syntax differs from the default delimiters.
  • Choose another approach when

    • No template or output needs a reusable separator configuration.
  • Prerequisites

    • Reference the id from defaultEdifactProfileRef or template edifactProfileRef.

Complete examples

Render profiled EDIFACT output and package its artifacts

Use the AMA family when partner-specific EDIFACT separators, templates, output names, side artifacts, and archive packaging must be modeled together.

ama-edifact-package/templates/order.template.edi
1
UNH+__message_id__+ORDERS:D:96A:UN'
ama-edifact-package/datamimic.xml
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
<setup rngSeed="42">
    <ama-generate defaultEdifactProfileRef="unoc3" variablePrefix="__" variableSuffix="__">
        <edifactProfiles>
            <profile id="unoc3" decimal="." data="+" comp=":" release="?" term="'"/>
        </edifactProfiles>
        <templates>
            <template id="order_template"
                      path="templates/order.template.edi"
                      edifactProfileRef="unoc3"
                      sourceScripted="True"/>
        </templates>
        <variable name="message_id" generator="IncrementGenerator"/>
        <output type="ORDERS" templateRef="order_template" filename="ORDERS___message_id__"/>
        <artifact type="edi_outputs" folder="edi"/>
        <artifact type="edifact_trace_csv" filename="ORDERS___message_id___trace.csv"/>
        <package type="zip" filename="ORDERS___message_id__.zip"/>
    </ama-generate>
</setup>

Rules and invalid combinations

No additional element-specific rules. Required attributes, types, and supported values are shown below.

Allowed parents / Allowed children

Allowed parents: edifactProfiles, else, else-if, if, while

Allowed children:

None

Attributes

Show all 6 attributes

comp

Separator between components within a composite data element.

optional; string; Default: null.

data

Separator between data elements in EDIFACT segments.

optional; string; Default: null.

decimal

Decimal separator used in numeric EDIFACT values.

optional; string; Default: null.

id

Unique identifier for this EDIFACT separator profile.

required; string.

release

Release character that escapes separator characters in data.

optional; string; Default: null.

term

Character that terminates an EDIFACT segment.

optional; string; Default: null.