You've already forked reflex-wms-connector
SCPN1-11065
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user