From 9524923f0c6104e20060360f1c63e0cf3889da28 Mon Sep 17 00:00:00 2001 From: frea Date: Fri, 27 Sep 2024 10:08:36 +0200 Subject: [PATCH] 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