34 lines
1.1 KiB
Java
34 lines
1.1 KiB
Java
<#-- ****
|
|
Reflex WMS provides some of their environment parameters through the class HfRpConfig
|
|
those parameters are stored in FTL file HfRpConfig.ftl for later use in some of the data ftl files
|
|
*** -->
|
|
|
|
<#-- *********************************************** Parameter global ******************** -->
|
|
<#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 file = JsonUtil.jsonToMap(dataRfx)>
|
|
|
|
<#include "RFXtoRP_RfxConfigurationRp.ftl">
|
|
|
|
<#break>
|
|
|
|
<#case "D">
|
|
<#-- *********************************************** Action = DELETE ******************** -->
|
|
<#stop "deletion of config not supported">
|
|
<#break>
|
|
|
|
|
|
<#default>
|
|
<#stop "event not supported">
|
|
</#switch>
|
|
|