From 9524923f0c6104e20060360f1c63e0cf3889da28 Mon Sep 17 00:00:00 2001 From: frea Date: Fri, 27 Sep 2024 10:08:36 +0200 Subject: [PATCH 1/2] SCPN1-7265 --- RFXtoRP_HsaLstAppSta.ftl | 40 +++++++++++++++++++++++++++++++++++++++ RFXtoRP_HsrCarrierApt.ftl | 40 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 RFXtoRP_HsaLstAppSta.ftl create mode 100644 RFXtoRP_HsrCarrierApt.ftl diff --git a/RFXtoRP_HsaLstAppSta.ftl b/RFXtoRP_HsaLstAppSta.ftl new file mode 100644 index 0000000..8b00fd7 --- /dev/null +++ b/RFXtoRP_HsaLstAppSta.ftl @@ -0,0 +1,40 @@ +<#-- **** 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> + +<#stop> + +<#switch cloudEventMsg.action> + <#case "C"> + <#case "U"> + <#-- *********************************************** Action = CREATE or UPDATE ******************** --> + <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> + <#assign depot = JsonUtil.jsonToMap(dataRfx)> + [ + { + + } + ] + <#break> + + <#case "D"> + <#-- *********************************************** Action = DELETE *************************** --> + <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> + <#assign depot = JsonUtil.jsonToMap(dataRfx)> + [ + { + + } + ] + <#break> + + <#default> + <#stop "event not supported"> + \ No newline at end of file diff --git a/RFXtoRP_HsrCarrierApt.ftl b/RFXtoRP_HsrCarrierApt.ftl new file mode 100644 index 0000000..8b00fd7 --- /dev/null +++ b/RFXtoRP_HsrCarrierApt.ftl @@ -0,0 +1,40 @@ +<#-- **** 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> + +<#stop> + +<#switch cloudEventMsg.action> + <#case "C"> + <#case "U"> + <#-- *********************************************** Action = CREATE or UPDATE ******************** --> + <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> + <#assign depot = JsonUtil.jsonToMap(dataRfx)> + [ + { + + } + ] + <#break> + + <#case "D"> + <#-- *********************************************** Action = DELETE *************************** --> + <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> + <#assign depot = JsonUtil.jsonToMap(dataRfx)> + [ + { + + } + ] + <#break> + + <#default> + <#stop "event not supported"> + \ No newline at end of file From e53e4ec9a0b768277cddad25e5a3e9cfe672fb94 Mon Sep 17 00:00:00 2001 From: frea Date: Mon, 30 Sep 2024 12:05:38 +0200 Subject: [PATCH 2/2] SCPN1-7265 --- RFXtoRP_HsaLstAppSta.ftl => RFXtoRP_HsaLstCarSta.ftl | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename RFXtoRP_HsaLstAppSta.ftl => RFXtoRP_HsaLstCarSta.ftl (100%) diff --git a/RFXtoRP_HsaLstAppSta.ftl b/RFXtoRP_HsaLstCarSta.ftl similarity index 100% rename from RFXtoRP_HsaLstAppSta.ftl rename to RFXtoRP_HsaLstCarSta.ftl