You've already forked reflex-wms-connector
SCPN1-11065
This commit is contained in:
@@ -77,6 +77,7 @@
|
|||||||
<#include "RFXtoRP_HsrReceiptList_ExecutionflowReceiptCompleted.ftl">
|
<#include "RFXtoRP_HsrReceiptList_ExecutionflowReceiptCompleted.ftl">
|
||||||
}
|
}
|
||||||
<#else>
|
<#else>
|
||||||
|
<#if receipt.line_list ?? && receipt.line_list[0]??>
|
||||||
{
|
{
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
@@ -89,6 +90,10 @@
|
|||||||
"datas" :
|
"datas" :
|
||||||
<#include "RFXtoRP_HsrReceiptList_ExecutionflowReceiptCompleted.ftl">
|
<#include "RFXtoRP_HsrReceiptList_ExecutionflowReceiptCompleted.ftl">
|
||||||
}
|
}
|
||||||
|
<#else>
|
||||||
|
<#-- No line-->
|
||||||
|
<#stop>
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
<#else>
|
<#else>
|
||||||
<#if receipt.receipt_type == "030">
|
<#if receipt.receipt_type == "030">
|
||||||
|
|||||||
@@ -1,7 +1,16 @@
|
|||||||
<#include "HfRpConfig.ftl">
|
<#include "HfRpConfig.ftl">
|
||||||
[
|
[
|
||||||
<#assign UUID = UUID.randomUUID()>
|
<#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": {
|
"Header": {
|
||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
@@ -23,16 +32,16 @@
|
|||||||
},
|
},
|
||||||
"TechMessage": {
|
"TechMessage": {
|
||||||
"Code": "${restResponsetMsg.status!"no Code"}",
|
"Code": "${restResponsetMsg.status!"no Code"}",
|
||||||
"Label": ${strJsonBody?truncate(32000,'...')}
|
"Label": "${safeJsonBody?json_string}"
|
||||||
},
|
},
|
||||||
"UserMessage": {
|
"UserMessage": {
|
||||||
"Code": "${restResponsetMsg.status!"no Code"}",
|
"Code": "${restResponsetMsg.status!"no Code"}",
|
||||||
"Label": ${strJsonBody?truncate(32000,'...')},
|
"Label": "${safeJsonBody?json_string}",
|
||||||
"Params": []
|
"Params": []
|
||||||
},
|
},
|
||||||
"DetailElements": [],
|
"DetailElements": [],
|
||||||
"CorrelationID": "${id.correlationid!"no Correlationid"}",
|
"CorrelationID": "${id.correlationid!"no Correlationid"}",
|
||||||
"ContextPayload": ${strJsonBody?truncate(32000,'...')},
|
"ContextPayload": "${safeJsonBody?json_string}",
|
||||||
"Type": "${event}",
|
"Type": "${event}",
|
||||||
"Task": "${id.apiRestReflexID!"no Task"}",
|
"Task": "${id.apiRestReflexID!"no Task"}",
|
||||||
"OriginalID": "${id.refid!"no OriginalID"?trim?json_string}",
|
"OriginalID": "${id.refid!"no OriginalID"?trim?json_string}",
|
||||||
|
|||||||
Reference in New Issue
Block a user