From 3d2670b9a23d1106773d0881e62c0f5ae1409241 Mon Sep 17 00:00:00 2001 From: "GROUP\\frea" Date: Tue, 15 Jul 2025 14:57:59 +0200 Subject: [PATCH] SCPN1-9084 --- RFXtoRP_HsrPackBranch.ftl | 32 ++++++++++++++++++++++++++++++++ RFXtoRP_HsrPackOrder.ftl | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 RFXtoRP_HsrPackBranch.ftl create mode 100644 RFXtoRP_HsrPackOrder.ftl diff --git a/RFXtoRP_HsrPackBranch.ftl b/RFXtoRP_HsrPackBranch.ftl new file mode 100644 index 0000000..f1b7b7d --- /dev/null +++ b/RFXtoRP_HsrPackBranch.ftl @@ -0,0 +1,32 @@ +<#-- **** input parameters ***** --> +<#-- input : message RFX --> +<#-- project : projectId in ReflexPlatform --> +<#-- organisation : organisationtId in ReflexPlatform --> + +<#assign cloudEventMsg = JsonUtil.jsonToMap(input)> +<#assign projectRP = project> +<#assign organisationRP = organisation> + +<#assign aDateTime = .now> + +<#switch cloudEventMsg.action> + <#case "C"> + <#case "U"> + <#-- *********************************************** Action = CREATE or UPDATE ******************** --> + <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> + <#assign packBranch = JsonUtil.jsonToMap(dataRfx)> + + <#stop "no generic FTL file available yet for Pack Branch"> + <#break> + + <#case "D"> + <#-- *********************************************** Action = DELETE ******************** --> + <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> + <#assign packBranch = JsonUtil.jsonToMap(dataRfx)> + + <#stop "no generic FTL file available yet for Pack Branch"> + <#break> + <#default> + <#stop > + + diff --git a/RFXtoRP_HsrPackOrder.ftl b/RFXtoRP_HsrPackOrder.ftl new file mode 100644 index 0000000..1b78ac1 --- /dev/null +++ b/RFXtoRP_HsrPackOrder.ftl @@ -0,0 +1,32 @@ +<#-- **** input parameters ***** --> +<#-- input : message RFX --> +<#-- project : projectId in ReflexPlatform --> +<#-- organisation : organisationtId in ReflexPlatform --> + +<#assign cloudEventMsg = JsonUtil.jsonToMap(input)> +<#assign projectRP = project> +<#assign organisationRP = organisation> + +<#assign aDateTime = .now> + +<#switch cloudEventMsg.action> + <#case "C"> + <#case "U"> + <#-- *********************************************** Action = CREATE or UPDATE ******************** --> + <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> + <#assign packOrder = JsonUtil.jsonToMap(dataRfx)> + + <#stop "no generic FTL file available yet for Pack Order"> + <#break> + + <#case "D"> + <#-- *********************************************** Action = DELETE ******************** --> + <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> + <#assign packOrder = JsonUtil.jsonToMap(dataRfx)> + + <#stop "no generic FTL file available yet for Pack Order"> + <#break> + <#default> + <#stop > + +