SCPN1-9399
This commit is contained in:
parent
374aef32fd
commit
5bc723540c
@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
# HARDIS SC NETWORK Core FTLs
|
# HARDIS SC NETWORK Core FTLs
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
The **Reflex WMS Connector** is a set of **FreeMarker templates (FTL)** designed to transform **outgoing JSON flows from Reflex WMS** into **flows compatible with HARDIS SC NETWORK**.
|
The **Reflex WMS Connector** is a set of **FreeMarker templates (FTL)** designed to transform **outgoing JSON flows from Reflex WMS** into **flows compatible with HARDIS SC NETWORK**.
|
||||||
|
|
||||||
|
|
||||||
This connector does not contain any standalone executable code: it is intended to be used by **Reflex integration engines** or **data exchange pipelines**, where it applies the mapping rules defined in the `.ftl` files.
|
This connector does not contain any standalone executable code: it is intended to be used by **Reflex integration engines** or **data exchange pipelines**, where it applies the mapping rules defined in the `.ftl` files.
|
||||||
|
|
||||||
## Role of the FTL Files
|
## Role of the FTL Files
|
||||||
@ -14,7 +14,9 @@ This connector does not contain any standalone executable code: it is intended t
|
|||||||
- Apply transformation rules (mapping, conversions, enrichments).
|
- Apply transformation rules (mapping, conversions, enrichments).
|
||||||
- Generate a **final structured JSON** for HARDIS SC NETWORK.
|
- Generate a **final structured JSON** for HARDIS SC NETWORK.
|
||||||
|
|
||||||
|
|
||||||
## Useful Resources
|
## Useful Resources
|
||||||
|
|
||||||
- [FreeMarker Documentation](https://freemarker.apache.org/docs/index.html)
|
- [FreeMarker Documentation](https://freemarker.apache.org/docs/index.html)
|
||||||
- [HARDIS SC NETWORK](https://auth.reflex-platform.com/)
|
- [HARDIS SC NETWORK](https://auth.reflex-platform.com/)
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,20 @@
|
|||||||
<#if preparationOrder.total_lv_validated !=0>
|
<#if preparationOrder.total_lv_validated !=0>
|
||||||
<#if preparationOrder.preparation_line_lst??>
|
<#if preparationOrder.preparation_line_lst??>
|
||||||
[
|
[
|
||||||
<#assign first = true>
|
{
|
||||||
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.HandlingunitGoodsPrepared>
|
||||||
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
|
"datas" :
|
||||||
|
<#include "RFXtoRP_HsrPrepa_HandlingunitGoodsPrepared.ftl">
|
||||||
|
},
|
||||||
|
{
|
||||||
|
|
||||||
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.HandlingunitDispatched>
|
||||||
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
|
"datas" :
|
||||||
|
<#include "RFXtoRP_HsrPrepa_HandlingUnitDispatched.ftl">
|
||||||
|
}
|
||||||
|
|
||||||
<#assign refIDHmap ={}>
|
<#assign refIDHmap ={}>
|
||||||
<#assign hd_numberHmap ={}>
|
<#assign hd_numberHmap ={}>
|
||||||
<#assign hd_numberHmapHUadded ={}>
|
<#assign hd_numberHmapHUadded ={}>
|
||||||
@ -29,10 +42,7 @@
|
|||||||
<#list preparation_line.despatched_ipg_list as despatched_ipg>
|
<#list preparation_line.despatched_ipg_list as despatched_ipg>
|
||||||
<#assign HUadded_packing_datetime = RfxDateTimetoUTCWithTimezone(preparation_line.confirmation_datetime,time_zone_rfx) />
|
<#assign HUadded_packing_datetime = RfxDateTimetoUTCWithTimezone(preparation_line.confirmation_datetime,time_zone_rfx) />
|
||||||
<#if (!hd_numberHmap[despatched_ipg.hd_number]?? || !hd_numberHmap[despatched_ipg.carton_number]??) && (trackingNumberSource==2 || trackingNumberSource==3 || (despatched_ipg.consignment_unit_id!="" && trackingNumberSource==1))>
|
<#if (!hd_numberHmap[despatched_ipg.hd_number]?? || !hd_numberHmap[despatched_ipg.carton_number]??) && (trackingNumberSource==2 || trackingNumberSource==3 || (despatched_ipg.consignment_unit_id!="" && trackingNumberSource==1))>
|
||||||
<#if !first >
|
|
||||||
<#assign first = false>
|
|
||||||
,
|
,
|
||||||
</#if>
|
|
||||||
{
|
{
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.TrackingHULabeled>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.TrackingHULabeled>
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
@ -41,10 +51,7 @@
|
|||||||
}
|
}
|
||||||
</#if>
|
</#if>
|
||||||
<#if despatched_ipg.carton_number != "000000000000000000" && despatched_ipg.carton_number!=despatched_ipg.hd_number >
|
<#if despatched_ipg.carton_number != "000000000000000000" && despatched_ipg.carton_number!=despatched_ipg.hd_number >
|
||||||
<#if !first >
|
|
||||||
<#assign first = false>
|
|
||||||
,
|
,
|
||||||
</#if>
|
|
||||||
{
|
{
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.HandlingunitHUsAdded>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.HandlingunitHUsAdded>
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowLinesAdded>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowLinesAdded>
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
"datas" :
|
"datas" :
|
||||||
<#include "RFXtoRP_HsrReceiptList_ExecutionflowLinesAdded.ftl">
|
<#include "RFXtoRP_HliReceiptLr_ExecutionflowLinesAdded.ftl">
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user