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