Addition of example in SK inclusions

This commit is contained in:
Laure Pascal 2023-09-06 16:43:31 +02:00
parent 7a46793fe7
commit d050ade2b9
7 changed files with 180 additions and 103 deletions

View File

@ -1,7 +1,16 @@
<#-- **** file included in RFXtoRP_HsaItm_ItemCreated.ftl ***** -->
<#-- use protobuf of class HfDtlStockLs to find Reflex WMS fields names -->
<#--"SegmentationKeys": [
<#--
"SegmentationKeys": [
{
"Key": "Grade",
"Value": { "String" : "${stock.grade_code}"}
},
{
"Key": "Owner",
"Value": { "String" : "${stock.owner_code}"}
},
{
"Key": "BatchNumber",
<#if stock.batch_1 == "">
@ -11,14 +20,23 @@
</#if>
},
{
"Key": "Grade",
"Value": { "String" : "${SegmentationKeys_KV[stock.grade_code]!Default_Value_Grade_SegmentationKey}"}
"Key": "HeldForSpecificCode",
"Value": { "Bool" : "${stock.held_for_specific_code}"}
},
{
"Key": "Owner",
"Value": { "String" : "${stock.owner_code}"}
}
],
{
<#assign manufacturing_datetime = RfxDateTimetoUTC(stock.Date_of_manufacture,time_zone_offset_rfx) />
"Key": "ManufacturingDate",
"Value": "Timestamp": {
"AuthorTimeZone": "${time_zone_rfx}",
"DateTime": "${manufacturing_datetime}"
}
}
]
-->
"SegmentationKeys": [ ]

View File

@ -1,14 +1,16 @@
<#-- use protobuf of class HsaIpgMove to find Reflex WMS fields names -->
<#--"SegmentationKeys":
[
<#--
"SegmentationKeys": [
{
"Key": "Grade",
"Value": {"String": "${reflexMvtStockInterface.grade_code}"}
"Value": { "String" : "${reflexMvtStockInterface.grade_code}"}
},
{
"Key": "Owner",
"Value": {"String": "${reflexMvtStockInterface.owner_code}"}
"Value": { "String" : "${reflexMvtStockInterface.owner_code}"}
},
{
"Key": "BatchNumber",
@ -17,8 +19,21 @@
<#else>
"Value": { "String" : "${reflexMvtStockInterface.batch_1}"}
</#if>
},
{
"Key": "HeldForSpecificCode",
"Value": { "Bool" : "${reflexMvtStockInterface.ipg_specific_code_held}"}
},
{
<#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": [ ]

View File

@ -1,15 +1,13 @@
<#-- **** file included in RFXtoRP_HsaItm_ItemCreated.ftl ***** -->
<#-- use protobuf of class HsaIpgMove to find Reflex WMS fields names -->
<#--"SegmentationKeys":
[
<#--
"SegmentationKeys": [
{
"Key": "Grade",
"Value": {"String": "${reflexMvtStockInterface.grade_code}"}
"Value": { "String" : "${reflexMvtStockInterface.grade_code}"}
},
{
"Key": "Owner",
"Value": {"String": "${reflexMvtStockInterface.owner_code}"}
"Value": { "String" : "${reflexMvtStockInterface.owner_code}"}
},
{
"Key": "BatchNumber",
@ -18,8 +16,21 @@
<#else>
"Value": { "String" : "${reflexMvtStockInterface.batch_1}"}
</#if>
},
{
"Key": "HeldForSpecificCode",
"Value": { "Bool" : "${reflexMvtStockInterface.ipg_specific_code_held}"}
},
{
<#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": [ ],
"SegmentationKeys": [ ]

View File

@ -1,15 +1,6 @@
<#-- use protobuf of class Hsrprepa to find Reflex WMS fields names -->
<#--
"SegmentationKeys" :[
{
"Key": "BatchNumber",
<#if despatched_ipg.batch_number == "">
"Value": { "String" : "no batch"}
<#else>
"Value": { "String" : "${despatched_ipg.batch_number}"}
</#if>
},
"SegmentationKeys": [
{
"Key": "Grade",
"Value": { "String" : "${preparation_line.grade_code}"}
@ -17,8 +8,34 @@
{
"Key": "Owner",
"Value": { "String" : "${preparation_line.owner_code}"}
},
{
"Key": "BatchNumber",
<#if reflexMvtStockInterface.batch_1 == "">
"Value": { "String" : "no batch"}
<#else>
"Value": { "String" : "${despatched_ipg.batch_number}"}
</#if>
},
{
"Key": "HeldForSpecificCode",
<#if despatched_ipg.ipg_held == "true">
"Value": { "Bool" : "True"}
<#else>
"Value": { "Bool" : "False"}
},
{
<#assign manufacturing_date = despatched_ipg.ipg_manufacture_date?datetime(rfx_date_format_default)?iso_utc />
"Key": "ManufacturingDate",
"Value": "Timestamp": {
"AuthorTimeZone": "${time_zone_rfx}",
"DateTime": "${manufacturing_date}"
}
}
]
-->
"SegmentationKeys": [ ]

View File

@ -28,15 +28,6 @@
"datas" :
<#include "RFXtoRP_HsrPro_ExecutionflowDetected.ftl">
<#-- preparation expected a prendre en compte dans le connecteur
,
<#assign apiReflexPlatformID = ApiReflexPlatformID.TransportExpected>
"apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" :
<#include "RFXtoRP_HsrPro_PreparationExpected.ftl">
-->
<#-- Preparation order confirmed -->
<#else>
<#assign apiReflexPlatformID = ApiReflexPlatformID.PreparationCompleted>

View File

@ -1,20 +1,23 @@
<#-- **** file included in RFXtoRP_HsaItm_ItemCreated.ftl ***** -->
<#-- use protobuf of class HsrPro to find Reflex WMS fields names -->
<#--
"SegmentationKeys": [ {
"SegmentationKeys": [
{
"Key": "Grade",
"Value": { "String" : "${line.grade_code_to_prepare}"}
},
{
"Key": "Owner",
"Value": { "String" : "${line.owner_code_to_prepare}"}
},
{
"Key": "BatchNumber",
<#if line.batch_1 == "">
<#if reflexMvtStockInterface.batch_1 == "">
"Value": { "String" : "no batch"}
<#else>
"Value": { "String" : "${line.batch_1}"}
</#if>
},
{
"Key": "Grade",
"Value": { "String" : "${SegmentationKeys_KV[line.grade_code_to_prepare]!Default_Value_Grade_SegmentationKey}"}
}
]
-->
"SegmentationKeys": [ ]

View File

@ -1,18 +1,40 @@
<#-- use protobuf of class HsrReceiptList to find Reflex WMS fields names -->
<#--
"SegmentationKeys": [ {
"SegmentationKeys": [
{
"Key": "Grade",
"Value": { "String" : "${line.grade_code}"}
},
{
"Key": "Owner",
"Value": { "String" : "${line.owner_code}"}
},
{
"Key": "BatchNumber",
<#if line.batch_1 == "">
<#if reflexMvtStockInterface.batch_1 == "">
"Value": { "String" : "no batch"}
<#else>
"Value": { "String" : "${line.batch_1}"}
"Value": { "String" : "${line_without_detail.batch_1}"}
</#if>
},
{
"Key": "Grade",
"Value": { "String" : "${line.grade_code_to_prepare}
"Key": "HeldForSpecificCode",
<#if line_without_detail.hold_for_specific_code == "true">
"Value": { "Bool" : "True"}
<#else>
"Value": { "Bool" : "False"}
},
{
<#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}"
}
}
]
-->