<#-- **** input parameters ***** --> <#-- input : message HARDIS WMS --> <#-- project : projectId in HARDIS SC NETWORK --> <#-- organisation : organisationtId in HARDIS SC NETWORK --> <#include "HfRpConfig.ftl"> <#include "ReflexUtils.ftl"> <#include "ActorPrefix.ftl"> <#assign eventRP = JsonUtil.jsonToMap(input)> <#assign projectRP = project> <#assign organisationRP = organisation> <#switch eventRP.event> <#case "Created"> <#-- *********************************************** Action = CREATE or UPDATE ******************** --> <#assign appointment = eventRP.data /> [ { <#assign apiRestReflexID = ApiRestReflexID.appointment_post> "apiRestReflexID" : "${apiRestReflexID}", "datas" : <#include "RPtoRFX_CarrierAppointmentCreated.ftl"> }, { <#assign apiRestReflexID = ApiRestReflexID.appointment_put> "apiRestReflexID" : "${apiRestReflexID}", "datas" : <#include "RPtoRFX_CarrierAppointmentUpdated.ftl"> } ] <#break> <#default> <#stop >