Diese Aktion verarbeitet das Formatobjekt und die Ausgabe in einer JSON-Nutzlast und speichert sie in einem Ausgabeattribut.
B2B-Monolith: As4OutboundPayloadJsonCreatorAction
Action class: org.b2bbp.runtime.actions.internal.As4OutboundPayloadJsonCreatorAction
Diese Aktion ist Teil des AS4-Workflows für Fahrplannachrichten. Sie kann auch für den AS4-Workflow für Edifact-Nachrichten verwendet werden, wenn dafür das Outbox-Workflow verwendet wird. Die Aktion erzeugt ein Json basierend auf der API des AS4 Outbound Market Message Service. Es befüllt die benötigten Werte unter anderem mithilfe des Format-Objekts und bringt sie in ein passendes Format.
Action Properties
| Action Property | Expression | Default Value | Beschreibung |
|---|---|---|---|
| OUTPUT_ATTRIBUTE_KEY | EXCHANGE_AS4_OUTBOUND_PAYLOAD | EXCHANGE_AS4_OUTBOUND_PAYLOAD | Konfiguriert das Attribut, unter dem das erzeugte JSON in der Datenbank gespeichert wird. |
| PAYLOAD_ATTRIBUTE | CURRENT_PAYLOAD | CURRENT_PAYLOAD | Definiert, welches Attribut aus dem Message Context für den Parameter message im JSON verwendet wird. |
| ZIP_MESSAGE | false | false | Steuert, ob der Inhalt von message gezippt wird. |
| ADD_EXTERNAL_REFERENCE_TO_AS4_MESSAGEID | false | false | Steuert, ob die messageId im erzeugten JSON um die EXTERNAL_REFERENCE ergänzt wird. |
Format der erzeugten Json
{
"sector": "ELECTRICITY",
"direction": "OUTBOUND",
"tenant": "<Format.SYSTEMCode>",
"partner": "<Format.PARTNERCode>",
"partnerEic": "<format.additional.receiverEic>"
"from": "<Format.SYSTEMCode>",
"to": "<Format.PARTNERCode>",
"referenceId": "<Format.REFERENCE>",
"correlationId": "<Format.CORRELATION>",
"type": "<Format.TYPE>",
"serviceId": "<ServiceId Mapping based on Format (https://www.bdew.de/as4/communication/services/MP for EDI, https://www.bdew.de/as4/communication/services/FP for Schedule)>",
"actionId": "http://docs.oasis-open.org/ebxml-msg/as4/200902/action",
"agreementRef": "https://www.bdew.de/as4/communication/agreement",
"bdewDocumentType": "<format.additional.documentType if serviceId=https://www.bdew.de/as4/communication/services/FP, otherwise Format.TYPE>",
"bdewDocumentNo": "<format.additional.documentNo if serviceId=https://www.bdew.de/as4/communication/services/FP, otherwise Format.REFERENCE>",
"bdewDocumentDate": "<groomed format.additional.documentDate (Format yyyy-MM-dd) if serviceId=https://www.bdew.de/as4/communication/services/MP, otherwise empty>",
"bdewFulfillmentDate": "<groomed format.additional.fulfillmentDate (Format yyyy-MM-dd) if serviceId=https://www.bdew.de/as4/communication/services/FP, otherwise empty>",
"bdewSubjectPartyID": "<format.additional.subjectPartyId>",
"bdewSubjectPartyRole": "<format.additional.subjectPartyRole>",
"messageId": "<MESSAGE.MESSAGE_ID oder <MESSAGE.MESSAGE_ID>_<EXTERNAL_REFERENCE> wenn ADD_EXTERNAL_REFERENCE_TO_AS4_MESSAGEID=true",
"message": "<Content of value of PAYLOAD_ATTRIBUTE, base64 encoded, optionally zipped>"
}