diff --git a/RFXtoRP_HsrPro.ftl b/RFXtoRP_HsrPro.ftl index caa5990..cfa3721 100644 --- a/RFXtoRP_HsrPro.ftl +++ b/RFXtoRP_HsrPro.ftl @@ -46,12 +46,18 @@ <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign preparation_order = JsonUtil.jsonToMap(dataRfx)> [ - { + { + <#if preparation_order.originator_reference?? && preparation_order.originator_reference!=""> + { <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowCancelled> "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : <#include "RFXtoRP_HsrPro_ExecutionflowCancelled.ftl"> - } + } + <#else> + <#stop "PRO reference is empty"> + + } ] <#break>