Zum Inhalt

Element <profile>

Zweck: Deklariert ein benanntes EDIFACT-Trennzeichenprofil für AMA-Templates und -Ausgaben.

Warum: Verwende dieses Element, wenn ein AMA-Ausgabepartner einen benannten Satz von EDIFACT-Trennzeichen benötigt.

Beispiel

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

Entscheidungshilfe

Fachlicher Nutzen: Erfasst den EDIFACT-Trennzeichenvertrag eines Partners unter einem Namen zur konsistenten Wiederverwendung.

  • Verwenden, wenn

    • Wenn Template oder Output einen spezifischen benannten Trennzeichensatz benötigt.
  • Anderen Ansatz wählen, wenn

    • Wenn das Default-Profil bereits passt oder die Ausgabe kein EDIFACT ist.
  • Voraussetzungen

    • Platziere profile in edifactProfiles und liefere eindeutige ID und gültige Trenner.

Vollständige Beispiele

Profilierte EDIFACT-Ausgabe rendern und ihre Artefakte paketieren

Verwende die AMA-Familie, wenn partnerspezifische EDIFACT-Trennzeichen, Templates, Ausgabenamen, Nebenartefakte und Archivpakete gemeinsam modelliert werden müssen.

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>

Regeln und ungültige Kombinationen

Keine zusätzlichen elementspezifischen Regeln. Pflichtattribute, Typen und unterstützte Werte stehen unten.

Erlaubte Elternelemente / Erlaubte Kindelemente

Erlaubte Elternelemente: edifactProfiles, else, else-if, if, while

Erlaubte Kindelemente:

Keine

Attribute

Alle 6 Attribute anzeigen

comp

Separator between components within a composite data element.

optional; string; Standardwert: null.

data

Separator between data elements in EDIFACT segments.

optional; string; Standardwert: null.

decimal

Decimal separator used in numeric EDIFACT values.

optional; string; Standardwert: null.

id

Unique identifier for this EDIFACT separator profile.

erforderlich; string.

release

Release character that escapes separator characters in data.

optional; string; Standardwert: null.

term

Character that terminates an EDIFACT segment.

optional; string; Standardwert: null.