You've already forked reflex-wms-connector
ajout des FTL liés à la création de commande (SCPN1-5019) à valider par Laure
This commit is contained in:
43
RFXtoRP_PlatformLogCreate.ftl
Normal file
43
RFXtoRP_PlatformLogCreate.ftl
Normal file
@@ -0,0 +1,43 @@
|
||||
<#include "HfRpConfig.ftl">
|
||||
[
|
||||
<#assign UUID = UUID.randomUUID()>
|
||||
<#assign strJsonBody = JsonUtil.espaceQuoteInJsonString(restResponseBody)>
|
||||
{
|
||||
"Header": {
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${UUID}",
|
||||
"RefDate": {
|
||||
"DateTime": "${aDateTime?iso_utc}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
}
|
||||
},
|
||||
"Payload": {
|
||||
<#assign severity = SeverityLevel.ERROR>
|
||||
"Severity": "${severity}",
|
||||
"Namespace": "ReflexIntegration",
|
||||
"DateTime": {
|
||||
"DateTime": "${aDateTime?iso_utc}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
},
|
||||
"TechMessage": {
|
||||
"Code": "${restResponsetMsg.status}",
|
||||
"Label": ${strJsonBody}
|
||||
},
|
||||
"UserMessage": {
|
||||
"Code": "${restResponsetMsg.status}",
|
||||
"Label": ${strJsonBody},
|
||||
"Params": []
|
||||
},
|
||||
"DetailElements": [],
|
||||
"CorrelationID": "${id.correlationid}",
|
||||
"ContextPayload": "rfxresponse",
|
||||
"Type": "RP_EXECUTIONFLOW_EVENT",
|
||||
"Task": "${id.apiRestReflexID}",
|
||||
"OriginalID": "${id.refid}",
|
||||
"StackTrace": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user