<#ftl output_format="JSON"> <#-- The macro for generating view and template metadata for a new Process Model Folder --> <#macro newProcessModelFolder request uuid name adminOwnerGroups="" viewerGroups="" replaceable=true> { <#-- reuse section --> "objectStatus": "NEW", "replaceable": ${replaceable?c}, "recipeObjectId": "PROCESS_MODEL_FOLDER-0", "templateForCreate": "createProcessModelFolder.ftlx", "templateForReuse": "recipes/existingProcessModelFoldersHelper.ftl", <#-- metadata section --> "uuid": "${uuid}", "currentVersionUuid": "${uuid}", "versionUuids": ["${request.generateUuid("PROCESS_MODEL_FOLDER_VERSION")}"], <#if adminOwnerGroups?has_content> "adminOwnerGroups": ${adminOwnerGroups}, <#if viewerGroups?has_content> "viewerGroups": ${viewerGroups}, <#-- i18n section --> "name": "${name?json_string}", "description": "${request.getTextWithKey("recordActionTemplateRecipe.object.processModelFolder.description", request.application.name)?json_string}" } <#-- The macro for generating view and template metadata for an existing Process Model Folder --> <#macro reusedProcessModelFolder templateHelper recipeMetadata processModelFolder recipeObjectId> { <#-- recipe section --> "objectStatus": "EXISTING", "replaceable": true, "recipeObjectId": "${recipeObjectId}", <#-- bindings section --> "uuid": "${processModelFolder.getUuid()}", <#-- i18n section --> "name": "${processModelFolder.getName()?json_string}", "description": "${processModelFolder.getDescription()?json_string}" }