SCPN1-11065

This commit is contained in:
2026-07-20 16:35:30 +02:00
parent 8f8ddbd969
commit c37727e000
2 changed files with 33 additions and 19 deletions

View File

@@ -77,6 +77,7 @@
<#include "RFXtoRP_HsrReceiptList_ExecutionflowReceiptCompleted.ftl">
}
<#else>
<#if receipt.line_list ?? && receipt.line_list[0]??>
{
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
"apiReflexPlatformID" : "${apiReflexPlatformID}",
@@ -89,6 +90,10 @@
"datas" :
<#include "RFXtoRP_HsrReceiptList_ExecutionflowReceiptCompleted.ftl">
}
<#else>
<#-- No line-->
<#stop>
</#if>
</#if>
<#else>
<#if receipt.receipt_type == "030">

View File

@@ -1,7 +1,16 @@
<#include "HfRpConfig.ftl">
[
<#assign UUID = UUID.randomUUID()>
<#assign strJsonBody = JsonUtil.espaceQuoteInJsonString(restResponseBody)>
<#assign strJsonBody = JsonUtil.espaceQuoteInJsonString(restResponseBody)?replace("\n", "")?replace("\r", "")>
<#assign maxLen = 32000>
<#if strJsonBody?length gt maxLen>
<#assign strJsonBody = JsonUtil.espaceQuoteInJsonString(restResponseBody)?replace("\n", "")?replace("\r", "")?replace('"logical_key_list"\\s*:\\s*\\[[^\\]]*\\]', '"logical_key_list": []', 'r')>
</#if>
<#if strJsonBody?length gt maxLen>
<#assign safeJsonBody = "{\"truncated\": true, \"original_size\": " + strJsonBody?length + "}">
<#else>
<#assign safeJsonBody = strJsonBody>
</#if>
{
"Header": {
"ProjectID": "${projectRP}"
@@ -23,16 +32,16 @@
},
"TechMessage": {
"Code": "${restResponsetMsg.status!"no Code"}",
"Label": ${strJsonBody?truncate(32000,'...')}
"Label": "${safeJsonBody?json_string}"
},
"UserMessage": {
"Code": "${restResponsetMsg.status!"no Code"}",
"Label": ${strJsonBody?truncate(32000,'...')},
"Label": "${safeJsonBody?json_string}",
"Params": []
},
"DetailElements": [],
"CorrelationID": "${id.correlationid!"no Correlationid"}",
"ContextPayload": ${strJsonBody?truncate(32000,'...')},
"ContextPayload": "${safeJsonBody?json_string}",
"Type": "${event}",
"Task": "${id.apiRestReflexID!"no Task"}",
"OriginalID": "${id.refid!"no OriginalID"?trim?json_string}",