<#ftl output_format="JSON"> <#import "/recipes/v2/triggers/triggerUtility_v2.ftl" as triggerUtility> <#-- The macro for generating common trigger properties for updating the displayNameUuid field in the Process Model metadata --> <#macro updateDisplayName recipeObjectId hasNext=false> <@triggerUtility.updateField recipeObjectId=recipeObjectId objectType="PROCESS_MODEL" fieldName="displayNameUuid" hasNext=hasNext/> <#-- The macro for generating trigger to update the pmFolderUuid field in the Process Model metadata --> <#macro updateFolderTrigger recipeObjectId hasNext=false> <@triggerUtility.updateField recipeObjectId=recipeObjectId objectType="PROCESS_MODEL" fieldName="pmFolderUuid" hasNext=hasNext/> <#-- The macro for generating trigger to update the viewerGroups field in the Process Model metadata --> <#macro updateViewerGroups recipeObjectId hasNext=false> <@triggerUtility.updateField recipeObjectId=recipeObjectId objectType="PROCESS_MODEL" fieldName="viewerGroups" isArray="true" hasNext=hasNext/> <#-- The macro for generating trigger to update the adminOwnerGroups field in the Process Model metadata --> <#macro updateAdminGroups recipeObjectId hasNext=false> <@triggerUtility.updateField recipeObjectId=recipeObjectId objectType="PROCESS_MODEL" fieldName="adminOwnerGroups" isArray="true" hasNext=hasNext/>