diff --git a/RFXtoRP_HliPrepaL.ftl b/RFXtoRP_HliPrepaL.ftl new file mode 100644 index 0000000..e643caa --- /dev/null +++ b/RFXtoRP_HliPrepaL.ftl @@ -0,0 +1,31 @@ +<#-- **** input parameters ***** --> +<#-- input : message RFX --> +<#-- project : projectId in ReflexPlatform --> +<#-- organisation : organisationtId in ReflexPlatform --> +<#include "ReflexUtils.ftl"> +<#assign cloudEventMsg = JsonUtil.jsonToMap(input)> +<#assign projectRP = project> +<#assign organisationRP = organisation> +<#include "RFX_PartnerAPP_Settings.ftl"> + +<#assign aDateTime = .now> + +<#switch cloudEventMsg.action> +<#case "C"> +<#--<#case "U"> + <#-- *********************************************** Action = CREATE or UPDATE ******************** --> + <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> + <#assign preparationOrderLines = JsonUtil.jsonToMap(dataRfx)> + <#stop "no generic FTL file available yet for preparationOrderLines"> + <#break> +<#case "D"> + <#-- *********************************************** Action = DELETE ******************** --> + <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> + <#assign preparationOrderLines = JsonUtil.jsonToMap(dataRfx)> + <#stop "no generic FTL file available yet for preparationOrderLines"> + <#break> +<#break> + +<#default> +<#stop> + \ No newline at end of file diff --git a/RFXtoRP_HliReceiptLr.ftl b/RFXtoRP_HliReceiptLr.ftl new file mode 100644 index 0000000..61cdef6 --- /dev/null +++ b/RFXtoRP_HliReceiptLr.ftl @@ -0,0 +1,34 @@ +<#-- **** 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 ******************** --> + + <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> + <#assign receiptLines = JsonUtil.jsonToMap(dataRfx)> + + <#stop "no generic FTL file available yet for receiptLines"> + <#break> + + <#case "D"> + <#-- *********************************************** Action = DELETE ******************** --> + <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> + <#assign receiptLines = JsonUtil.jsonToMap(dataRfx)> + + <#stop "no generic FTL file available yet for receiptLines"> + <#break> + + <#default> + <#stop > + + diff --git a/RFXtoRP_HlrProL.ftl b/RFXtoRP_HlrProL.ftl new file mode 100644 index 0000000..7b4504b --- /dev/null +++ b/RFXtoRP_HlrProL.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 preparationOrderLines = JsonUtil.jsonToMap(dataRfx)> + + <#stop "no generic FTL file available yet for preparationOrderLines"> + <#break> + + <#case "D"> + <#-- *********************************************** Action = DELETE ******************** --> + <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> + <#assign preparationOrderLines = JsonUtil.jsonToMap(dataRfx)> + + <#stop "no generic FTL file available yet for preparationOrderLines"> + <#break> + <#default> + <#stop > + +