diff --git a/README.md b/README.md index c650960..4f870a1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ - # HARDIS SC NETWORK Core FTLs ## 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 **HARDIS WMS Connector** is a set of **FreeMarker templates (FTL)** designed to transform **outgoing JSON flows from HARDIS 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. @@ -14,7 +13,6 @@ This connector does not contain any standalone executable code: it is intended t - Apply transformation rules (mapping, conversions, enrichments). - Generate a **final structured JSON** for HARDIS SC NETWORK. - ## Useful Resources - [FreeMarker Documentation](https://freemarker.apache.org/docs/index.html) diff --git a/RFXtoRP_HfDtlStockLs_StockSnapshotted_SegmentationKeys.ftl b/RFXtoRP_HfDtlStockLs_StockSnapshotted_SegmentationKeys.ftl index 9a24817..8fefdd0 100644 --- a/RFXtoRP_HfDtlStockLs_StockSnapshotted_SegmentationKeys.ftl +++ b/RFXtoRP_HfDtlStockLs_StockSnapshotted_SegmentationKeys.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HfDtlStockLs to find Reflex WMS fields names --> +<#-- use protobuf of class HfDtlStockLs to find HARDIS WMS fields names --> <#-- diff --git a/RFXtoRP_HfRpConfig.ftl b/RFXtoRP_HfRpConfig.ftl index 0d0751e..51dc7ae 100644 --- a/RFXtoRP_HfRpConfig.ftl +++ b/RFXtoRP_HfRpConfig.ftl @@ -1,5 +1,5 @@ <#-- **** -Reflex WMS provides some of their environment parameters through the class HfRpConfig +HARDIS WMS provides some of their environment parameters through the class HfRpConfig those parameters are stored in FTL file HfRpConfig.ftl for later use in some of the data ftl files *** --> diff --git a/RFXtoRP_HsaCarrier_ActorCreated.ftl b/RFXtoRP_HsaCarrier_ActorCreated.ftl index 8ac9722..38e55be 100644 --- a/RFXtoRP_HsaCarrier_ActorCreated.ftl +++ b/RFXtoRP_HsaCarrier_ActorCreated.ftl @@ -21,7 +21,7 @@ "Address": { - <#-- if Reflex WMS address is structured --> + <#-- if HARDIS WMS address is structured --> <#if carrier.carrier_structured_address?? > "Name": "${carrier.carrier_structured_address.name_or_company?json_string}", @@ -38,7 +38,7 @@ "ProvinceCode": "${carrier.carrier_structured_address.territorial_div_code?json_string}", "State": "${carrier.carrier_structured_address.country_designation?json_string}" - <#-- if Reflex WMS address is not structured --> + <#-- if HARDIS WMS address is not structured --> <#else> <#if carrier.address??> "Name": "${carrier.address.company_name?json_string}", diff --git a/RFXtoRP_HsaCarrier_ActorCreated_Metadata.ftl b/RFXtoRP_HsaCarrier_ActorCreated_Metadata.ftl index f013ed3..ceb5dfe 100644 --- a/RFXtoRP_HsaCarrier_ActorCreated_Metadata.ftl +++ b/RFXtoRP_HsaCarrier_ActorCreated_Metadata.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsaCarrier to find Reflex WMS fields names --> +<#-- use protobuf of class HsaCarrier to find HARDIS WMS fields names --> "MetaData": [ ] \ No newline at end of file diff --git a/RFXtoRP_HsaCons_ActorCreated.ftl b/RFXtoRP_HsaCons_ActorCreated.ftl index 84df17a..f2afc88 100644 --- a/RFXtoRP_HsaCons_ActorCreated.ftl +++ b/RFXtoRP_HsaCons_ActorCreated.ftl @@ -23,7 +23,7 @@ "Address": { - <#-- if Reflex WMS is structured --> + <#-- if HARDIS WMS is structured --> <#if actor.consignee_structured_address??> "Name": "${actor.consignee_structured_address.name_or_company?json_string}", @@ -40,7 +40,7 @@ "ProvinceCode": "${actor.consignee_structured_address.territorial_div_code?json_string}", "State": "${actor.consignee_structured_address.country_designation?json_string}" - <#-- if Reflex WMS is not structured --> + <#-- if HARDIS WMS is not structured --> <#else> <#if actor.address?? > diff --git a/RFXtoRP_HsaCons_ActorCreated_Metadata.ftl b/RFXtoRP_HsaCons_ActorCreated_Metadata.ftl index 19decec..8555307 100644 --- a/RFXtoRP_HsaCons_ActorCreated_Metadata.ftl +++ b/RFXtoRP_HsaCons_ActorCreated_Metadata.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsaCons to find Reflex WMS fields names --> +<#-- use protobuf of class HsaCons to find HARDIS WMS fields names --> "MetaData": [ ] \ No newline at end of file diff --git a/RFXtoRP_HsaDispute_ClaimMetadata.ftl b/RFXtoRP_HsaDispute_ClaimMetadata.ftl index e5b9b99..d0a8314 100644 --- a/RFXtoRP_HsaDispute_ClaimMetadata.ftl +++ b/RFXtoRP_HsaDispute_ClaimMetadata.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsaDispute to find Reflex Wms fields names --> +<#-- use protobuf of class HsaDispute to find HARDIS WMS fields names --> "MetaData": [ ] \ No newline at end of file diff --git a/RFXtoRP_HsaIpgMove_GoodsReceived_SegmentationKeys.ftl b/RFXtoRP_HsaIpgMove_GoodsReceived_SegmentationKeys.ftl index 4fa3d1d..f47abd4 100644 --- a/RFXtoRP_HsaIpgMove_GoodsReceived_SegmentationKeys.ftl +++ b/RFXtoRP_HsaIpgMove_GoodsReceived_SegmentationKeys.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsaIpgMove to find Reflex WMS fields names --> +<#-- use protobuf of class HsaIpgMove to find HARDIS WMS fields names --> <#-- diff --git a/RFXtoRP_HsaIpgMove_StockMoved_SegmentationKeys.ftl b/RFXtoRP_HsaIpgMove_StockMoved_SegmentationKeys.ftl index efb4f7b..29d1851 100644 --- a/RFXtoRP_HsaIpgMove_StockMoved_SegmentationKeys.ftl +++ b/RFXtoRP_HsaIpgMove_StockMoved_SegmentationKeys.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsaIpgMove to find Reflex WMS fields names --> +<#-- use protobuf of class HsaIpgMove to find HARDIS WMS fields names --> <#-- "SegmentationKeys": [ { @@ -15,22 +15,22 @@ "Value": { "String" : "no batch"} <#else> "Value": { "String" : "${reflexMvtStockInterface.batch_1}"} - + }, { "Key": "HeldForSpecificCode", "Value": { "Bool" : "${reflexMvtStockInterface.ipg_specific_code_held}"} }, - + { - <#assign manufacturing_date = reflexMvtStockInterface.manufacture_date?datetime(rfx_date_format_default)?iso_utc /> + <#assign manufacturing_date = reflexMvtStockInterface.manufacture_date?datetime(rfx_date_format_default)?iso_utc /> "Key": "ManufacturingDate", "Value": "Timestamp": { "AuthorTimeZone": "${time_zone_rfx}", "DateTime": "${manufacturing_date}" } - } - ] + } + ] --> "SegmentationKeys": [ ] \ No newline at end of file diff --git a/RFXtoRP_HsaItmLv_LogisticVariantUpdated_Metadata.ftl b/RFXtoRP_HsaItmLv_LogisticVariantUpdated_Metadata.ftl index 72f7aa3..cbbb6f7 100644 --- a/RFXtoRP_HsaItmLv_LogisticVariantUpdated_Metadata.ftl +++ b/RFXtoRP_HsaItmLv_LogisticVariantUpdated_Metadata.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsaItmLv to find Reflex Wms fields names --> +<#-- use protobuf of class HsaItmLv to find HARDIS WMS fields names --> "MetaData": [ ] \ No newline at end of file diff --git a/RFXtoRP_HsaItm_ItemCreated_ItemMetadata.ftl b/RFXtoRP_HsaItm_ItemCreated_ItemMetadata.ftl index 881c81c..11676ae 100644 --- a/RFXtoRP_HsaItm_ItemCreated_ItemMetadata.ftl +++ b/RFXtoRP_HsaItm_ItemCreated_ItemMetadata.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsaItm to find Reflex Wms fields names --> +<#-- use protobuf of class HsaItm to find HARDIS WMS fields names --> "MetaData": [ ] \ No newline at end of file diff --git a/RFXtoRP_HsaItm_ItemCreated_LogisticVariantMetadata.ftl b/RFXtoRP_HsaItm_ItemCreated_LogisticVariantMetadata.ftl index 49607a6..2b30c89 100644 --- a/RFXtoRP_HsaItm_ItemCreated_LogisticVariantMetadata.ftl +++ b/RFXtoRP_HsaItm_ItemCreated_LogisticVariantMetadata.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsaItm to find Reflex Wms fields names --> +<#-- use protobuf of class HsaItm to find HARDIS WMS fields names --> "MetaData": [ ] \ No newline at end of file diff --git a/RFXtoRP_HsaSup_ActorCreated.ftl b/RFXtoRP_HsaSup_ActorCreated.ftl index 23a560c..7eb8e33 100644 --- a/RFXtoRP_HsaSup_ActorCreated.ftl +++ b/RFXtoRP_HsaSup_ActorCreated.ftl @@ -20,7 +20,7 @@ "Address": { - <#-- if Reflex WMS address is structured --> + <#-- if HARDIS WMS address is structured --> <#if actor.supplier_structured_address?? > "Name": "${actor.supplier_structured_address.name_or_company?json_string}", @@ -37,7 +37,7 @@ "ProvinceCode": "${actor.supplier_structured_address.territorial_div_code?json_string}", "State": "${actor.supplier_structured_address.country_designation?json_string}" - <#-- if Reflex WMS address is not structured --> + <#-- if HARDIS WMS address is not structured --> <#else> <#if actor.optional_attributes?? > "Name": "${actor.optional_attributes.company_name?json_string}", diff --git a/RFXtoRP_HsaSup_ActorCreated_Metadata.ftl b/RFXtoRP_HsaSup_ActorCreated_Metadata.ftl index 770bf64..80b9a11 100644 --- a/RFXtoRP_HsaSup_ActorCreated_Metadata.ftl +++ b/RFXtoRP_HsaSup_ActorCreated_Metadata.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsaSup to find Reflex WMS fields names --> +<#-- use protobuf of class HsaSup to find HARDIS WMS fields names --> "MetaData": [ ] \ No newline at end of file diff --git a/RFXtoRP_HsrDepot_ActorCreated.ftl b/RFXtoRP_HsrDepot_ActorCreated.ftl index c64e285..8993853 100644 --- a/RFXtoRP_HsrDepot_ActorCreated.ftl +++ b/RFXtoRP_HsrDepot_ActorCreated.ftl @@ -22,7 +22,7 @@ "Address": { - <#-- if Reflex WMS address is structured --> + <#-- if HARDIS WMS address is structured --> <#if depot.physical_depot_structured_address?? > "Name": "${depot.physical_depot_structured_address.name_or_company?json_string}", @@ -39,7 +39,7 @@ "ProvinceCode": "${depot.physical_depot_structured_address.territorial_div_code?json_string}", "State": "${depot.physical_depot_structured_address.country_designation?json_string}" - <#-- if Reflex WMS address is not structured --> + <#-- if HARDIS WMS address is not structured --> <#else> <#if depot.physical_depot_address??> "Name": "${depot.physical_depot_address.company_name?json_string}", diff --git a/RFXtoRP_HsrDepot_ActorCreated_Metadata.ftl b/RFXtoRP_HsrDepot_ActorCreated_Metadata.ftl index 68c665e..dc02b6c 100644 --- a/RFXtoRP_HsrDepot_ActorCreated_Metadata.ftl +++ b/RFXtoRP_HsrDepot_ActorCreated_Metadata.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsrDepot to find Reflex WMS fields names --> +<#-- use protobuf of class HsrDepot to find HARDIS WMS fields names --> "MetaData": [ ] \ No newline at end of file diff --git a/RFXtoRP_HsrPrepa_GoodsPrepared_HandlingUnitMetadata.ftl b/RFXtoRP_HsrPrepa_GoodsPrepared_HandlingUnitMetadata.ftl index 9f6c877..dde74cb 100644 --- a/RFXtoRP_HsrPrepa_GoodsPrepared_HandlingUnitMetadata.ftl +++ b/RFXtoRP_HsrPrepa_GoodsPrepared_HandlingUnitMetadata.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsrPrepa to find Reflex WMS fields names --> +<#-- use protobuf of class HsrPrepa to find HARDIS WMS fields names --> <#-- "MetaData" :[ diff --git a/RFXtoRP_HsrPrepa_GoodsPrepared_SegmentationKeys.ftl b/RFXtoRP_HsrPrepa_GoodsPrepared_SegmentationKeys.ftl index 0d28cf4..60d6334 100644 --- a/RFXtoRP_HsrPrepa_GoodsPrepared_SegmentationKeys.ftl +++ b/RFXtoRP_HsrPrepa_GoodsPrepared_SegmentationKeys.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class Hsrprepa to find Reflex WMS fields names --> +<#-- use protobuf of class Hsrprepa to find HARDIS WMS fields names --> <#-- "SegmentationKeys": [ { diff --git a/RFXtoRP_HsrPrepa_HUsAdded_Metadata.ftl b/RFXtoRP_HsrPrepa_HUsAdded_Metadata.ftl index 5b233b9..e6d07b1 100644 --- a/RFXtoRP_HsrPrepa_HUsAdded_Metadata.ftl +++ b/RFXtoRP_HsrPrepa_HUsAdded_Metadata.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsrPrepa to find Reflex WMS fields names --> +<#-- use protobuf of class HsrPrepa to find HARDIS WMS fields names --> <#-- "MetaData" :[ diff --git a/RFXtoRP_HsrPro_ExecutionflowDetected_HeaderMetadata.ftl b/RFXtoRP_HsrPro_ExecutionflowDetected_HeaderMetadata.ftl index 64a37f6..8506511 100644 --- a/RFXtoRP_HsrPro_ExecutionflowDetected_HeaderMetadata.ftl +++ b/RFXtoRP_HsrPro_ExecutionflowDetected_HeaderMetadata.ftl @@ -1,6 +1,6 @@ -<#-- use protobuf of class HsrPro to find Reflex Wms fields names --> +<#-- use protobuf of class HsrPro to find HARDIS WMS fields names --> -<#-- +<#-- "MetaData": [ { diff --git a/RFXtoRP_HsrPro_ExecutionflowDetected_LineMetadata.ftl b/RFXtoRP_HsrPro_ExecutionflowDetected_LineMetadata.ftl index 8dc79af..f0de72a 100644 --- a/RFXtoRP_HsrPro_ExecutionflowDetected_LineMetadata.ftl +++ b/RFXtoRP_HsrPro_ExecutionflowDetected_LineMetadata.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsrPro to find Reflex Wms fields names --> +<#-- use protobuf of class HsrPro to find HARDIS WMS fields names --> "MetaData": [ ] \ No newline at end of file diff --git a/RFXtoRP_HsrPro_ExecutionflowDetected_SegmentationKeys.ftl b/RFXtoRP_HsrPro_ExecutionflowDetected_SegmentationKeys.ftl index 8cb3286..9cd8bc9 100644 --- a/RFXtoRP_HsrPro_ExecutionflowDetected_SegmentationKeys.ftl +++ b/RFXtoRP_HsrPro_ExecutionflowDetected_SegmentationKeys.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsrPro to find Reflex WMS fields names --> +<#-- use protobuf of class HsrPro to find HARDIS WMS fields names --> <#-- "SegmentationKeys": [ @@ -16,7 +16,7 @@ "Value": { "String" : "no batch"} <#else> "Value": { "String" : "${preparation_order_line.batch_1}"} - + } ] --> diff --git a/RFXtoRP_HsrReceiptList_ExecutionflowDetected_HeaderMetadata.ftl b/RFXtoRP_HsrReceiptList_ExecutionflowDetected_HeaderMetadata.ftl index 301e1e2..079640d 100644 --- a/RFXtoRP_HsrReceiptList_ExecutionflowDetected_HeaderMetadata.ftl +++ b/RFXtoRP_HsrReceiptList_ExecutionflowDetected_HeaderMetadata.ftl @@ -1,6 +1,6 @@ -<#-- use protobuf of class HsrReceiptList to find Reflex Wms fields names --> +<#-- use protobuf of class HsrReceiptList to find HARDIS WMS fields names --> -<#-- +<#-- "MetaData": [ { diff --git a/RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineMetadata.ftl b/RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineMetadata.ftl index de873ff..d77c54e 100644 --- a/RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineMetadata.ftl +++ b/RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineMetadata.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsrReceiptList to find Reflex Wms fields names --> +<#-- use protobuf of class HsrReceiptList to find HARDIS WMS fields names --> "MetaData": [ ] \ No newline at end of file diff --git a/RFXtoRP_HsrReceiptList_ExecutionflowDetected_SegmentationKeys.ftl b/RFXtoRP_HsrReceiptList_ExecutionflowDetected_SegmentationKeys.ftl index 8950e72..d39b703 100644 --- a/RFXtoRP_HsrReceiptList_ExecutionflowDetected_SegmentationKeys.ftl +++ b/RFXtoRP_HsrReceiptList_ExecutionflowDetected_SegmentationKeys.ftl @@ -1,4 +1,4 @@ -<#-- use protobuf of class HsrReceiptList to find Reflex WMS fields names --> +<#-- use protobuf of class HsrReceiptList to find HARDIS WMS fields names --> <#-- "SegmentationKeys": [ @@ -16,7 +16,7 @@ "Value": { "String" : "no batch"} <#else> "Value": { "String" : "${line_without_detail.batch_1}"} - + }, { "Key": "HeldForSpecificCode", @@ -25,15 +25,15 @@ <#else> "Value": { "Bool" : "False"} }, - + { - <#assign manufacturing_date = line_without_detail.ipg_date_of_manufacture_date?datetime(rfx_date_format_default)?iso_utc /> + <#assign manufacturing_date = line_without_detail.ipg_date_of_manufacture_date?datetime(rfx_date_format_default)?iso_utc /> "Key": "ManufacturingDate", "Value": "Timestamp": { "AuthorTimeZone": "${time_zone_rfx}", "DateTime": "${manufacturing_date}" } - } + } ] diff --git a/RP_connector.ftl b/RP_connector.ftl index cb996bd..e406b78 100644 --- a/RP_connector.ftl +++ b/RP_connector.ftl @@ -14,7 +14,7 @@ those parameters are stored in FTL file Conf-connector.ftl for later use in some <#noparse><#-- Possible values for SupplyOfTheTrackingNumber parameter : --> <#noparse><#-- 0 : Always empty --> -<#noparse><#-- 1 : Always use Reflex WMS tracking --> +<#noparse><#-- 1 : Always use HARDIS WMS tracking --> <#noparse><#-- 2 : Always use the HU number --> <#noparse><#-- 3 : Use Reflex tracking if it exists, the HU number otherwise --> diff --git a/RPtoRFX_PrepOrder.ftl b/RPtoRFX_PrepOrder.ftl index cc83fb2..5976e5a 100644 --- a/RPtoRFX_PrepOrder.ftl +++ b/RPtoRFX_PrepOrder.ftl @@ -7,8 +7,8 @@ <#assign titlecode ="1"> <#assign contacttypecode ="010"> <#assign adresstypecode ="010"> -<#-- Si vous utilisez des acteurs non référencés, il faudra créer un destinataire "VIZ" dans Reflex WMS pour utiliser cette fonctionnalité --> -<#-- If you are using unreferenced actors, you will need to create a "VIZ" consignee in Reflex WMS to use this feature --> +<#-- Si vous utilisez des acteurs non référencés, il faudra créer un destinataire "VIZ" dans HARDIS WMS pour utiliser cette fonctionnalité --> +<#-- If you are using unreferenced actors, you will need to create a "VIZ" consignee in HARDIS WMS to use this feature --> <#assign defaultactor ="VIZ"> <#if executionflow.ShipTo.ActorID?? && executionflow.ShipTo.ActorID!=""> <#assign actorID = "${RPtoRFXprefixConsignee(executionflow.ShipTo.ActorID)}" >