add fichier sur les familles péremption.ftl
This commit is contained in:
parent
d050ade2b9
commit
77436cce07
4
ExpiryGroupList.ftl
Normal file
4
ExpiryGroupList.ftl
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<#assign ExpiryGroupList = {}/>
|
||||||
|
<#assign ExpiryGroupList64 = ""/>
|
||||||
|
|
||||||
|
|
||||||
28
RFXtoRP_HfExpGrpList.ftl
Normal file
28
RFXtoRP_HfExpGrpList.ftl
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<#-- *********************************************** Parameter global ******************** -->
|
||||||
|
<#assign cloudEventMsg = JsonUtil.jsonToMap(input)>
|
||||||
|
<#assign projectRP = project>
|
||||||
|
<#assign organisationRP = organisation>
|
||||||
|
<#include "ExpiryGroupList.ftl">
|
||||||
|
<#assign aDateTime = .now>
|
||||||
|
|
||||||
|
|
||||||
|
<#switch cloudEventMsg.action>
|
||||||
|
<#case "C">
|
||||||
|
<#case "U">
|
||||||
|
<#case "D">
|
||||||
|
<#-- *********************************************** Action = CREATE or UPDATE ******************** -->
|
||||||
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
|
<#assign file = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
|
<#assign temp = ExpiryGroupList64>
|
||||||
|
<#list file.expiry_group_list as expiry_group>
|
||||||
|
<#assign temp = JsonUtil.update(temp,cloudEventMsg.action,expiry_group.exipiry_group_code,expiry_group.priority_date_type_code)>
|
||||||
|
</#list>
|
||||||
|
<#assign output = JsonUtil.print(temp)>
|
||||||
|
${output}
|
||||||
|
<#break>
|
||||||
|
|
||||||
|
<#default>
|
||||||
|
<#stop>
|
||||||
|
</#switch>
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user