44 lines
1.1 KiB
Java
44 lines
1.1 KiB
Java
<#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": ""
|
|
}
|
|
}
|
|
]
|
|
|