From 717cd294eb7248158b099868e484136a7fbd8c5f Mon Sep 17 00:00:00 2001 From: Laure Pascal Date: Wed, 27 Sep 2023 10:21:41 +0200 Subject: [PATCH] cases where no generic FTL available yet --- RFXtoRP_HfGrade.ftl | 23 +++++++---------------- RFXtoRP_HfLvTypeList.ftl | 23 +++++++---------------- RFXtoRP_HfOwner.ftl | 23 +++++++---------------- 3 files changed, 21 insertions(+), 48 deletions(-) diff --git a/RFXtoRP_HfGrade.ftl b/RFXtoRP_HfGrade.ftl index b23f046..ee9990d 100644 --- a/RFXtoRP_HfGrade.ftl +++ b/RFXtoRP_HfGrade.ftl @@ -6,23 +6,14 @@ <#assign aDateTime = .now> <#switch cloudEventMsg.action> - <#case "C"> - <#case "U"> - <#-- *********************************************** Action = CREATE or UPDATE ******************** --> - <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> - <#assign file = JsonUtil.jsonToMap(dataRfx)> - <#noparse><#--TODO RFXtoRP_HfGrade.ftl --> - <#--<#include "RFXtoRP_RfxConfigurationRp.ftl"> --> - - <#break> - - <#case "D"> - <#-- *********************************************** Action = DELETE ******************** --> - <#stop "en attente de FTL"> - <#break> + <#case "C"> + <#case "U"> + <#case "D"> + <#stop "no generic FTL file available yet for Grades"> + <#break> - <#default> - <#stop> + <#default> + <#stop "event not supported"> diff --git a/RFXtoRP_HfLvTypeList.ftl b/RFXtoRP_HfLvTypeList.ftl index 1f98762..2f03386 100644 --- a/RFXtoRP_HfLvTypeList.ftl +++ b/RFXtoRP_HfLvTypeList.ftl @@ -6,23 +6,14 @@ <#assign aDateTime = .now> <#switch cloudEventMsg.action> - <#case "C"> - <#case "U"> - <#-- *********************************************** Action = CREATE or UPDATE ******************** --> - <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> - <#assign file = JsonUtil.jsonToMap(dataRfx)> - <#noparse><#--TODO RFXtoRP_HfLvTypeList.ftl --> - <#--<#include "RFXtoRP_RfxConfigurationRp.ftl"> --> - - <#break> - - <#case "D"> - <#-- *********************************************** Action = DELETE ******************** --> - <#stop "en attente de FTL"> - <#break> + <#case "C"> + <#case "U"> + <#case "D"> + <#stop "no generic FTL file available yet for LV types"> + <#break> - <#default> - <#stop> + <#default> + <#stop "event not supported"> diff --git a/RFXtoRP_HfOwner.ftl b/RFXtoRP_HfOwner.ftl index b9c7bc7..571248a 100644 --- a/RFXtoRP_HfOwner.ftl +++ b/RFXtoRP_HfOwner.ftl @@ -6,23 +6,14 @@ <#assign aDateTime = .now> <#switch cloudEventMsg.action> - <#case "C"> - <#case "U"> - <#-- *********************************************** Action = CREATE or UPDATE ******************** --> - <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> - <#assign file = JsonUtil.jsonToMap(dataRfx)> - <#noparse><#--TODO RFXtoRP_HfOwner.ftl --> - <#--<#include "RFXtoRP_RfxConfigurationRp.ftl"> --> - - <#break> - - <#case "D"> - <#-- *********************************************** Action = DELETE ******************** --> - <#stop "en attente de FTL"> - <#break> + <#case "C"> + <#case "U"> + <#case "D"> + <#stop "no generic FTL file available yet for Owners"> + <#break> - <#default> - <#stop> + <#default> + <#stop "event not supported">